CS5376A
Digital
Filter
SCK2
SCKFS[2:0] / SCKPO / SCKPH
SO
Pin logic
SI1
SI2
4:1 SI3
SPI2EN[4:1] / RCH[1:0]
SI4
CS[4:0]
CS0
CS1
Select
CS2
logic
CS3
CS4
Figure 39. Serial Peripheral Interface 2 (SPI 2) Block Diagram
20. SERIAL PERIPHERAL INTERFACE 2
The Serial Peripheral Interface 2 (SPI 2) port is a
master mode SPI port designed to interface with se-
rial peripherals. By writing the SPI2 digital filter
registers, multiple serial slave devices can be con-
trolled through the CS5376A.
20.1 Pin Descriptions
CS[4:0] - Pins 32 - 36
Serial chip selects. Multiplexed with GPIO pins.
SCK2 - Pin 31
Serial clock output, common to all channels.
SO - Pin 30
Serial data output, common to all channels.
SI[4:1] - Pins 26 - 29
Serial data inputs.
20.2 SPI 2 Architecture
The SPI 2 pin interface has multiple chip selects
and serial data inputs, but a common serial clock
and serial data output. Which chip select and serial
input to use for a particular slave serial transaction
is selected by bits in the SPI2CTRL digital filter
register.
SPI 2 chip select outputs are multiplexed with
GPIO pins, which cannot perform both functions
simultaneously. When used as a chip select, the
GPIO output must be programmed high to permit
the chip select to operate as an active low signal.
See “General Purpose I/O” on page 69 for informa-
tion about programming the GPIO pins.
The SPI 2 interface transfers data from the SPI 2
registers to a slave serial device and back through a
bi-directional 8-bit shift register. Serial transac-
tions are automatic once control, command, and
data values are written into the SPI 2 digital filter
registers.
20.3 SPI 2 Registers
SPI 2 transactions are initiated by first writing
command, address, and data values to the
SPI2CMD and SPI2DAT digital filter registers,
and then writing the SPI2CTRL register to set the
D2SREQ bit. The D2SREQ bit initiates a serial
71