Datasheet
PIC16C77X
DS30275B-page 88 Advance Information 1999-2013 Microchip Technology Inc.
FIGURE 8-32: STOP CONDITION FLOWCHART
Idle Mode,
SSPEN = 1,
Force SDA = 0
SCL doesn’t change
SDA = 0?
De-assert SCL,
SCL = 1
SCL = 1?
No
Ye s
Start BRG
No
Yes
BRG
SDA going from
0 to 1 while SCL = 1
No
Ye s
Set SSPIF,
Release SDA,
Start BRG
Stop Condition done
SSPCON<3:0> = 1000
rollover?
No
BRG
rollover?
Yes
P bit Set?
No
Ye s
Bus Collision detected,
Set BCLIF,
Clear PEN
Start BRG
No
Ye s
BRG
rollover?
(Clock Arbitration)
PEN = 1
PEN cleared.
774.book Page 88 Tuesday, January 29, 2013 12:02 PM