English
Language : 

PIC24F16KL402 Datasheet, PDF (135/260 Pages) Microchip Technology – Low-Power, Low-Cost, General Purpose 16-Bit Flash Microcontrollers with nanoWatt XLP Technology
PIC24F16KL402 FAMILY
17.0 MASTER SYNCHRONOUS
SERIAL PORT (MSSP)
Note:
This data sheet summarizes the features
of this group of PIC24F devices. It is not
intended to be a comprehensive
reference source. For more information
on MSSP, refer to the “PIC24F Family
Reference Manual”.
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 reg-
isters, display drivers, A/D Converters, etc. The MSSP
module can operate in one of two modes:
• Serial Peripheral Interface (SPI)
• Inter-Integrated Circuit (I2C™)
- 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 I2C 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.
 2011 Microchip Technology Inc.
DS31037B-page 135