PIC16F/LF1946/47
23.0 MASTER SYNCHRONOUS
SERIAL PORT (MSSP1 AND
MSSP2) MODULE
23.1 Master SSPx (MSSPx) Module
Overview
The Master Synchronous Serial Port (MSSPx) 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 MSSPx module
can operate in one of two modes:
• Serial Peripheral Interface (SPI)
• Inter-Integrated Circuit (I2C™)
The SPI interface supports the following modes and
features:
• Master mode
• Slave mode
• Clock Parity
• Slave Select Synchronization (Slave mode only)
• Daisy chain connection of slave devices
Figure 23-1 is a block diagram of the SPI interface
module.
FIGURE 23-1:
MSSPX BLOCK DIAGRAM (SPI MODE)
Data Bus
Read
Write
SSPxBUF Reg
SSPxSR Reg
SDIx
Shift
Clock
bit 0
SDOx
SSx
Control
Enable
SSx
2 (CKP, CKE)
Clock Select
Edge
Select
SSPxM<3:0>
4
TMR2 Output
(
)
2
SCKx
Edge
Select
TOSC
Prescaler
4, 16, 64
Baud rate
generator
(SSPxADD)
TRIS bit
2010 Microchip Technology Inc.
Preliminary
DS41414A-page 235