Datasheet

PIC17C7XX
DS30289C-page 168 1998-2013 Microchip Technology Inc.
FIGURE 15-32: STOP CONDITION FLOW CHART
Idle Mode,
SSPEN = 1,
Force SDA = 0
SCL Doesn’t Change
SDA = 0?
De-assert SCL,
SCL = 1
SCL = 1?
No
Yes
Start BRG
No
Yes
BRG
SDA going from
0 to 1 while SCL = 1
No
Yes
Set SSPIF,
Release SDA,
Start BRG
STOP Condition done,
SSPCON1<3:0> = 1000
Rollover?
No
BRG
Rollover?
Yes
P bit Set?
No
Yes
Bus Collision Detected,
Set BCLIF,
Clear PEN
Start BRG
No
Yes
BRG
Rollover?
(Clock Arbitration)
PEN = 1
PEN cleared