ZHCSLX3C June 2017 – September 2020 FPC402
PRODUCTION DATA
If SPI is used as the host-side communication protocol, the maximum number of FPC402 devices which can share a single SPI bus is technically unlimited. The read and write latency from/to the downstream ports will increase as the length of the SPI chain increases.
SPI does not require each FPC402 to have an address. The FPC402 devices are connected in a daisy-chain fashion as shown in Figure 8-6. The first FPC402 will connect CTRL3 (MOSI) to the MOSI signal of the host controller. CTRL4 (MISO) on the first FPC402 will connect to the subsequent CTRL3 (MOSI) signal of another FPC402, and continues until the final CTRL4 (MISO) signal connects back to the MISO signal of the host controller. All FPC402 devices will connect CTRL1 (SCK) and CTRL2 (SS_N) to the same SCK and SS_N pin on the host controller. For LED blink synchronization across multiple FPC402 devices, the SPI_LED_SYNC pin must be connected across all FPC402 devices in SPI mode. This is not necessary in I2C mode.
Each FPC402 device in the SPI chain will capture and act upon the command in its shift register when SS_N transitions from low (0) to high (1). The MOSI input is ignored and the MISO output is high impedance whenever SS_N is deasserted high.
The prior SPI command, address, and data are shifted out on MISO as the current SPI command, address, and data are shifted in on MOSI. In all SPI transactions, the MISO output signal is enabled asynchronously whenever SS_N is asserted low.
The SPI address space for FPC402 applications is designed such that each port being controlled and each logical device address within each port is accessible to the host controller through a unique 12-bit address. Refer to Table 8-7 for the appropriate address offset mapping.
For a system with up to N FPC402 devices on a single SPI chain, the full SPI address map is as follows.
FPC402 INSTANCE NUMBER | ADDRESS RANGE | ||||||||
---|---|---|---|---|---|---|---|---|---|
PORT 0 | PORT 1 | PORT 2 | PORT 3 | FPC402 REGS | |||||
DEVICE 0 DEFAULT = 0xA0(1) | DEVICE 1 DEFAULT = 0xA2(1) | DEVICE 0 DEFAULT = 0xA0(1) | DEVICE 1 DEFAULT = 0xA2(1) | DEVICE 0 DEFAULT = 0xA0(1) | DEVICE 1 DEFAULT = 0xA2(1) | DEVICE 0 DEFAULT = 0xA0(1) | DEVICE 1 DEFAULT = 0xA2(1) | ||
0 | 0x000 to 0x0FF | 0x100 to 0x1FF | 0x200 to 0x2FF | 0x300 to 0x3FF | 0x400 to 0x4FF | 0x500 to 0x5FF | 0x600 to 0x6FF | 0x700 to 0x7FF | 0x800 to 0x8FF |
1 | |||||||||
2 | |||||||||
– | |||||||||
N |
In SPI mode, the CTRL4 pin has a driver impedance of 60 Ω (typical). To minimize ringing due to the fast edge rate of the driver, TI recommends matching the transmission line characteristic impedance with the driver impedance. A series resistor near the driver pin (CTRL4) may be used to facilitate this impedance matching. If ringing is a concern, the IBIS model provided may be used for simulations.