DS18B20 时序 Author:exploer CIEE ,CAU 2008-9-16 本文档参照Maxim 公司DS18B20 的Datasheet 而完成。其中,加了灰框的部分为原文档内容,其中英文部分为官方文档内容,中文部分为本人的翻译。限于本人水平,本文档可能存在错误或者让人误解的内容,对于因此引起的一切问题作者(exploer,CIEE-CAU)概不负责。 INITIALIZATION PROCEDURE— RESET AND PRESENCE PULSES 初始化序列——复位和存在脉冲 All communication with the DS18B20 begins with an initialization sequence that consists of a reset pulse from the master followed by a presence pulse from the DS18B20. This is illustrated in Figure 13. When the DS18B20 sends the presence pulse in response to the reset, it is indicating to the master that it is on the bus and ready to operate. DS18B20 的所有通信都由由复位脉冲组成的初始化序列开始。该初始化序列由主机发出,后跟由DS18B20 发出的存在脉冲(presence pulse)。下图(插图 13,即如下截图)阐述了这一点。当发出应答复位脉冲的存在脉冲后,DS18B20 通知主机它在总线上并且准备好操作了。 During the initialization sequence the bus master transmits (TX) the reset pulse by pulling the 1-Wire bus low for a minimum of 480 μs. The bus master then releases the bus and goes into receive mode (RX). 在初始化步骤中,总线上的主机通过拉低单总线至少 480μs 来产生复位脉冲。然后总线主机释放总线并进入接收模式。 When the bus is released, the 5kΩ pullup resistor pulls the 1-Wire bus high. When the DS18B20 detects this rising edge, it waits 15μs to 60 μs and then transmits a presence pulse by pulling the 1-Wire bus low for 60μs to 240μs. 当总线释放后,5kΩ 的上拉电阻把单总线上的电平拉回高电平。当 DS18B20 检测到上升沿后等待 15 到 60us,然后以拉低总线 60-240us 的方式发出存在脉冲。 如文档所述,主机将总线拉低最短 480us,之后释放总线。由于5kΩ 上拉电阻的作用,总线恢复到高电平。DS18B20 检测到上升沿后等待 15 到 60us,发出存在脉冲:拉低总线60-240...