English
Language : 

PIC16F1847_13 Datasheet, PDF (231/440 Pages) Microchip Technology – 18/20/28-Pin Flash Microcontrollers with XLP Technology
PIC16(L)F1847
25.0 MASTER SYNCHRONOUS
SERIAL PORT (MSSP1 AND
MSSP2) MODULE
25.1 Master SSPx (MSSPx) 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,
display 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 25-1 is a block diagram of the SPI interface
module.
Note:
Register names, I/O pins, and bit names
may use the generic designator ‘x’ to
indicate the use of a numeral to distinguish
a particular module, when required.
FIGURE 25-1:
MSSPx BLOCK DIAGRAM (SPI MODE)
Read
Data Bus
Write
SSPxBUF Reg
SDIx
SDOx
SSPxSR Reg
SDO_out
bit 0
Shift
Clock
SSx
SCKx
SSx Control
Enable
Edge
Select
2 (CKP, CKE)
Clock Select
SCK_out
SSPM<3:0>
( ) 4
TMR2 Output
2
Edge
Select
Prescaler TOSC
4, 16, 64
TRIS bit
Baud Rate
Generator
(SSPxADD)
 2011-2013 Microchip Technology Inc.
Preliminary
DS40001453D-page 231