按照下图时序,配置configuartion register,configuartion register默认是0x80,写入0x82后读出来还是0x80
写入方法:
#1:直接使用linux命令 sudo i2cset -y -f 1 0x48 0x82
#2: 使用linux I2C应用层API i2c_smbus_write_byte()
以上两种方法返回状态均没有报错,但是就是写入不生效,写入0x82,读出来还是0x80.
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.
按照下图时序,配置configuartion register,configuartion register默认是0x80,写入0x82后读出来还是0x80
写入方法:
#1:直接使用linux命令 sudo i2cset -y -f 1 0x48 0x82
#2: 使用linux I2C应用层API i2c_smbus_write_byte()
以上两种方法返回状态均没有报错,但是就是写入不生效,写入0x82,读出来还是0x80.
大概率是I2C的时序问题。按照手册的figure7对比一下时序吧
另外,看一下手册的第九页