![Mikroe EasyMx PRO v7a Скачать руководство пользователя страница 32](http://html1.mh-extra.com/html/mikroe/easymx-pro-v7a/easymx-pro-v7a_manual_1794037032.webp)
P A G E 32
E a s y M x
P R O
v 7 a
U s e r M a n u a l
DS1820 is a digital tempera-ture sensor that uses
1-wire® interface
for it’s operation.
It is capable of measuring temperatures within the range of -55 to 128°C, and provides
±0.5°C accuracy for temperatures within the range of -10 to 85°C. It requires 3V to
5.5V power supply for stable operation. It takes maximum of 750ms for the DS1820
to calculate temperature with 9-bit resolution.
1-wire® serial communication
ena-
bles data to be transferred over a single communication line, while the process
itself is under the control of the master microcontroller. The advantage of such
communication is that only one microcontroller pin is used. Multiple sensors can
be connected on the same line. All slave devices by default have a unique ID code, which
enables the master device to easily identify all devices sharing the same interface.
Board provides a separate socket (TS1) for the DS1820. Communication line with the
microcontroller is established using SW14.5 or SW14.6 DIP switch (ON position).
Enabling DS1820 sensor
MODULES
DS1820 connected to PB10 pin schematic
DS1820 - DIGITAL
TEMP. SENSOR
EasyMx PRO v7a for STM32 enables you to establish 1-wire® communication
between DS1820 and the microcontroller over PB10 or PA3 pin. The connection
is done placing SW14.5 or SW14.6 DIP switch to ON position. When placing the
sensor in the socket make sure that half-circle on the board’s silkscreen markings
matches the rounded part of the DS1820 sensor. If you accidentally connect the
sensor the other way, it may be permanently damaged and you might need to
replace it with another one. During the readings of the sensor, make sure that no
other device (except those in 1-wire network) uses the selected line, because it
may interfere with the data.
VCC-3.3V
C41
100nF
1
2
3
4
5
6
7
8
O
N
SW14
DS1820
PB10
D
AT
A BUS
VCC-3.3V
R33
1K5
PA3