|
7220 Datasheet, PDF (206/303 Pages) Renesas Technology Corp – 8-BIT SINGLE-CHIP MICROCOMPUTER | |||
|
◁ |
APPLICATION
5.5 Example of I2C-BUS control by software (M37220M3-XXXSP/FP)
(8) Return ACK processing routine
Return ACK
Bit 0 of port P2 direction register
= âoutput modeâ
P20 (SDA) = â0â
Wait 6 µs
P21 (SCL) = â1â
Wait 6 µs
P21 (SCL) = â0â
RETURN
Fig. 5.5.11 Flowchart of return ACK processing routine
(9) Return NACK processing routine
Return NACK
Bit 0 of port P2 direction register
= âoutput modeâ
P20 (SDA) = â1â
Wait 6 µs
P21 (SCL) = â1â
Wait 6 µs
P21 (SCL) = â0â
RETURN
Fig. 5.5.12 Flowchart of return NACK processing routine
7220 Group Userâs Manual
5-33
|
▷ |