Datasheet

© 2006 Microchip Technology Inc. DS30221C-page 51
PIC16F872
9.0 MASTER SYNCHRONOUS
SERIAL PORT (MSSP)
MODULE
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 operation of the module in SPI mode is discussed
in greater detail in Section 9.1. The operations of the
module in the the various I
2
C modes are covered in
Section 9.2, while special considerations for connect-
ing the I
2
C bus are discussed in Section 9.3.
The MSSP module is controlled by three special func-
tion registers:
SSPSTAT
SSPCON
SSPCON2
The SSPSTAT and SSPCON registers are used in both
SPI and I
2
C modes; their individual bits take on differ-
ent functions depending on the mode selected. The
SSPCON2 register, on the other hand, is associated
only with I
2
C operations. The registers are detailed in
Registers 9-1 through 9-3 on the following pages.