I used the EVAL-ADXL345Z-M board, satelliate board on table flatly, view meas data by the EVB GUI V1.3.vi , attachment 1.png is the config parameter and xyz realtime output data(about x=-1,y=11,z=238) ,and 2.png is all register value currently.
Since I program a test project with keil mdk, 4 wire SPI mode, compiler it and burning the hex file to EVAL-ADXL345Z-M board; keep the adxl345 config parameter same as EVB GUI v1.3.vi, as below:
XL345_DATA_FORMAT = 0x0b
XL345_BW_RATE = 0x0a
XL345_POWER_CTL = 0x08
XL345_INT_ENABLE = 0x00
XL345_OFSX = 0x00
XL345_OFSY = 0x00
XL345_OFSZ = 0x00
After burning hex file, I reset the EVAL-ADXL345Z-M board with SW2 button, then adxl345 output data sample as following:
Why my test program output data is different from EVB GUI output data(about x=-1,y=11,z=238)? Difference value of every Axis is about 10 lsb;
Please give me some hint,thanks !