case about nRF52840 spim3 MOSI idle state high or low?

Hi,

How do I set the SPIM3 parameter so that MOSI is low after SPIM3 has sent a byte 0x01?

The test environment

DK PCA10056 

SDK :sdk17.1

example :spim3

Thank you for all your assistance.
Kind regards,
Peter.Min

Parents
  • Hi,

    Although not specified, the state of the MOSI after the transaction is the same as the MSB of the last byte from the TX buffer. This can't be changed as it's part of the HW implementation. You can disable the SPI after the transaction, in that case the pin will revert to whatever the GPIO was configured to before the SPI. 

    regards

    Jared 

Reply
  • Hi,

    Although not specified, the state of the MOSI after the transaction is the same as the MSB of the last byte from the TX buffer. This can't be changed as it's part of the HW implementation. You can disable the SPI after the transaction, in that case the pin will revert to whatever the GPIO was configured to before the SPI. 

    regards

    Jared 

Children
Related