PIC12F1516 MICROCHIP [Microchip Technology], PIC12F1516 Datasheet - Page 219

no-image

PIC12F1516

Manufacturer Part Number
PIC12F1516
Description
28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
21.6.5
A Repeated Start condition occurs when the RSEN bit
of the SSPCON2 register is programmed high and the
Master state machine is no longer active. When the
RSEN bit is set, the SCL pin is asserted low. When the
SCL pin is sampled low, the Baud Rate Generator is
loaded and begins counting. The SDA pin is released
(brought high) for one Baud Rate Generator count
(T
SDA is sampled high, the SCL pin will be deasserted
(brought high). When SCL is sampled high, the Baud
Rate Generator is reloaded and begins counting. SDA
and SCL must be sampled high for one T
action is then followed by assertion of the SDA pin
(SDA = 0) for one T
asserted low. Following this, the RSEN bit of the
FIGURE 21-27:
 2011 Microchip Technology Inc.
BRG
). When the Baud Rate Generator times out, if
I
START CONDITION TIMING
2
C MASTER MODE REPEATED
BRG
REPEAT START CONDITION WAVEFORM
SDA
SCL
while SCL is high. SCL is
Write to SSPCON2
occurs here
SDA = 1,
SCL (no change)
BRG
. This
Preliminary
T
BRG
SDA = 1,
SCL = 1
T
BRG
Repeated Start
SSPCON2 register will be automatically cleared and
the Baud Rate Generator will not be reloaded, leaving
the SDA pin held low. As soon as a Start condition is
detected on the SDA and SCL pins, the S bit of the
SSPSTAT register will be set. The SSPIF bit will not be
set until the Baud Rate Generator has timed out.
Sr
PIC16(L)F1516/7/8/9
Note 1: If RSEN is programmed while any other
T
BRG
2: A bus collision during the Repeated Start
S bit set by hardware
At completion of Start bit,
hardware clears RSEN bit
Write to SSPBUF occurs here
event is in progress, it will not take effect.
condition occurs if:
and sets SSPIF
• SDA is sampled low when SCL
• SCL goes low before SDA is
T
BRG
goes from low-to-high.
asserted low. This may indicate
that another master is attempting to
transmit a data ‘1’.
1st bit
T
BRG
DS41452B-page 219

Related parts for PIC12F1516