Hi,
<< to those of you who already used the ADXL312 or similar >>
I have an SPI/I2C-Accelerometer (ADXL312) from Analog Devices which I
want to use in combination with an ATXmega128A1.
I have already successfully set up the I2C connection, but I cant get
any valid data from the x,y and z registers.
I can read the DEVICE_ID and my initialisation looks as follows:
DATA_FORMAT: 0x08
POWER_CTL: 0x08
INT_ENABLE: 0x80
After that, the only data I get from the X0,X1,Y0,.. registers are
those:
x00 xf0 X0,1
x00 xf0 Y0,1
x00 xf0 Z0,1
Does anyone know what might be the reason for that? Did I forget a part
of the initialisation?
Hey,
I solved the problem, I did a Design-Mistake with some 'Do-Not-Connect'
Pins ;)
You'll find my code in the attachment, in case someone or 'whatisthis'
will need it.. ;)
The twi_master_driver.* files are based on a AppNote from Atmel for the
XMEGA-TWI.
Cheers