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.

MSPM0G3507: Forcing initial SPI clock state for active low clock configurations

Part Number: MSPM0G3507
Other Parts Discussed in Thread: SYSCONFIG

Hello,

I noticed that when using a manual GPIO chip select the SPI controller doesn't set the clock line high on initialization when configured for CPOL 1 PHA1 (DL_SPI_FRAME_FORMAT_MOTO3_POL1_PHA1)

I understand that if the chip select is handled outside of the spi controller there's no way for the controller to know when it's intended to be active outside of writing something to the TX FIFO, but any ideas on how to get this state to be correct when using a GPIO chip select?

As you can see in the picture the spi clock is low until data is written to the fifo and then it the clock polarity and phase start working correctly.

Munan

  • Hey Munan,

    you can always enable the pullup on the associated pin (via Driverlib) for the SCK pin. Also there seems to be a pullup control within the SPI sCK register that might be able to be used as well. Can you try these? 

  • Hey Jace,

    Yes I was able to use the enable pinconfig setting in sysconfig under the spi SCLK pin to enable the pull up:

    Now the initial state of SCLK is high:

    Thanks for the tips!

    Munan