完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
电子发烧友论坛|
你好。
对不起我的英语不好。 数据表中指定的 如果从机接收器不确认从机地址(即由于它正在执行某些实时功能而无法接收),则从机必须将数据线保持为高电平。然后,主人可以中止转移。当SCL线为高电平时,SDA线上的低电平到高电平转换被定义为停止条件。必须通过生成STOP(SP)条件来终止每次数据传输。 传感器将数据线设置为高电平。通过发送地址传感器的微控制器接收NACK,并停止通信。 之后,寄存器AV_CONF,CTRL _REG1,CTRL _REG2,CTRL_REG3复位为其默认状态(所有读操作都读取默认值)。 如果ODR> 0,则会发生这种情况。 0.(1 Hz 7 Hz 12,5 Hz) 为什么会这样? 如何在没有RDY引脚(ODR> 0)的情况下检查转换是否完整?最好的问候,谢尔盖 以上来自于谷歌翻译 以下为原文 Hi. Sorry for my English. specified in the datasheet If a slave receiver does not acknowledge the slave address (i.e. it is not able to receive because it is performing some real-time function) the data line must be kept HIGH by the slave. The master can then abort the transfer. A LOW to HIGH transition on the SDA line while the SCL line is HIGH is defined as a STOP condition. Each data transfer must be terminated by the generation of a STOP (SP) condition. Sensor sets the data line in high. The microcontroller by sending an address sensor receives NACK, and stops communication. After that, registers AV_CONF, CTRL _REG1, CTRL _REG2, CTRL_REG3 reset to its default state (All read operations read the default values). This situation occurs if the ODR> 0. (1 Hz 7 Hz 12,5 Hz) Why is this happening? How do I check the conversion is complete without RDY pin (ODR>0)?Best regards, Sergey |
|
相关推荐
1个回答
|
|
|
确保CS引脚为高电平,以配置为I2C模式(100kHz对于湿度传感器来说已经足够了)
请记住,在读取状态,湿度和温度寄存器时,子地址位7应设置为1以使用自动增量。这使得通信更短且更有效。 没有测试ODR = 1 Hz,所以在这里无法帮助。 重复(一个短模式,等待1秒,读回结果寄存器)应该可以正常工作。 与压力相比,湿度变化和检测是一个非常缓慢的过程(除非使用通风)。 祝你好运! 以上来自于谷歌翻译 以下为原文 Make sure CS pin is high level to configure as I2C mode (100kHz is more than enough for a humidity sensor) Remember that the sub address bit 7 should be set to 1 to use autoincrement when reading status, humidity and temperature registers. This makes the communication shorter and efficient. Haven't tested ODR = 1 Hz so can't help out here. Repeat( one short mode, wait 1 second, read back the result registers) should work fine. Humidity changes and detection is a quite slow process (unless using ventilation) compared to pressure. Good luck! |
|
|
|
|
只有小组成员才能发言,加入小组>>
stm32mp157的异核通信的rpmsg_sdb的m4固件和a7驱动该如何编写?
1453 浏览 0 评论
stm32f103用freertos对一个采样率为1kHz的传感器,进行采样,数据出差
1502 浏览 0 评论
请教:在使用UDE STK时,单片机使用SPC560D30L1,在配置文件怎么设置或选择?里面只有SPC560D40的选项
3649 浏览 1 评论
3842 浏览 1 评论
请问是否有通过UART连接的两个微处理器之间实现双向值交换的方法?
2461 浏览 1 评论
STM32H7打开DCache后,出现了串口接收信息为空的现象,是哪里出了问题?
727浏览 5评论
用NANO STM32F103RBT6的开发板烧录不了是哪里出了问题?
661浏览 5评论
710浏览 5评论
外部中断触发类型为双边沿触发,进入中断回调后有什么办法判断该边沿是上升沿还是下降沿?
941浏览 5评论
STM32L071CBT6低温环境下无法正常工作是什么原因引起的?
745浏览 5评论
/9
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2025-12-2 00:51 , Processed in 1.045763 second(s), Total 73, Slave 55 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191

淘帖
2486