2018-08-02 08:50 PM
I have confusion about I2C address for magnetometer.
As in the datasheet at page 11:
But in the table 20 page 30:
It looks like the SDO_M pin is used for SAD[1] since the SAD[0] is not change.
Please help me in this case, is it correct?
2018-08-03 05:25 AM
that data sheet looks crazy...
pins CS_A/G and CS_M How are they set ?
2018-08-03 05:27 AM
CS_A/G =1
SPI enable
I2C/SPI mode selection for the accelerometer and gyroscope
(1: SPI idle mode / I2C communication enabled;
0: SPI communication mode / I2C disabled)
CS_M =1
SPI enable
I2C/SPI mode selection for the magnetometer
(1: SPI idle mode / I2C communication enabled;
0: SPI communication mode / I2C disabled)
Yes ?
2018-08-03 06:03 AM
your using SCL/SPC as the clk and SDA
read = 00111
pin SDO its a typo..
5 SDO_A/G
SPI serial data output (SDO) for the accelerometer and gyroscope
I2C least significant bit of the device address (SA0) for the accelerometer
and gyroscope
6 SDO_M
SPI serial data output (SDO) for the magnetometer
I2C least significant bit of the device address (SA0) for the magnetometer
one will be SA0 and the other will be SA1,
are SD)_A/G and SDO_M both Low ?
your address is :
read = 00111 0 0 1
Write = 00111 0 0 0