SPI CS pin going High and From Transceiving function data is not coming.

I am using nrf52840 and i am working on nrf connect sdk v2.6.0  in my overlay file SPI CS pin is low but it is going high between the communication.

Data is not receiving from the sensor using spi_transceive_dt() function but in logic analyzer the MISO and MOSI lines are working.

Please look into the below code and help me on this.

Parents
  • Hi,

     

    Your /CSN pin works as it should. Goes low when the transmission occurs, and back to idle level afterwards (ie. high level)

    You need to adjust your sampling frequency in the saleae logic application, looks like it is too low.

    Looks like you're sending one byte and receiving two. Can you share what you're sending and receiving?

     

    Kind regards,

    Håkon

Reply
  • Hi,

     

    Your /CSN pin works as it should. Goes low when the transmission occurs, and back to idle level afterwards (ie. high level)

    You need to adjust your sampling frequency in the saleae logic application, looks like it is too low.

    Looks like you're sending one byte and receiving two. Can you share what you're sending and receiving?

     

    Kind regards,

    Håkon

Children
Related