PIC16CR58A Microchip Technology, PIC16CR58A Datasheet - Page 95

no-image

PIC16CR58A

Manufacturer Part Number
PIC16CR58A
Description
ROM-Based 8-Bit CMOS Microcontroller Series
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16CR58A-04/P042
Manufacturer:
MOTOROLA
Quantity:
80
11.4
This section provides an overview of the Inter-Inte-
grated Circuit (I
the operation of the SSP module in I
The I
the Philips
standard mode, was for data transfers of up to 100
Kbps. The enhanced specification (fast mode) is also
supported. This device will communicate with both
standard and fast mode devices if attached to the same
bus. The clock will determine the data rate.
The I
ensure reliable transmission and reception of data.
When transmitting data, one device is the “master”
which initiates transfer on the bus and generates the
clock signals to permit that transfer, while the other
device(s) acts as the “slave.” All portions of the slave
protocol are implemented in the SSP module’s hard-
ware, except general call support, while portions of the
master protocol need to be addressed in the
PIC16CXX software. Table 11-3 defines some of the
I
I
ment “ The I
which can be obtained from the Philips Corporation.
In the I
address. When a master wishes to initiate a data trans-
fer, it first transmits the address of the device that it
wishes to “talk” to. All devices “listen” to see if this is
their address. Within this address, a bit specifies if the
master wishes to read-from/write-to the slave device.
The master and slave are always in opposite modes
(transmitter/receiver) of operation during a data trans-
fer. That is they can be thought of as operating in either
of these two relations:
• Master-transmitter and Slave-receiver
• Slave-transmitter and Master-receiver
TABLE 11-3:
Transmitter
Receiver
Master
Slave
Multi-master
Arbitration
Synchronization
2
2
C bus terminology. For additional information on the
C interface specification, refer to the Philips docu-
1997 Microchip Technology Inc.
2
2
C interface employs a comprehensive protocol to
C bus is a two-wire serial interface developed by
Term
2
I
2
C interface protocol each device has an
®
C™ Overview
2
Corporation. The original specification, or
C bus and how to use it.” #939839340011,
2
C) bus, with Section 11.5 discussing
I
2
C BUS TERMINOLOGY
The device which initiates the transfer, generates the clock and terminates the transfer.
The device addressed by a master.
same time without corrupting the message.
the transfer data does not get corrupted.
The device that sends the data to the bus.
The device that receives the data from the bus.
More than one master device in a system. These masters can attempt to control the bus at the
Procedure that ensures that only one of the master devices will control the bus. This ensure that
Procedure where the clock signals of two or more devices are synchronized.
Applicable Devices
61 62 62A R62 63 R63 64 64A R64 65 65A R65 66 67
2
C mode.
Description
In both cases the master generates the clock signal.
The output stages of the clock (SCL) and data (SDA)
lines must have an open-drain or open-collector in
order to perform the wired-AND function of the bus.
External pull-up resistors are used to ensure a high
level when no device is pulling the line down. The num-
ber of devices that may be attached to the I
limited only by the maximum bus loading specification
of 400 pF.
11.4.1
During times of no data transfer (idle time), both the
clock line (SCL) and the data line (SDA) are pulled high
through the external pull-up resistors. The START and
STOP conditions determine the start and stop of data
transmission. The START condition is defined as a high
to low transition of the SDA when the SCL is high. The
STOP condition is defined as a low to high transition of
the SDA when the SCL is high. Figure 11-14 shows the
START and STOP conditions. The master generates
these conditions for starting and terminating data trans-
fer. Due to the definition of the START and STOP con-
ditions, when data is being transmitted, the SDA line
can only change state when the SCL line is low.
FIGURE 11-14: START AND STOP
SDA
SCL
Condition
Start
S
INITIATING AND TERMINATING DATA
TRANSFER
Change
Allowed
of Data
CONDITIONS
PIC16C6X
Change
Allowed
of Data
DS30234D-page 95
Condition
Stop
2
P
C bus is

Related parts for PIC16CR58A