This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

SPI MOSI only

Hi All,

I am trying to make a nrf51822 talk to a SPI display by using the SPI Master. My problem is that the display does not give any output, only takes input.

The nrf51822 SPI Master seems to expect that whenever it sends a byte on TX, it should also receives a byte on RX, otherwise the EVENTS_READY flag just won't be set.

It seems like my only options are

*Bitbang the message myself.

*Use nrf51822's SPI slave, and provide my own clock, as suggested here Title

I suppose shorting my SPI output to another pin, and set that pin to MISO will do, but for hardware reasons I can't really do that.

Thanks for your time in advance, Felix

Parents
  • Have you tried connection the display and the nRF51? As long as you read out the SPI buffer on the nRF51 it shouldn't matter whether or not the data on the MISO line is actually worth using. If the pin is left open the buffer will still be filled with random data while you write to the display one the MOSI line. Just clear and throw away the content of the MISO and you should be fine.

Reply
  • Have you tried connection the display and the nRF51? As long as you read out the SPI buffer on the nRF51 it shouldn't matter whether or not the data on the MISO line is actually worth using. If the pin is left open the buffer will still be filled with random data while you write to the display one the MOSI line. Just clear and throw away the content of the MISO and you should be fine.

Children
No Data
Related