Hello,
I am working on developing an application with MPU6000 sensor, I am having a problem with performing write operation on the registers in MPU6000. I am getting ACK signal for any data I write into the R/W register but when I read the content of the register I see only the default value (0x00) in it. I exactly follow the procedure mentioned in the datasheet of the device.
This is the code I developed for Write and Read operations. I tried writing 0x20 in the CONFIG (0x1A) register of MPU6000.
I2C>[0xD0 0x1A 0x20 %% I2C Write operation
I2C START BIT
WRITE: 0xD0 ACK
WRITE: 0x1A ACK %%Register Address
WRITE: 0x20 ACK %%Data
I2C>[0xd0 0x1a [0xD1 %%I2C read
I2C START BIT
WRITE: 0xD0 ACK
WRITE: 0x1A ACK
I2C START BIT
WRITE: 0xD1 ACK
I2C>r
READ: 0x00 %%Content of 0x1A
I2C>
Please let me know that I am missing and I am using bus pirate of communicating with the device.
- Log in to post comments
phpbb Topic ID
15030