R01UH0136EJ0210 Rev.2.10
Page 581 of 800
Jul 31, 2012
M16C/64A Group
25. Multi-master I
2
C-bus Interface
Figure 25.23 Generating a Stop Condition
Generate a stop condition
Wait for t
SU;DAT
P7_1 = 1 ?
(SCLMM is line high?)
No
Change P7_0 pin (SDAMM) to forcibly output low
Change P7_1 pin (SCLMM) to forcibly output high (Hi-Z)
Set an interrupt request source as rising edge of the SCLMM
line (Interrupts disabled)
P7_1 = 1 ?
(SCLMM line is high?)
No
Enable SCL/SDA interrupt
End
(wait for an interrupt)
Reset the MMI2C module
P7_0
←
1 (SDAMM line becomes high)
Yes
Yes
End
SCL/SDA interrupt
Reset the MMI2C module
P7_0
←
1 (SDAMM line becomes high)
Return
Wait for set-up time
Wait for set-up time
Save the flag register on the stack and disable interrupts
(1)
Restore the flag register
Restore the flag register
Restore flag register
Save the flag register on the stack and disable interrupts
(1)
Note 1: Disable multiple Interrupts
Summary of Contents for M16C/60 Series
Page 853: ...M16C 64A Group R01UH0136EJ0210...