SLVSHF3 October 2024 LP5899-Q1
PRODUCTION DATA
The LP5899-Q1 provides a detection when there are too many commands in the queue to be transmitted by the CCSI controller or expected to be received by the CCSI peripheral. When the command queue is full and a new CCSI command is received by the SPI peripheral, the FLAG_CCSI_CMD_QUEUE_OVF, FLAG_CCSI, and FLAG_ERR are set to 1. In addition, the CCSI command queue and TXFIFO are cleared in the same way as TXFFCLR. The SPI controller can access the LP5899-Q1 and write 1 to CLR_FLAG to clear the flags. The error flag has to be cleared to be able to store new CCSI commands and the CCSI controller can start transmitting.
When the FLAG_CCSI_CMD_QUEUE_OVF is set, the CCSI controller and CCSI peripheral are likely to get out of synchronization. Therefore, TI recommends to perform a SOFTRESET command after this flag has been set.