Datasheet

Table Of Contents
2011-2013 Microchip Technology Inc. DS40001609C-page 181
PIC16(L)F1508/9
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 (I
2
C™)
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)
Read Write
SSPxBUF
8 8
SSPxSR
8
Bit 0
Shift clock
SDI
SDO
Data bus
Control
Enable
2
(CKP, CKE)
clock select
Edge
enable
Edge
enable
SCK_out
Prescaler
4, 16, 64
(T2_match)
2
TOSC
Baud Rate
Generator
(SSPxADD)
TRIS bit
4
SSPM<3:0>
Rev. 10-000076A
7/30/2013
SSx
SDO_out