Hey Expert,
Our customer has some issues with data reading.
The TCAN1145 datasheet recommends that for each selective wake register configured, the register needs to be read to ensure that the register configuration is successful. However, TCAN1145 reads the data returning 2 bytes.
- I wonder if INT_flag=1 in the SPISTS register indicates that both bytes returned are received complete when configured with F280025? What is the order in which two bytes are received at the same time?
- The case where SPICHAR is less than 16 bits is described in the F280025 datasheet, as shown in the figure. But there is no case where SPICHAR=16bit. And I wonder what happens when data is written and read when SPICHAR=16. Will the MCU receive 16 bits at once when SPICHAR=16? And Can 2-byte data on SDO be sent at once?
- I want to know when the data read back from SPIXBUF, if the most recent data overwrites the previous data? Or is it a shift between the most recent data and previous data?
Thanks a lot!