This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MCU-PLUS-SDK-AM243X: MCSPI: how can I read if the D1 input pin is high or low?

Part Number: MCU-PLUS-SDK-AM243X


Tool/software:

Problem: I have an SPI device (M93C66 SPROM) that uses D1 (MISO) pin to indicate whether or not the device is still busy writing (D1 goes high on not-busy, 3 to 5ms after a write command). I want to programmatically check for the busy status and proceed with the next write instead of using a worse-case sleep.

Background: I have attempted to put the SPI module into SYSTEST mode using the register and setting CSL_MCSPI_MODULCTRL_SYSTEM_TEST_MASK. I then read the CSL_MCSPI_SYST register to check for the input data pin state using CSL_MCSPI_SYST_SPIDAT_1_MASK. However, the whole register value for CSL_MCSPI_MODULCTRL resolutely remains zero.

Question: How can I programmatically read if the MCSPI D1 input pin is high or low?

Thanks, Steve