English
Language : 

PIC16LF1508 Datasheet, PDF (183/384 Pages) Microchip Technology – 20-Pin Flash, 8-Bit Microcontrollers with nanoWatt XLP Technology
PIC16(L)F1508/9
21.0 MASTER SYNCHRONOUS
SERIAL PORT MODULE
21.1 Master SSP (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:
MSSPX BLOCK DIAGRAM (SPI MODE)
Read
Data Bus
Write
SSPBUF Reg
SDI
SDO
SSPSR Reg
bit 0
Shift
Clock
SS
SCK
SSx Control
Enable
Edge
Select
2 (CKP, CKE)
Clock Select
Edge
Select
SSPM<3:0>
4
( ) TMR2 Output
2
Prescaler TOSC
4, 16, 64
TRIS bit
Baud Rate
Generator
(SSPxADD)
 2011 Microchip Technology Inc.
Preliminary
DS41609A-page 183