AnsweredAssumed Answered

ADXL313 SPI Serial Interface with PIC Setup

Question asked by poi501 on Sep 29, 2015
Latest reply on Sep 30, 2015 by NevadaMark

What is the process to establish and test serial communication between a PIC18 (PIC18F46K22 specifically) microcontroller [Master] and ADXL313 [Slave] via SPI protocol?


I haven't written code for an SPI interface before. I'm trying to figure out how to set the measurement range (+/- 0.5g) on the accelerometer and parse/extract the x, y, and z components from the serial stream. Does anyone know how to best go about this?

-Thank you!