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

no-image

PIC12F1516

Manufacturer Part Number
PIC12F1516
Description
28/40/44-Pin Flash Microcontrollers with nanoWatt XLP Technology
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
PIC16(L)F1516/7/8/9
21.5.4
This section describes a standard sequence of events
for the MSSP module configured as an I
10-bit Addressing mode.
Figure 21-19
description.
This is a step by step process of what must be done by
slave software to accomplish I
1.
2.
3.
4.
5.
6.
7.
8.
9.
10. Slave clears SSPIF.
11. Slave reads the received matching address
12. Slave loads high address into SSPADD.
13. Master clocks a data byte to the slave and
14. If SEN bit of SSPCON2 is set, CKP is cleared by
15. Slave clears SSPIF.
16. Slave reads the received byte from SSPBUF
17. If SEN is set the slave sets CKP to release the
18. Steps 13-17 repeat for each received byte.
19. Master sends Stop to end the transmission.
DS41452B-page 210
Note: Updates to the SSPADD register are not
Note: If the low address does not match, SSPIF
Bus starts Idle.
Master sends Start condition; S bit of SSPSTAT
is set; SSPIF is set if interrupt on Start detect is
enabled.
Master sends matching high address with R/W
bit clear; UA bit of the SSPSTAT register is set.
Slave sends ACK and SSPIF is set.
Software clears the SSPIF bit.
Software reads received address from SSPBUF
clearing the BF flag.
Slave loads low address into SSPADD,
releasing SCL.
Master sends matching low address byte to the
slave; UA bit is set.
Slave sends ACK and SSPIF is set.
from SSPBUF clearing BF.
clocks out the slaves ACK on the 9th SCL pulse;
SSPIF is set.
hardware and the clock is stretched.
clearing BF.
SCL.
SLAVE MODE 10-BIT ADDRESS
RECEPTION
allowed until after the ACK sequence.
and UA are still set so that the slave soft-
ware can set SSPADD back to the high
address. BF is not set because there is no
match. CKP is unaffected.
is used as a visual reference for this
2
C communication.
2
C slave in
Preliminary
21.5.5
Reception using 10-bit addressing with AHEN or
DHEN set is the same as with 7-bit modes. The only
difference is the need to update the SSPADD register
using the UA bit. All functionality, specifically when the
CKP bit is cleared and SCL line is held low are the
same.
slave in 10-bit addressing with AHEN set.
Figure 21-21
transmitter in 10-bit Addressing mode.
Figure 21-20
10-BIT ADDRESSING WITH ADDRESS OR
DATA HOLD
shows a standard waveform for a slave
can be used as a reference of a
 2011 Microchip Technology Inc.

Related parts for PIC12F1516