English
Language : 

PIC16F872_06 Datasheet, PDF (53/168 Pages) Microchip Technology – 28-Pin, 8-Bit CMOS Flash Microcontroller with 10-Bit A/D
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 (I2C)
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 I2C modes are covered in
Section 9.2, while special considerations for connect-
ing the I2C bus are discussed in Section 9.3.
PIC16F872
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 I2C 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 I2C operations. The registers are detailed in
Registers 9-1 through 9-3 on the following pages.
© 2006 Microchip Technology Inc.
DS30221C-page 51