Microchip Technology MA160014 Datenbogen
2010-2012 Microchip Technology Inc.
DS41412F-page 211
PIC18(L)F2X/4XK22
15.0
MASTER SYNCHRONOUS
SERIAL PORT (MSSP1 AND
MSSP2) MODULE
SERIAL PORT (MSSP1 AND
MSSP2) MODULE
15.1
Master SSPx (MSSPx) Module
Overview
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,
display drivers, A/D converters, etc. The MSSPx
module can operate in one of two modes:
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 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:
features:
• Master mode
• Slave mode
• Clock Parity
• Slave Select Synchronization (Slave mode only)
• Daisy chain connection of slave devices
module.
FIGURE 15-1:
MSSPx BLOCK DIAGRAM (SPI MODE)
( )
Read
Write
Data Bus
SSPxSR Reg
SSPxM<3:0>
bit 0
Shift
Clock
SSx Control
Enable
Edge
Select
Clock Select
TMR2 Output
T
OSC
Prescaler
4, 16, 64
2
Edge
Select
2 (CKP, CKE)
4
TRIS bit
SDOx
SSPxBUF Reg
SDIx
SSx
SCKx
Baud Rate
Generator
(SSPxADD)
Generator
(SSPxADD)