PIC16C926 Microchip Technology Inc., PIC16C926 Datasheet - Page 68

no-image

PIC16C926

Manufacturer Part Number
PIC16C926
Description
64/68-pin Cmos Microcontrollers With Lcd Driver
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C926-I/L
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C926-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C926-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C926/CL
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC16C926T-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C926T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
PIC16C925/926
9.2.2
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:
FIGURE 9-8:
FIGURE 9-10:
DS39544A-page 66
S
R/W
ACK
S 1 1 1 1 0 A9 A8 R/W ACK A7 A6 A5 A4 A3 A2 A1 A0 ACK
ACK
S
R/W
- START Condition
- Read/Write Pulse
- Acknowledge
SDA
SCL
START Condition
Read/Write pulse
Acknowledge
ADDRESSING I
Condition
S
START
S
MSb
MSB
Slave Address
7-BIT ADDRESS FORMAT
I
FORMAT
DATA TRANSFER WAIT STATE
2
1
C 10-BIT ADDRESS
2
Address
C DEVICES
2
Sent by Slave
= 0 for Write
Acknowledgment
Signal from Receiver
LSb
R/W ACK
7
Sent by
Slave
R/W
8
Preliminary
ACK
9
Byte Complete
Interrupt with Receiver
Wait
State
9.2.3
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
doesn’t 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).
FIGURE 9-9:
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.
Transmitter
Output by
Output by
Clock Line Held Low while
Interrupts are Serviced
SCL from
Receiver
Master
1
Data
Data
Data
Condition
START
TRANSFER ACKNOWLEDGE
2
S
Acknowledgment
Signal from Receiver
3
1
8
SLAVE-RECEIVER
ACKNOWLEDGE
2001 Microchip Technology Inc.
ACK
9
2
Not Acknowledge
Acknowledge
Condition
STOP
8
Acknowledgment
P
Clock Pulse for
9

Related parts for PIC16C926