Renesas M16C/64A Series User Manual page 820

Table of Contents

Advertisement

M16C/64A Group
Save the flag register on the stack and disable interrupts
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
Save the flag register on the stack and disable interrupts
Figure 32.14 Generating a Stop Condition
R01UH0136EJ0210 Rev.2.10
Jul 31, 2012
Generate a stop condition
Wait for t
SU;DAT
P7_1 = 1 ?
(SCLMM is line high?)
No
line (Interrupts disabled)
P7_1 = 1 ?
(SCLMM line is high?)
No
Enable SCL/SDA interrupt
Restore the flag register
End
(wait for an interrupt)
SCL/SDA interrupt
Wait for set-up time
P7_0 ← 1 (SDAMM line becomes high)
Reset the MMI2C module
Restore flag register
Return
(1)
Yes
Yes
Wait for set-up time
P7_0 ← 1 (SDAMM line becomes high)
Reset the MMI2C module
Restore the flag register
End
(1)
Note 1: Disable multiple Interrupts
32. Usage Notes
Page 787 of 800

Advertisement

Table of Contents
loading

Table of Contents