LSM303AGR initialization in simulink
Hello,
I am working on sensor fusion of LSM303AGR MEMS accelerometer, As a simple program to read acceleration values, I used the I2C read and write blocks, here is my step by step:
Initialize sensor: I2C write (0x32), write 0x57 on CTRL_REG1_A(0x20)

Read XYZ values: I2C read (0x33), read from 28, 29, 2A, 2B, 2C, 2D

however, on all displays I get only 00. and nothing else is happening when i move the board. I suspect, I might have an old version of the sensor where the address might be 0x19 for the acceleration sensor.
Is my methodology correct to work the sensor, or are there extra steps involved in initialization or does my returned data need to be multiplied with sensitivty?
I have another project in keil mdk where i added the ACC_I2C_ADDRESS to the watch window in debug mode to check if i am using the correct I2C address, but it does not display any value rather throws an error 'cannot evaluate'
Could anyone help?
