R01UH0092EJ0110 Rev.1.10
Page 563 of 807
Jul 31, 2012
M16C/64C Group
25. Multi-master I
2
C-bus Interface
25.3.3
Generating a Stop Condition
Use the following procedure when the ES0 bit in the S1D0 register is 1 (I
2
C interface enabled).
(1) Write C0h to the S10 register.
The I
2
C interface enters the stop condition standby state and the SDAMM pin is driven low.
(2) Write dummy data to the S00 register.
A stop condition is generated.
The stop condition generation timing depends on the modes - standard clock mode or fast-mode.
Figure 25.8 shows the Stop Condition Generation Timing. See Table 25.13 “Setup/Hold Time for
Generating a Start/Stop Condition”
for setup/hold time.
Figure 25.8
Stop Condition Generation Timing
Do not write to the S10 register or S00 register until the BB bit in the S10 register becomes 0 (bus free)
after the instructions to generate a stop condition (refer to above (2)) are executed.
If the SCLMM pin input signal becomes low until the BB bit in the S10 register becomes 0 (bus free)
from the instruction to generate a stop condition is executed and the SCLMM pin becomes high-level,
the internal SCL output becomes low. In this case, perform one of the steps below to stop the low signal
output from the SCLMM pin (release the SCLMM pin).
•
Generate a stop condition (perform steps (1) and (2) above).
•
Set the ES0 bit in the S1D0 register to 0 (I
2
C interface disabled).
•
Write 1 to the IHR bit (I
2
C interface reset).
Write signal to the S00 register
SCLMM
SDAMM
Setup
Hold
Setup
BB bit
BB bit in the S10 register
Содержание M16C Series
Страница 846: ...M16C 64C Group R01UH0092EJ0110...