PIC16(L)F1503
21.0 MASTER SYNCHRONOUS
SERIAL PORT (MSSP)
MODULE
21.1 MSSP 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 21-1 is a block diagram of the SPI interface
module.
FIGURE 21-1:
MSSP BLOCK DIAGRAM (SPI MODE)
Data bus
Read
8
Write
8
SSPxBUF
Rev. 10-000076A
12/16/2013
SDI
SDO
8
SSPxSR
Bit 0
Shift clock
SDO_out
SSx
Control
Enable
Edge
enable
SCK
Edge
enable
TRIS bit
2 (CKP, CKE)
clock select
SSPM<3:0>
4
SCK_out
(T2_match)
2
Prescaler
4, 16, 64
TOSC
Baud Rate
Generator
(SSPxADD)
DS40001607D-page 154
2011-2015 Microchip Technology Inc.