Everything
 

Format (CSI) dialog box


This dialog box is used to specify the serial format for the 3-wire serial interface (CSI).

Figure A.92

Format (CSI) Dialog Box

 

This section describes the following.

[How to open]

On the Serial window with the CSI serial interface, any one of the following:

-

Click the [Format] button.

-

Select [Format...] from the [Edit] menu

[Description of each area]

(1)

Serial format setting area

Master, Slave

Select the transfer mode.

Master

Operates this window as a master.

Setting of [Transfer Clock] is required for generating the clock during communication.

Slave

Operates this window as a slave (default).

Communication is performed using the clock of the serial interface provided in the CPU.

Transfer Clock

Directly input the transfer clock value (unit: kHz).

Values with decimals can also be set. This item must be set when master is selected.

Transfer Direction

Select the transfer direction.

MSB first

Sets MSB first as the transfer direction (default).

LSB first

Sets LSB first as the transfer direction.

Data bit length

Select the bit length of the transmission data from the drop-down list, or specify it through direct input (default: 8).

Data Phase

Select the transmission/reception timing to set the data phase. The data clock phase is set in combination with "Clock Phase" as shown in "Table A.14 Data Clock Phase Settings".

Normal

Transmits/receives data at the normal 3-wire serial transmission/reception timing (default).

Precede

Transmits/receives data at a timing half a clock of the operation clock earlier than the normal 3-wire serial transmission/reception timing.

Clock Phase

Select the transmission/reception clock waveform to set the clock phase. The data clock phase is set in combination with "Data Phase" as shown in "Table A.14 Data Clock Phase Settings".

Normal

Operates on the normal 3-wire serial clock.

Transfer starts at the falling edge of the clock (default).

Reverse

Operates on the reverse clock of the normal 3-wire serial clock. Transfer starts at the rising edge of the clock.

Repeat

Select this item to repeat data transfer when the [Auto Send] button in the Serial window has been clicked.

 

Following transmission of the last data during automatic transmission, returns to the beginning of the data and performs automatic transmission.

 

Following transmission of the last data during automatic transmission, stops transmission.

Remark

For the selectable range, see the user's manual of the microcontroller that is used.

Table A.14

Data Clock Phase Settings

Data Phase

Clock Phase

Data Clock Phase

Normal

Normal

 

Precede

Normal

 

Normal

Reverse

 

Precede

Reverse

 

[Function buttons]

Button

Function

OK

Validates the settings and closes this dialog box.

Cancel

Cancels the settings and closes this dialog box.

[Transmission/reception when 3-wire serial interface (CSI) is selected]

The Serial window when CSI serial interface is selected always operates in the transmission/reception mode regardless of whether [Master] or [Slave] is selected in this dialog box.

When [Master] is selected

Data is transmitted or received immediately after clicking the [Send] button or the [Auto Send] button in the Serial editor area.

When [Slave] is selected

Data becomes ready to be transmitted or received after clicking the [Send] button or the [Auto Send] button in the Serial editor area.

Data starts to be transmitted or received when the CSI clock signal is received in the data transmission/reception ready status. This ready status is released when data transmission or reception is completed. (Even if the CSI clock is received, data is not transmitted or received in other than the data transmission/reception ready status.)

Accordingly, when only wanting to reception data in the Serial window when "Slave" is selected, execute as follows (Reception setting when CSI serial slave is selected):

(1)

Set [Repeat]

Select the [Repeat] check box in this dialog box

(2)

Set Wait time

Set the Wait time to 0 as a dummy setting in the Serial window, and then click the [Auto Send] button