This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

spi Miso problem

Hello,

I am using nRF SDK 12.2.0 , with nRF52832 on pca10040 hardware, and working with the example in examples/peripheral/spi/main.c to develop a driver for LIS2DE12. When I write a hexadecimal value I find a problem. I checked with the scope that CS, MOSI and SCK are correct, but I get 0xFF on MISO line .

Any ideas what to check? image description

Parents
  • What do you expect on the MISO line? If you are doing a read operation, I would expect the data on MISO line to be don't-care while the command is transmitted, and the data afterwards to be what you are requesting. If you do a write operation, all data on MISO will be don't care.

Reply
  • What do you expect on the MISO line? If you are doing a read operation, I would expect the data on MISO line to be don't-care while the command is transmitted, and the data afterwards to be what you are requesting. If you do a write operation, all data on MISO will be don't care.

Children
No Data
Related