30/54
M37516M6-XXXHP
GNOK-M37516M6-XXXHP-50
(MSETSU 2)
PA
GE
Fig. 32 START condition detecting timing diagram
AAA
START/STOP Condition Detecting Operation
The START/STOP condition detection operations are shown in
Figures 32, 33, and Table 8. The START/STOP condition is set by
the START/STOP condition set bit.
The START/STOP condition can be detected only when the input
signal of the SCL and SDA pins satisfy three conditions: SCL re-
lease time, setup time, and hold time (see Table 8).
The BB flag is set to “1” by detecting the START condition and is
reset to “0” by detecting the STOP condition.
The BB flag set/reset timing is different in the standard clock mode
and the high-speed clock mode. Refer to Table 8, the BB flag set/
reset time.
Note:
When a STOP condition is detected in the slave mode (MST = 0), an
interrupt request signal “IICIRQ” occurs to the CPU.
START Condition Generating Method
When writing “1” to the MST, TRX, and BB bits of the I
2
C status
register (address 002D
16
) at the same time after writing the slave
address to the I
2
C data shift register (address 002B
16
) with the
condition in which the ES0 bit of the I
2
C control register (address
002E
16
) is “1” and the BB flag is “0”, a START condition occurs.
After that, the bit counter becomes “000
2
” and an SCL for 1 byte is
output. The START condition generating timing is different in the
standard clock mode and the high-speed clock mode. Refer to
Figure 30, the START condition generating timing diagram, and
Table 6, the START condition generating timing table.
STOP Condition Generating Method
When the ES0 bit of the I
2
C control register (address 002E
16
) is
“1,” write “1” to the MST and TRX bits, and write “0” to the BB bit
of the I
2
C status register (address 002D
16
) simultaneously. Then a
STOP condition occurs. The STOP condition generating timing is
different in the standard clock mode and the high-speed clock
mode. Refer to Figure 31, the STOP condition generating timing
diagram, and Table 7, the STOP condition generating timing table.
Fig. 30 START condition generating timing diagram
Fig. 31 STOP condition generating timing diagram
Table 7 STOP condition generating timing table
Item
Setup time
Hold time
4.5 us (18 cycles)
Standard clock mode
5.0 us (20 cycles)
Note:
Absolute time at
number of
= 4 MHz. The value in parentheses denotes the
cycles.
High-speed clock mode
3.0 us (12 cycles)
2.5 us (10 cycles)
Table 6 START condition generating timing table
Item
Setup time
Hold time
5.0 us (20 cycles)
Standard clock mode
5.0 us (20 cycles)
Note:
Absolute time at
number of
= 4 MHz. The value in parentheses denotes the
cycles.
High-speed clock mode
2.5 us (10 cycles)
2.5 us (10 cycles)
Table 8 START condition/STOP condition detecting conditions
Standard clock mode
SCC value + 1 cycle (6.25 us)
Note:
Unit : Cycle number of system clock
SSC value is the decimal notation value of the START/STOP condi-
tion set bits SSC4 to SSC0. Do not set “0” or an odd number to SSC
value. The value in parentheses is an example when the I
2
C START/
STOP condition control register is set to “18
16
” at
= 4 MHz.
Fig. 33 STOP condition detecting timing diagram
SCL release time
High-speed clock mode
4 cycles (1.0 us)
2 cycles (1.0 us)
2 cycles (0.5 us)
3.5 cycles (0.875 us)
SCC value + 1
2
SCC value + 1
2
SCC value –1
2
Setup time
Hold time
BB flag set/
reset time
cycle
< 4.0 us (3.125 us)
cycle
< 4.0 us (3.125 us)
+ 2 cycles (3.375 us)
I
2
C status register
write signal
AAA
AAA
Hold time
Setup
time
SCL
SDA
AAA
reset
AAAA
Setup
time
SCL
SDA
BB flag
BB flag
I
2
C status register
write signal
AAA
AAA
Hold time
Setup
time
SCL
SDA
time
Hold time
Setup
SCL
SDA
BB flag
AAAA
SCL release time
BB flag
set
time