Microchip Technology AC244055 Data Sheet

Page of 488
 2011-2013 Microchip Technology Inc.
DS40001574C-page 235
PIC16(L)F1938/9
24.0 MASTER SYNCHRONOUS 
SERIAL PORT MODULE
24.1
Master SSP (MSSP) Module 
Overview
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 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
 is a block diagram of the SPI Interface
module.
FIGURE 24-1:
MSSP BLOCK DIAGRAM (SPI MODE)
(            )
Read
Write
Data Bus
SSPSR Reg
SSPM<3:0>
bit 0
Shift
Clock
SS Control
Enable
Edge
Select
Clock Select
TMR2 Output
T
OSC
Prescaler
4, 16, 64
2
Edge
Select
2 (CKP, CKE)
4
TRIS bit
SDO
SSPBUF Reg
SDI
SS
SCK
Baud Rate
Generator
(SSPADD)