Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

dsPIC33/PIC24 Family Reference Manual
DS70005185A-page 2 2014 Microchip Technology Inc.
This document supersedes the following dsPIC33/PIC24 Family Reference Manual sections:
1.0 INTRODUCTION
The Serial Peripheral Interface (SPI) module is a synchronous serial interface useful for
communicating with other peripheral or microcontroller devices. These peripheral devices can be
serial EEPROMs, Shift registers, display drivers, Analog-to-Digital Converters and so on. The
SPI module is compatible with Motorola
®
SPI and Serial Input/Output Port (SIOP) interfaces.
Depending on the device variant, the dsPIC33/PIC24 device families offer multiple SPI modules on
a single device. These modules, which are designated as SPI1, SPI2 and so on, are functionally
identical. Each SPI module includes an eight-word FIFO buffer and allows DMA bus connections.
When using the SPI module with DMA, the FIFO operation can be disabled.
The SPIx serial interface consists of the following four pins:
SDIx: Serial Data Input
SDOx: Serial Data Output
SCKx: Shift Clock Input or Output
SSx
/FSYNCx: Active-Low Slave Select or Frame Synchronization I/O Pulse
The SPIx module can be configured to operate with two, three or four pins. In 2-pin mode, neither
the SDOx nor the SSx pin is used. In 3-pin mode, the SSx pin is not used.
Figure 1-1 and Figure 1-2 show the block diagrams of the SPIx module in Standard and
Enhanced mode.
Note: This family reference manual section is meant to serve as a complement to device
data sheets. Depending on the device variant, this manual section may not apply to
all dsPIC33/PIC24 devices.
Please consult the note at the beginning of the “Serial Peripheral Interface
(SPI)” chapter in the current device data sheet to check whether this document
supports the device you are using.
Device data sheets and family reference manual sections are available for
download from the Microchip Worldwide Web site at: http://www.microchip.com.
DS Number Section Number Title
DS70569 18 Serial Peripheral Interface (SPI): dsPIC33E/PIC24E Family
Reference Manual
DS39699 23 Serial Peripheral Interface (SPI): PIC24F Family Reference
Manual
DS70206 18 Serial Peripheral Interface (SPI): dsPIC33F/PIC24H Family
Reference Manual
DS70243 18 Serial Peripheral Interface (SPI): PIC24H Family Reference
Manual
Note 1: The SPI modules are referred to together as SPIx. The Special Function Registers
(SFRs) follow a similar notation. For example, the SPIxCON refers to the control
register of the SPIx module.
2: On some devices, at least one SPIx module uses dedicated pins, while others take
advantage of the Peripheral Pin Select (PPS) feature to allow for greater flexibility.
Refer to the Serial Peripheral Interface (SPI)” chapter of the specific device data
sheet to determine whether this feature is available on your device.

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh