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.

TMS570LS1114: with ADS1148 connected on SPI2

Part Number: TMS570LS1114
Other Parts Discussed in Thread: ADS1148

I have a design with a ADS1148 connected to the SPI2 on a TMS570LS1114.

The ADS1148 is configured to set MISO (DOUT) to go low, when data conversion has finished.

My question: Is it possible to read/poll the level of SPI2MISO input ?

  • Hello Jesper,

    1. You can a separate GIO pin for ARDY. When data is ready, ARDY switches from High to LOW, and GIO interrupt is generated. Then you can start read the data through the SPI

    2. If you use SOMI as ARDY, you can configure SOMI as GIO, then poll value from DIN register (PC2)
  • The hardware design is already closed/done and the /DRDY-pin signal is not available on any GPIO on the TMS.

    So my only option are the combined setup (Register::Idac0::DataReadyMode::DATAOUT_DATAREADY) using the DOUT/DRDY-pin were the level goes from high to low, when the conversion has finished (DataReady).

    So the question is still. Is it possible to ready the SPI2 MISO level as a normal Input without reconfiguring the SPI2 interface ?

    /Jesper

  • Hi Jesper,

    Yes, the SPI_SOMI pin can be used as GIO. you just poll the data value of this GIO pin to decide when to read data through SPI.

    1. spiREG2->SPIPC0 &= 0xFFFF7FFF; (SOMIFUN0 is 0, used as GIO)
    2. spiREG2->SPIPC1 &= 0xFFFFF7FFF; (SOMI DIR0 is set as input)
    3. data = (spiREG2->SPIPC2 >> 11); (SOMI DIN0)