English
Language : 

PIC16LF18854 Datasheet, PDF (459/668 Pages) Microchip Technology – C Compiler Optimized RISC Architecture
PIC16(L)F18856/76
31.0 MASTER SYNCHRONOUS
SERIAL PORT (MSSP)
MODULES
31.1 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,
display drivers, A/D converters, etc. The MSSP 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 31-1 is a block diagram of the SPI interface
module.
FIGURE 31-1:
MSSP BLOCK DIAGRAM (SPI MODE)
Read
Data Bus
Write
SSPDATPPS
SDI
PPS
SDO
PPS
RxyPPS
SS
PPS
SSPSSPPS
SSPxBUF Reg
SSPSR Reg
bit 0
Shift
Clock
SS Control
Enable
Edge
Select
2 (CKP, CKE)
Clock Select
SSPCLKPPS(2)
SCK
PPS
TRIS bit
PPS
RxyPPS(1)
Note 1: Output selection for master mode
2: Input selection for slave mode
Edge
Select
SSPM<3:0>
4
( ) T2_match
2
Prescaler TOSC
4, 16, 64
Baud Rate
Generator
(SSPxADD)
 2016 Microchip Technology Inc.
Preliminary
DS40001824A-page 459