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

Very simple SPI Code

I am really struggling to get my ADXL345 SPI code working. Everything works fine on a LPC1768 and all outputs are fine on the nRF51822 Eval board, but there is no activity on the MISO pin. Is there any reason why I could not implement a simple method whereby I write to the TXD register and monitor the Events Ready pin before reading the received data?

Parents
  • Yes. I modified the loopback example to fit the PCA10001 board and it worked fine, but I could not get it to work with the ADXL345. I also tried examples from RedBearLab but to no avail. A major factor is probably my limited knowledge about event handling. that is why I wanted something REALLY SIMPLE that would also serve as learning curve for me.

Reply
  • Yes. I modified the loopback example to fit the PCA10001 board and it worked fine, but I could not get it to work with the ADXL345. I also tried examples from RedBearLab but to no avail. A major factor is probably my limited knowledge about event handling. that is why I wanted something REALLY SIMPLE that would also serve as learning curve for me.

Children
No Data
Related