English
Language : 

PIC17C7XX_13 Datasheet, PDF (133/306 Pages) Microchip Technology – High-Performance 8-bit CMOS EPROM Microcontrollers with 10-bit A/D
15.0 MASTER SYNCHRONOUS
SERIAL PORT (MSSP)
MODULE
The Master Synchronous Serial Port (MSSP) module is
a serial interface useful for communicating with other
peripheral or microcontroller devices. These peripheral
devices may be serial EEPROMs, shift registers, dis-
play drivers, A/D converters, etc. The MSSP module
can operate in one of two modes:
• Serial Peripheral Interface (SPI)
• Inter-Integrated CircuitTM (I2C)
Figure 15-1 shows a block diagram for the SPI mode,
while Figure 15-2 and Figure 15-3 show the block
diagrams for the two different I2C modes of operation.
FIGURE 15-1:
SPI MODE BLOCK
DIAGRAM
Internal
Data Bus
Read
Write
SSPBUF reg
SDI
SDO
SS
SCK
SSPSR reg
bit0
Shift
Clock
SS Control
Enable
Edge
Select
2
Clock Select
SSPM3:SSPM0
SMP:CKE 4
2
TMR2 Output
2
Edge
Select
Prescaler Tosc
4, 16, 64
Data to TX/RX in SSPSR
Data Direction bit
PIC17C7XX
FIGURE 15-2:
I2C SLAVE MODE BLOCK
DIAGRAM
Read
Internal
Data Bus
Write
SCL
SDA
SSPBUF reg
Shift
Clock
SSPSR reg
MSb
LSb
Match Detect
SSPADD reg
Addr Match
or General
Call Detected
START and
STOP bit Detect
Set, Reset
S, P bits
(SSPSTAT reg)
FIGURE 15-3:
I2C MASTER MODE
BLOCK DIAGRAM
Read
SSPADD<6:0>
7
Baud Rate Generator
Internal
Data Bus
Write
SCL
SDA
SSPBUF reg
Shift
Clock
SSPSR reg
MSb
LSb
Match detect
SSPADD reg
Addr Match
or General
Call Detected
START and STOP bit
Detect/Generate
Set/Clear S bit
and
Clear/Set P, bit
(SSPSTAT reg)
and Set SSPIF
 1998-2013 Microchip Technology Inc.
DS30289C-page 133