TI工程师你好:
我的开发环境是这样的 sensor + 913 + 964 + MCU。
目前可以通过I2C访问到964内部寄存器。964的i2c地址为:0x30
请问需要配置964的哪些寄存器,才能够访问到sensor?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
TI工程师你好:
我的开发环境是这样的 sensor + 913 + 964 + MCU。
目前可以通过I2C访问到964内部寄存器。964的i2c地址为:0x30
请问需要配置964的哪些寄存器,才能够访问到sensor?
您好:
0x5D SlaveID[0]
0x65 SlaveAlias[0]
以上两个寄存器已经配置了。
总线上还是找不到sensor的i2c地址。
root@linaro-alip:~# i2cget -f -y 0 0x30 0x5d
0xa0
root@linaro-alip:~# i2cget -f -y 0 0x30 0x65
0xa0
root@linaro-alip:~# i2cdetect -y -r 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- 58 -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
964从机地址:0x30
913从机地址:0x58
i2c总线找不到0x50的设备地址?
烦请分析还需要配置哪些寄存器?
您好:
我们目前是无法访问到sensor设备,964和913设备目前都可以访问的到,访问sensor需要配置的寄存器我们都已经配置了,
但还是无法访问到sensor设备?
root@linaro-alip:~/964_913_new# i2ctool 8 0x30 0x5d
reg_bit 8
read reg 0x5d value: 0xa8
root@linaro-alip:~/964_913_new# i2ctool 8 0x30 0x65
reg_bit 8
read reg 0x65 value: 0xa8
root@linaro-alip:~/964_913_new# i2cdetect -y -r 0
0 1 2 3 4 5 6 7 8 9 a b c d e f
00: -- -- -- -- -- -- -- -- -- -- -- -- --
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
20: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
30: 30 -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
50: -- -- -- -- -- -- -- -- 58 -- -- -- -- -- -- --
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
70: -- -- -- -- -- -- -- --
0x30 ----> 964从机地址
0x58 ----> 913从机地址
总线上面找不到sensor的从机地址(0xa8 >> 1)?
烦请帮忙分析原因。
感谢!