BMA220,IIC读写的一个坑
说明书上写:
The default slave address assigned to the BMA220 is
000 1011
. When in I²C mode, the LSB
can be inverted by tying the CSB pin to ‘1’. This allows resolving conflicts with existing devices.
按照说明书上的意思,末尾是读写,所以CSB接GND时,写地址应该是0x16;
CSB接VCC时,写地址应该是0xD0;但实际情况却不是这样,,,害我找了半天原因,
用Arduino的板子和例程可以正常读写,程序里写的地址是0x0A,但是换这个地址到自己写的iic里面测试,怎么都读不出来,用逻辑分析仪测量,才发现实际输出的地址是0x14,醉了。。。