311
13.4
Application Notes
In master mode, if an instruction to generate a start condition is immediately followed by an
instruction to generate a stop condition, neither condition will be output correctly. To output
consecutive start and stop conditions, after issuing the instruction that generates the start
condition, read the relevant ports, check that SCL and SDA are both low, then issue the
instruction that generates the stop condition.
Either of the following two conditions will start the next transfer. Pay attention to these
conditions when reading or writing to ICDR.
Write access to ICDR when ICE = 1 and TRS = 1
Read access to ICDR when ICE = 1 and TRS = 0
The I
2
C bus interface specification for the SCL rise time tsr is under 1000 ns (300 ns for high-
speed mode). In master mode, the I
2
C bus interface monitors the SCL line and synchronizes
one bit at a time during communication. If tsr (the time for SCL to go from low to V
IH
) exceeds
the time determined by the input clock of the I
2
C bus interface, the high period of SCL is
extended. SCL rise time is determined by the pull-up resistance and load capacitance of the
SCL line. To insure proper operation at the set transfer rate, adjust the pull-up resistance and
load capacitance so that the SCL rise time falls below the values given in the table below.
t
cyc
Display
Time Display
CKDBL
IICX
= 5 MHz
= 8 MHz
= 10 MHz
= 16 MHz
0
0
7.5t
cyc
Normal
mode
1000 ns
937 ns
750 ns
486 ns
High-speed
mode
300 ns
300 ns
300 ns
300 ns
0
1
17.5t
cyc
Normal
mode
1000 ns
1000 ns
1000 ns
1000 ns
1
0
High-speed
mode
300 ns
300 ns
300 ns
300 ns
1
1
37.5t
cyc
Normal
mode
1000 ns
1000 ns
1000 ns
1000 ns
High-speed
mode
300 ns
300 ns
300 ns
300 ns
Note on Issuance of Retransmission Start Condition
When issuing a retransmission start condition, the condition must be issued after the SCL clock
falls during the acknowledge bit reception period. After the end of the acknowledge bit, the
next data should be written to ICDR after SCL goes high. Figure 13.16 shows the
recommended program flow for issuing a retransmission start condition. A timing chart for the
flowchart in figure 13.16 is shown in figure 13.17.