Datasheet

2011-2013 Microchip Technology Inc. DS30001037C-page 135
PIC24F16KL402 FAMILY
17.0 MASTER SYNCHRONOUS
SERIAL PORT (MSSP)
The Master Synchronous Serial Port (MSSP) module is
an 8-bit 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 (I
2
C™)
- Full Master mode
- Slave mode (with general address call)
The SPI interface supports these modes in hardware:
•Master mode
Slave mode
Daisy-Chaining Operation in Slave mode
Synchronized Slave operation
The I
2
C interface supports the following modes in
hardware:
•Master mode
Multi-Master mode
Slave mode with 10-Bit And 7-Bit Addressing and
Address Masking
•Byte NACKing
Selectable Address and Data Hold and Interrupt
Masking
17.1 I/O Pin Configuration for SPI
In SPI Master mode, the MSSP module will assert con-
trol over any pins associated with the SDOx and SCKx
outputs. This does not automatically disable other digi-
tal functions associated with the pin, and may result in
the module driving the digital I/O port inputs. To prevent
this, the MSSP module outputs must be disconnected
from their output pins while the module is in SPI Master
mode. While disabling the module temporarily may be
an option, it may not be a practical solution in all
applications.
The SDOx and SCKx outputs for the module can be
selectively disabled by using the SDOxDIS and
SCKxDIS bits in the PADCFG1 register (Register 17-10).
Setting the bit disconnects the corresponding output for a
particular module from its assigned pin.
Note: This data sheet summarizes the features
of this group of PIC24F devices. It is not
intended to be a comprehensive refer-
ence source. For more information on
MSSP, refer to the “dsPIC33/PIC24
Family Reference Manual”.