AC244027 Microchip Technology, AC244027 Datasheet - Page 182

no-image

AC244027

Manufacturer Part Number
AC244027
Description
Processor Extension Pak (PIC16LF727-ICE) 200K Device Emulator - Debugger Accesso
Manufacturer
Microchip Technology
Series
-r
Datasheet

Specifications of AC244027

Accessory Type
Debug Interface Module
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
For Use With/related Products
PIC16F727
PIC16F72X/PIC16LF72X
17.2.6
When the R/W bit of the received address byte is set
and an address match occurs, the R/W bit of the
SSPSTAT register is set and the slave will respond to
the master by reading out data. After the address match,
an ACK pulse is generated by the slave hardware and
the SCL pin is held low (clock is automatically stretched)
until the slave is ready to respond. See Section 17.2.7
“Clock Stretching”. The data the slave will transmit
must be loaded into the SSPBUF register, which sets
the BF bit. The SCL line is released by setting the CKP
bit of the SSPCON register.
An SSP interrupt is generated for each transferred data
byte. The SSPIF flag bit of the PIR1 register initiates an
SSP interrupt, and must be cleared by software before
the next byte is transmitted. The BF bit of the SSPSTAT
register is cleared on the falling edge of the 8th
received clock pulse. The SSPIF flag bit is set on the
falling edge of the ninth clock pulse.
FIGURE 17-12:
DS41341E-page 182
SDA
SCL
SSPIF
BF
CKP
S
TRANSMISSION
A7
1
Data in
sampled
A6
2
I
2
C WAVEFORMS FOR TRANSMISSION (7-BIT ADDRESS)
A5
Receiving Address
3
A4
4
Dummy read of SSPBUF
A3
5
A2
6
to clear BF flag
A1
7
R/W
8
9
ACK
responds to SSPIF
SCL held low
while CPU
Following the 8th falling clock edge, control of the SDA
line is released back to the master so that the master
can acknowledge or not acknowledge the response. If
the master sends a not acknowledge, the slave’s
transmission is complete and the slave must monitor for
the next Start condition. If the master acknowledges,
control of the bus is returned to the slave to transmit
another byte of data. Just as with the previous byte, the
clock is stretched by the slave, data must be loaded into
the SSPBUF and CKP must be set to release the clock
line (SCL).
SSPBUF is written in software From SSP Interrupt
D7
1
D6
2
Cleared in software
Set bit after writing to SSPBUF
(the SSPBUF must be written to
before the CKP bit can be set)
D5
3
D4
4
Transmitting Data
D3
5
© 2009 Microchip Technology Inc.
D2
6
Service Routine
D1
7
D0
8
ACK
9
P

Related parts for AC244027