SDAA085A October   2025  – May 2026 TXE8116 , TXE8116-Q1 , TXE8124 , TXE8124-Q1 , TXE8148

 

  1.   1
  2.   Abstract
  3.   Trademarks
  4. 1Introduction
  5. 2What is SPI Daisy Chaining?
  6. 3SPI Daisy Chain Example with TXE81xxEVM
  7. 4MSPM0 Pseudocode Example
  8. 5Arduino Pseudocode Example
  9. 6Summary
  10. 7References
  11. 8Revision History

SPI Daisy Chain Example with TXE81xxEVM

The following example use case daisy chains 4x TXE81XXEVM together by connecting the SDO and SDI lines in a chain. The SCLK pin is shared amongst all devices including the MCU as well as the chip select signal.

(Boards are labeled 1 - 4 starting from right to left)

 4x TXE81XXEVM's Connected in Daisy Chain ConfigurationFigure 3-1 4x TXE81XXEVM's Connected in Daisy Chain Configuration

Data is written to each direction configuration register (0x04) of each TXE8124-Q1 device. Only Port 0 is written to. A 1 in the direction configuration register sets the GPIO to an OUTPUT. A 0 in the direction configuration register sets the GPIO to an INPUT. See Table 3-1 for the exact data written in the daisy chain example.

Table 3-1 Board Configurations
Board NumberRegister AddressPortDataInput / Outputs?
10x0400x55Inputs = P0.1, P0.3, P0.5, P0.7 Outputs = P0.0, P0.2, P0.4, P0.6
20x0400x00Inputs = P0.0 - P0.7 Outputs = none
30x0400xAAInputs = P0.0, P0.2, P0.4, P0.6 Outputs = P0.1, P0.3, P0.5, P0.7
40x0400xFFInputs = none Outputs = P0.0 - P0.7

In TXE81xx, there are 4 types of SPI segments: Status, Header, Address, and Data. Table 3-2 describes the bit-by-bit description of each segment to be sent in the daisy chain.

Note: Bit-15 and 14 in Header segment are the Header ID that is used by the device controller to detect that a header segment is being received. The Header ID bits have the value 01 to indicate this is a Header segment. Bit-13 to 5 are reserved and bits 4 to 0 indicate the number of devices in the chain. The maximum number of devices that may be daisy chained is 31.
Table 3-2 SPI Segment Description
SPI Segment TypeBit Assignments
StatusBit [15:14] = 1, indicates status segment
Bit[13:8] = Bit 5 to 0 of the Fault Status Register (0x1900)
Bit[7:0] = 0, by default
HeaderBit [15:14] = 0 and 1 respectively, indicates header segment
Bit [13] = reserved
Bit[12:0] = determine the number of devices in the daisy chain
Address (register address)Bit [15] = indicates SPI mode of operation (1 = read, 0 = write)
Bit [14:13] = Don't care (X)
Bit[12:8] = Feature Address
Bit[7] = Don't care (X)
Bit[6:4] = Port Selection
Bit[3:1] = Don't Care (X)
Bit[0] = Multi-Port
DataBit[7:0] = Data to write to register

To begin sending data through the chain, a header segment is sent first, followed by the register address of the furthest board in the chain. If there are four devices in the chain, register address of the 4th device is sent first, followed by the 3rd and so on. Data bytes follow after the register address bytes. The first data byte applies to the furthest device in the chain. If there are four devices in the chain, the first data byte applies to the 4th device, then 3rd, and so on. See Figure 3-3 for a more detailed byte-by-byte example of how SPI data is sent.

 Daisy Chain Block DiagramFigure 3-2 Daisy Chain Block Diagram
 Sequence of Each Byte in the ChainFigure 3-3 Sequence of Each Byte in the Chain
 Annotated Waveform of the Daisy Chain SPI Transfers Probed Between Arduino_MOSI and Board 1 SDIFigure 3-4 Annotated Waveform of the Daisy Chain SPI Transfers Probed Between Arduino_MOSI and Board 1 SDI