DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16C925T-S/CL View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16C925T-S/CL
Microchip
Microchip Technology 
PIC16C925T-S/CL Datasheet PDF : 182 Pages
First Prev 61 62 63 64 65 66 67 68 69 70 Next Last
PIC16C925/926
9.2.2
ADDRESSING I2C DEVICES
There are two address formats. The simplest is the
7-bit address format with a R/W bit (Figure 9-7). The
more complex is the 10-bit address with a R/W bit
(Figure 9-8). For 10-bit address format, two bytes must
be transmitted with the first five bits specifying this to be
a 10-bit address.
FIGURE 9-7:
7-BIT ADDRESS FORMAT
9.2.3 TRANSFER ACKNOWLEDGE
All data must be transmitted per byte, with no limit to
the number of bytes transmitted per data transfer. After
each byte, the slave-receiver generates an Acknowl-
edge bit (ACK) (see Figure 9-9). When a slave-receiver
doesnt acknowledge the slave address or received
data, the master must abort the transfer. The slave
must leave SDA high so that the master can generate
the STOP condition (Figure 9-6).
MSb
S
Slave Address
S
R/W
ACK
START Condition
Read/Write pulse
Acknowledge
LSb
R/W ACK
Sent by
Slave
FIGURE 9-8:
I2C 10-BIT ADDRESS
FORMAT
S 1 1 1 1 0 A9 A8 R/W ACK A7 A6 A5 A4 A3 A2 A1 A0 ACK
S - START Condition
R/W - Read/Write Pulse
ACK - Acknowledge
Sent by Slave
= 0 for Write
FIGURE 9-9:
Data
Output by
Transmitter
Data
Output by
Receiver
SCL from
Master
SLAVE-RECEIVER
ACKNOWLEDGE
Not Acknowledge
Acknowledge
1
2
8
9
S
START
Condition
Clock Pulse for
Acknowledgment
If the master is receiving the data (master-receiver), it
generates an Acknowledge signal for each received
byte of data, except for the last byte. To signal the end
of data to the slave-transmitter, the master does not
generate an Acknowledge (Not Acknowledge). The
slave then releases the SDA line so the master can
generate the STOP condition. The master can also
generate the STOP condition during the Acknowledge
pulse for valid termination of data transfer.
If the slave needs to delay the transmission of the next
byte, holding the SCL line low will force the master into
a wait state. Data transfer continues when the slave
releases the SCL line. This allows the slave to move
the received data, or fetch the data it needs to transfer
before allowing the clock to start. This wait state tech-
nique can also be implemented at the bit level,
Figure 9-10. The slave will inherently stretch the clock
when it is a transmitter, but will not when it is a receiver.
The slave will have to clear the SSPCON<4> bit to
enable clock stretching when it is a receiver.
FIGURE 9-10:
DATA TRANSFER WAIT STATE
SDA
MSB
SCL S
1
START
Condition
Acknowledgment
Acknowledgment
Signal from Receiver Byte Complete
Signal from Receiver
Interrupt with Receiver
Clock Line Held Low while
Interrupts are Serviced
2
7
8
9
1
2
38 9
P
Address
R/W ACK Wait
State
Data
ACK
STOP
Condition
DS39544A-page 66
Preliminary
2001 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]