This document details the Serial Peripheral Interface (SPI) module for the Microchip dsPIC30F series, covering registers, working modes, and clock…
Chapter 35 of this reference manual describes the Serial Peripheral Interface (SPI) module used for synchronous serial communication with other peripherals or on-chip components. The SPI1 module is compatible with Motorola's SPI and SIOP interfaces and consists of a 16-bit shift register, buffer registers, and control/status registers. This manual is written in Chinese.
The four pins are SDI1 (Serial Data Input), SDO1 (Serial Data Output), SCK1 (Shift Clock Input or Output), and SS1 (Low-Active Slave Select or Frame Sync I/O pulse).
Yes, it can be configured to use 2, 3, or 4 pins. In 3-pin mode, SS1 is not used, and in 2-pin mode, SDO1 and SS1 are not used.
The MODE16 bit allows the module to communicate in either 8-bit or 16-bit mode. Changing this value resets the module.