为什么stm32模拟iic挂载两个MPU6050得到的地址都是一样的?

2019-07-14 15:25发布

两个MPU地址线一个接地一个接3.3v,无论将地址改为0x68还是0x69,通过IIC访问,返回的器件地址都是0x68
1.png
2.png
3.png
友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
6条回答
szj0213
2019-07-15 12:48
从机地址应该由从机决定,由从机的硬件连接决定,可以看下手册,:  The slave address of the MPU-60X0 is b110100X which is 7 bits long. The LSB bit of the 7 bit address is determined by the logic level on pin AD0. This allows two MPU-60X0s to be connected to the same I2C bus.
When used in this configuration, the address of the one of the devices should be b1101000 (pin AD0 is logic
low) and the address of the other should be b1101001 (pin AD0 is logic high).
你软件上写0x68  0x69是没有作用的,只能由从机自己决定。

一周热门 更多>