![Microchip Technology PIC12F1501 Скачать руководство пользователя страница 213](http://html1.mh-extra.com/html/microchip-technology/pic12f1501/pic12f1501_manual_1785833213.webp)
PIC16(L)F1508/9
DS40001609E-page 214
2011-2015 Microchip Technology Inc.
21.6.13.2
Bus Collision During a Repeated
Start Condition
During a Repeated Start condition, a bus collision
occurs if:
a)
A low level is sampled on SDAx when SCLx
goes from low level to high level (Case 1).
b)
SCLx goes low before SDAx is asserted low,
indicating that another master is attempting to
transmit a data ‘
1
’ (Case 2).
When the user releases SDAx and the pin is allowed to
float high, the BRG is loaded with SSPxADD and
counts down to zero. The SCLx pin is then deasserted
and when sampled high, the SDAx pin is sampled.
If SDAx is low, a bus collision has occurred (i.e., another
master is attempting to transmit a data ‘
0
If SDAx is sampled high, the BRG is reloaded and
begins counting. If SDAx goes from high-to-low before
the BRG times out, no bus collision occurs because no
two masters can assert SDAx at exactly the same time.
If SCLx goes from high-to-low before the BRG times
out and SDAx has not already been asserted, a bus
collision occurs. In this case, another master is
attempting to transmit a data ‘
1
’ during the Repeated
Start condition, see
If, at the end of the BRG time-out, both SCLx and SDAx
are still high, the SDAx pin is driven low and the BRG
is reloaded and begins counting. At the end of the
count, regardless of the status of the SCLx pin, the
SCLx pin is driven low and the Repeated Start
condition is complete.
FIGURE 21-36:
BUS COLLISION DURING A REPEATED START CONDITION (CASE 1)
FIGURE 21-37:
BUS COLLISION DURING REPEATED START CONDITION (CASE 2)
SDAx
SCLx
RSEN
BCLxIF
S
SSPxIF
Sample SDAx when SCLx goes high.
If SDAx =
0
, set BCLxIF and release SDAx and SCLx.
Cleared by software
‘
0
’
‘
0
’
SDAx
SCLx
BCLxIF
RSEN
S
SSPxIF
Interrupt cleared
by software
SCLx goes low before SDAx,
set BCLxIF. Release SDAx and SCLx.
T
BRG
T
BRG
‘
0
’
Содержание PIC12F1501
Страница 307: ...PIC16 L F1508 9 DS40001609E page 308 2011 2015 Microchip Technology Inc NOTES...
Страница 392: ...2011 2015 Microchip Technology Inc DS40001609E page 393 PIC16 L F1508 9 1RWH 6 7 7 588 8 7...
Страница 399: ...PIC16 L F1508 9 DS40001609E page 400 2011 2015 Microchip Technology Inc NOTES...