5.5 Example of I
(8) Return ACK processing routine
Fig. 5.5.11 Flowchart of return ACK processing routine
(9) Return NACK processing routine
Fig. 5.5.12 Flowchart of return NACK processing routine
2
C-BUS control by software (M37220M3-XXXSP/FP)
Return ACK
Bit 0 of port P2 direction register
= "output mode"
P2
(SDA) = "0"
0
Wait 6 µ s
P2
(SCL) = "1"
1
Wait 6 µ s
P2
(SCL) = "0"
1
RETURN
Return NACK
Bit 0 of port P2 direction register
= "output mode"
P2
(SDA) = "1"
0
Wait 6 µ s
P2
(SCL) = "1"
1
Wait 6 µ s
P2
(SCL) = "0"
1
RETURN
7220 Group User's Manual
APPLICATION
5-33