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.

RM44L920: How to bring SPI CS to low using registers.

Part Number: RM44L920


I am using MibSPI3 for accelerometer , for the power sequence  i need to bring chipselect and clock to low before initialisation. using the accelrometer register i can able to bring the clock to zero  but chip select i am not sure how to bring it to low . Is there any registers for directly accesing the pinMux registers?

  • Hi Karthik,

    After reset of the device the SPI pins will act like GIO Input pins with pull-up enabled, that is is the reason why you are seeing high on the CS0 pin after reset.

    To make pin value to zero after reset, you can use the following code in the pin mux initialization.

    This code will bring SPI out of reset and after that it will make the pin output value to zero and pin direction as output.

    The below is the waveforms i got before adding above code

    And the below is the waveforms i got after adding above code.

    Here is my tested code for your reference.

    SPI_Master_TEST_RM46.zip

    --

    Thanks & regards,
    Jagadish.