SBOS487B June 2009 – March 2020 PGA280
The serial peripheral interface uses four wires: CS (input), clock (SCLK, input), data in (SDI, or slave data input), and data out (SDO, or slave data output) and operates as a slave.
The SPI communicates to the internal registers, starting with a byte for command and address, and followed by a single data byte (exception: 11tx 0ccc requires no data byte). The communication can include a checksum byte. When enabled, this byte follows the last valid byte. Either power on reset or software reset (SftwrRst) disables the checksum mode. Writing to Register 11 enables or disables checksum mode.
On a read command, the device responds with the data byte and the checksum byte. If the checksum is not desired, setting CS to high terminates the transmission.
Multiple commands can be chained by holding CS low and sending the additional commands after the checksum byte (if checksum is disabled, send a dummy byte). In this mode, read and write instructions can be mixed.
This interface allows clock rates up to 16 MHz. Such high clock rates require careful board layout, short wire lengths, and low parasitic capacitance and inductance. Observe delays and distortion generated from isolation couplers. External drivers may be required to drive long and terminated cables.