I'm using a PIC to work with ADXL372 Accelerometer , using SPI protocol, SPI frequency:4 Mhz. Now i can read correct value in register 0x00~0x03, and i can write to other register. my process:
1. I set ACTIVITY THRESHOLD REGISTER is 0.5g for 3-axis.
2. write 0x17 to register 0X3F(POWER_CTL).
3. I read register 0x04 (STATUS): 0x41
4. Other function i not use.
I have problem when i read X,Y,Z AXIS DATA REGISTER. The value return are not correct .I not move adxl372, but the value in register XDATA_L, YDATA_L, ZDATA_L is alway change, sometime value is 0x00, sometime 0xC0, 0xF0.. etc.., please help me to fix this problem.