Cs5374 – Cirrus Logic CS5374 User Manual
Page 26
CS5374
CS5374
26
The SPI2DAT register is 24-bits wide and can con-
tain up to three bytes of data to follow the SPI op-
code and address. For configuring the CS5374,
however, only one data byte per register address is
required and is written aligned with the upper byte
(i.e. 0x8F0000).
The SPI2CTRL register is 24-bits wide and config-
ures/controls the SPI 2 hardware, with bit assign-
ments detailed in the CS5376A data sheet. If the
GPIO:CS0 and GPIO1:CS1 pins are used as chip
selects, separate SPI2CTRL values can initiate se-
rial transactions to each device (i.e. 0x3F0161,
0x3F4162).
Tables 6, 7, and 8 show the CS5376A primary
SPI 1 transactions required to write the SPI 2 digi-
tal filter registers and configure two CS5374 devic-
es for normal operation using the CS0 and CS1
chip selects.
Table 6. Example CS5376A SPI 1 Transactions to Write the CS5374 AMP1CFG Register
Transaction
CS5376A Primary SPI 1 Write
Description
01
MOSI: 02 | 03 | 00 00 01 | 00 00 11 | 00 02 01
MISO: -----------------------------------------------------------
SPI Command : 0x02 : Write
SPI Address : 0x03 : SPICMD
SPICMD : 0x000001 : Write Register
SPIDAT1 : 0x000011 : SPI2CMD
SPIDAT2 : 0x000201 : Write AMP1CFG
02
Delay 1ms, monitor SINT, or poll E2DREQ
See the CS5376A data sheet.
03
MOSI: 02 | 03 | 00 00 01 | 00 00 12 | 20 00 00
MISO: -----------------------------------------------------------
SPI Command : 0x02 : Write
SPI Address : 0x03 : SPICMD
SPICMD : 0x000001: Write Register
SPIDAT1 : 0x000012 : SPI2DAT
SPIDAT2 : 0x200000 : INA, x1 Gain
04
Delay 1ms, monitor SINT, or poll E2DREQ
See the CS5376A data sheet.
05
MOSI: 02 | 03 | 00 00 01 | 00 00 10 | 3F 01 61
MISO: -----------------------------------------------------------
SPI Command : 0x02 : Write
SPI Address : 0x03 : SPICMD
SPICMD : 0x000001: Write Register
SPIDAT1 : 0x000010 : SPI2CTRL
SPIDAT2 : 0x3F0161 : CS0 Transaction
06
Delay 1ms, monitor SINT, or poll E2DREQ
See the CS5376A data sheet.
07
MOSI: 02 | 03 | 00 00 01 | 00 00 10 | 3F 41 62
MISO: -----------------------------------------------------------
SPI Command : 0x02 : Write
SPI Address : 0x03 : SPICMD
SPICMD : 0x000001: Write Register
SPIDAT1 : 0x000010 : SPI2CTRL
SPIDAT2 : 0x3F4162 : CS1 Transaction