Everything
 

Format (IIC) dialog box


This dialog box is used to set the serial format for the serial interface (IIC, IICA).

Figure A.100

Format (IIC master) Dialog Box

Figure A.101

Format (IIC slave) Dialog Box

 

This section describes the following.

[How to open]

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

-

Click the [Format] button.

-

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

[Description of each area]

(1)

Format (IIC master) setting area

Transfer Clock

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

Values may include decimal fractions.

IICWL

Directly inputs the width at low level of the serial clock.

IICWH

Directly inputs the width at high level of the serial clock.

Slave Addr

Directly inputs the address of the slave which is to be the other party.

Transmit / Receive

Selects the direction of transfer.

Transmit

This window is to transmit data.

Receive

This window is to receive data.

WTIM

Selects the time until waiting.

8 clock

The state becomes waiting after eight clock cycles.

9 clock

The state becomes waiting after nine clock cycles.

Connect to SCL

Selects the pin for use in the input and output of a serial clock to the microcontroller from the drop-down list.Note

Connect to SDA

Selects the pin for use in the input and output of serial data to the microcontroller from the drop-down list.Note

Repeat

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

 

-

In the case of automatic transmission

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

-

In the case of automatic reception

Following reception of the last data during automatic reception, returns to the beginning of the Wait time and performs automatic reception.

(default)

-

In the case of automatic transmission

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

-

In the case of automatic reception

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

Note

When the port pin to which a multiplexed pin function is assigned in the peripheral I/O redirection register is to be changed, select the pin in accord with the settings. If the selected pin does not correspond to the settings of the peripheral I/O redirection register, data will not be correctly sent and received in the Serial window.

(2)

Format (IIC slave) setting area

Match Addr

Specifies the local address of this window by direct input.

WTIMNote1

Selects the time until waiting.

8 clock

The state becomes waiting after eight clock cycles.

9 clock

The state becomes waiting after nine clock cycles.

Connect to SCL

Selects the pin for use in the input and output of a serial clock to the microcontroller from the drop-down list.Note2

Connect to SDA

Selects the pin for use in the input and output of serial data to the microcontroller from the drop-down list.Note2

Repeat

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

 

-

In the case of automatic transmission

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

-

In the case of automatic receptionNote1

Following reception of the last data during automatic reception, returns to the beginning of the Wait time and performs automatic reception.

(default)

-

In the case of automatic transmission

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

-

In the case of automatic receptionNote1

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

Note 1.

These items are disabled when IIC is selected from the list of serial interface types in the Serial selection area. This is because there is no wait state and data are automatically received.

Note 2.

When the port pin to which a multiplexed pin function is assigned in the peripheral I/O redirection register is to be changed, select the pin in accord with the settings. If the selected pin does not correspond to the settings of the peripheral I/O redirection register, data will not be correctly sent and received in the Serial window.

[Function buttons]

Button

Function

OK

Validates the settings and closes this dialog box.

Cancel

Cancels the settings and closes this dialog box.