没有合适的资源?快使用搜索试试~ 我知道了~
DS18B20.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 68 浏览量
2022-05-03
23:13:48
上传
评论
收藏 677KB PDF 举报
温馨提示
试读
32页
DS18B20.pdf
资源推荐
资源详情
资源评论
1 of 27 050400
FEATURES
Unique 1-Wire interface requires only one
port pin for communication
Multidrop capability simplifies distributed
temperature sensing applications
Requires no external components
Can be powered from data line. Power supply
range is 3.0V to 5.5V
Zero standby power required
Measures temperatures from -55°C to
+125°C. Fahrenheit equivalent is -67°F to
+257°F
±0.5°C accuracy from -10°C to +85°C
Thermometer resolution is programmable
from 9 to 12 bits
Converts 12-bit temperature to digital word in
750 ms (max.)
User-definable, nonvolatile temperature alarm
settings
Alarm search command identifies and
addresses devices whose temperature is
outside of programmed limits (temperature
alarm condition)
Applications include thermostatic controls,
industrial systems, consumer products,
thermometers, or any thermally sensitive
system
PIN ASSIGNMENT
PIN DESCRIPTION
GND - Ground
DQ - Data In/Out
V
DD
- Power Supply Voltage
NC - No Connect
DESCRIPTION
The DS18B20 Digital Thermometer provides 9 to 12-bit (configurable) temperature readings which
indicate the temperature of the device.
Information is sent to/from the DS18B20 over a 1-Wire interface, so that only one wire (and ground)
needs to be connected from a central microprocessor to a DS18B20. Power for reading, writing, and
performing temperature conversions can be derived from the data line itself with no need for an external
power source.
Because each DS18B20 contains a unique silicon serial number, multiple DS18B20s can exist on the
same 1-Wire bus. This allows for placing temperature sensors in many different places. Applications
where this feature is useful include HVAC environmental controls, sensing temperatures inside buildings,
equipment or machinery, and process monitoring and control.
DS18B20
Programmable Resolution
1-Wire
®
Digital Thermomete
r
www.dalsemi.com
PRELIMINARY
DALLAS
DS1820
1 2 3
GND
DQ
VDD
1 2 3
BOTTOM VIEW
DS18B20 To-92
Package
1
2
3
4
8
7
6
5
NC
NC
NC
GND
NC
NC
V
DD
DQ
DS18B20Z
8-Pin SOIC (150 mil)
Click to BUY NOW!
P
D
F
-
X
C
h
a
n
g
e
E
d
i
t
o
r
w
w
w
.
t
r
a
c
k
e
r
-
s
o
f
t
w
a
r
e
.
c
o
m
Click to BUY NOW!
P
D
F
-
X
C
h
a
n
g
e
E
d
i
t
o
r
w
w
w
.
t
r
a
c
k
e
r
-
s
o
f
t
w
a
r
e
.
c
o
m
DS18B20
2 of 27
DETAILED PIN DESCRIPTION Table 1
PIN
8PIN SOIC
PIN
TO92 SYMBOL DESCRIPTION
5 1 GND Ground.
42DQData Input/Output pin. For 1-Wire operation: Open
drain. (See “Parasite Power” section.)
33V
DD
Optional V
DD
pin. See “Parasite Power” section for
details of connection. V
DD
must be grounded for
operation in parasite power mode.
DS18B20Z (8-pin SOIC): All pins not specified in this table are not to be connected.
OVERVIEW
The block diagram of Figure 1 shows the major components of the DS18B20. The DS18B20 has four
main data components: 1) 64-bit lasered ROM, 2) temperature sensor, 3) nonvolatile temperature alarm
triggers TH and TL, and 4) a configuration register. The device derives its power from the 1-Wire
communication line by storing energy on an internal capacitor during periods of time when the signal line
is high and continues to operate off this power source during the low times of the 1-Wire line until it
returns high to replenish the parasite (capacitor) supply. As an alternative, the DS18B20 may also be
powered from an external 3 volt - 5.5 volt supply.
Communication to the DS18B20 is via a 1-Wire port. With the 1-Wire port, the memory and control
functions will not be available before the ROM function protocol has been established. The master must
first provide one of five ROM function commands: 1) Read ROM, 2) Match ROM, 3) Search ROM, 4)
Skip ROM, or 5) Alarm Search. These commands operate on the 64-bit lasered ROM portion of each
device and can single out a specific device if many are present on the 1-Wire line as well as indicate to
the bus master how many and what types of devices are present. After a ROM function sequence has
been successfully executed, the memory and control functions are accessible and the master may then
provide any one of the six memory and control function commands.
One control function command instructs the DS18B20 to perform a temperature measurement. The result
of this measurement will be placed in the DS18B20’s scratch-pad memory, and may be read by issuing a
memory function command which reads the contents of the scratchpad memory. The temperature alarm
triggers TH and TL consist of 1 byte EEPROM each. If the alarm search command is not applied to the
DS18B20, these registers may be used as general purpose user memory. The scratchpad also contains a
configuration byte to set the desired resolution of the temperature to digital conversion. Writing TH, TL,
and the configuration byte is done using a memory function command. Read access to these registers is
through the scratchpad. All data is read and written least significant bit first.
Click to BUY NOW!
P
D
F
-
X
C
h
a
n
g
e
E
d
i
t
o
r
w
w
w
.
t
r
a
c
k
e
r
-
s
o
f
t
w
a
r
e
.
c
o
m
Click to BUY NOW!
P
D
F
-
X
C
h
a
n
g
e
E
d
i
t
o
r
w
w
w
.
t
r
a
c
k
e
r
-
s
o
f
t
w
a
r
e
.
c
o
m
DS18B20
3 of 27
DS18B20 BLOCK DIAGRAM Figure 1
PARASITE POWER
The block diagram (Figure 1) shows the parasite-powered circuitry. This circuitry “steals” power
whenever the DQ or V
DD
pins are high. DQ will provide sufficient power as long as the specified timing
and voltage requirements are met (see the section titled “1-Wire Bus System”). The advantages of
parasite power are twofold: 1) by parasiting off this pin, no local power source is needed for remote
sensing of temperature, and 2) the ROM may be read in absence of normal power.
In order for the DS18B20 to be able to perform accurate temperature conversions, sufficient power must
be provided over the DQ line when a temperature conversion is taking place. Since the operating current
of the DS18B20 is up to 1.5 mA, the DQ line will not have sufficient drive due to the 5k pullup resistor.
This problem is particularly acute if several DS18B20s are on the same DQ and attempting to convert
simultaneously.
There are two ways to assure that the DS18B20 has sufficient supply current during its active conversion
cycle. The first is to provide a strong pullup on the DQ line whenever temperature conversions or copies
to the E
2
memory are taking place. This may be accomplished by using a MOSFET to pull the DQ line
directly to the power supply as shown in Figure 2. The DQ line must be switched over to the strong pull-
up within 10 µs maximum after issuing any protocol that involves copying to the E
2
memory or initiates
temperature conversions. When using the parasite power mode, the V
DD
pin must be tied to ground.
Another method of supplying current to the DS18B20 is through the use of an external power supply tied
to the V
DD
pin, as shown in Figure 3. The advantage to this is that the strong pullup is not required on the
DQ line, and the bus master need not be tied up holding that line high during temperature conversions.
This allows other data traffic on the 1-Wire bus during the conversion time. In addition, any number of
DS18B20s may be placed on the 1-Wire bus, and if they all use external power, they may all
simultaneously perform temperature conversions by issuing the Skip ROM command and then issuing the
Convert T command. Note that as long as the external power supply is active, the GND pin may not be
floating.
The use of parasite power is not recommended above 100°C, since it may not be able to sustain
communications given the higher leakage currents the DS18B20 exhibits at these temperatures. For
applications in which such temperatures are likely, it is strongly recommended that V
DD
be applied to the
DS18B20.
64-BIT ROM
AND
1-WIRE PORT
MEMORY AND
CONTROL LOGIC
SCRATCHPAD
8-BIT CRC
G
ENERAT
O
R
TEMPERATURE SENSOR
HIGH TEMPERATURE
TRIGGER, TH
LOW TEMPERATURE
TRIGGER, TL
CONFIGURATION
REGISTER
POWER
SUPPLY
SENSE
INTERNAL V
DD
DQ
V
DD
Click to BUY NOW!
P
D
F
-
X
C
h
a
n
g
e
E
d
i
t
o
r
w
w
w
.
t
r
a
c
k
e
r
-
s
o
f
t
w
a
r
e
.
c
o
m
Click to BUY NOW!
P
D
F
-
X
C
h
a
n
g
e
E
d
i
t
o
r
w
w
w
.
t
r
a
c
k
e
r
-
s
o
f
t
w
a
r
e
.
c
o
m
剩余31页未读,继续阅读
资源评论
卷积神经网络
- 粉丝: 340
- 资源: 8460
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- SQL语言优质学习资源工具与案列应用场景开发文档.txt
- PHP语言优质学习资源和工具与案列应用场景和开发文档.txt
- go语言优质学习资源和工具与案列应用场景.txt
- 23957825633dCar.zip
- Ruby优质学习资源和工具与案列应用场景.txt
- 阿里巴巴大数据实践之路-陈鹏宇(PDF格式).rar
- 基于医疗知识图谱的智能问答系统python实现源码+使用教程(毕业设计).zip
- 基于Python实现的医疗知识图谱的知识问答系统源码+使用教程(毕业设计).zip
- Objective-C优质学习资源和工具与案列应用场景.txt
- 基于python知识图谱医疗领域问答系统实现完整源码+使用说明(毕业设计).zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功