|
最近在用一个DS18B20,这个我设定了温度的上,下限,当执行告警搜索命令后,只有温度超过设定值上限或下限的芯片才作出响应, 但是这个响应是什么,没有说。
还有一段关于ECH的说明
Alarm Search [ECh]
The flowchart of this command is identical to the Search ROM command. However, the DS18B20X will
respond to this command only if an alarm condition has been encountered at the last temperature
measurement. An alarm condition is defined as a temperature higher than TH or lower than TL. The
alarm condition remains set as long as the DS18B20X is powered up, or until another temperature
measurement reveals a non-alarming value. For alarming, the trigger values stored in EEPROM are taken
into account. If an alarm condition exists and the TH or TL settings are changed, another temperature
conversion should be done to validate any alarm conditions.
到底是作什么响应,返回什么样的标志,或值??
大多数软件设计上都是读出温度值,然后在软件里作比较,
我这里想设定好上下限,通过告警搜索命令来查有没有超标,然后再决定是否读寄存器的值来决定是否作相关动作。 |
阿莫论坛20周年了!感谢大家的支持与爱护!!
曾经有一段真挚的爱情摆在我的面前,我没有珍惜,现在想起来,还好我没有珍惜……
|