Datasheet

14
UNI-DS6
MikroElektronika
page
10. DS1820 temperature sensor
DS1820 is a temperature sensor that uses 1-wire communication for its operation� It is used to measure temperature in
a range between -55 and 125°C and provides ±0�5°C accuracy for temperatures in a range between -10 and 85°C� The
power supply voltage of 3�3V to 5V is used for the operation of this sensorIt takes maximum 750ms for the DS1820 to
convert temperature with 9-bit resolution� There is a socket for this temperature sensor provided on the development
system� Communication between this module and the microcontroller is enabled via the microcontroller pins RC1 and
RA4� To use pin RC1 place jumper J15 in the RC1 position and for the RA4 pin place jumper J15 in the RA4 position�
1-wire® serial communication enables data to be transferred over one single communication line, while the process
itself is under control of the master microcontrollerThe advantage of this communication is that only one microcontroller
pin is used� All slave devices have a unique ID code, which enables the master device to easily identify all devices
sharing the same communication bus�
VCC-BRD
DS1820
DQ
DS1820-DQ
R13
1K
-55 C
125 C
Botoom view
VCC-MCU
DQ
GND
DS
1820
VCC-MCU
DQ
GND
RC1
RA4
J15
RA4 RE4
RE2
RA12
RB4 RF12
RB12 RG4
RC4 RG12
RC12 RH4
RD4 RJ4
RD12
USB-VBUS
RA6
RA14 RF6
RB6 RF14
RB14 RG6
RC6 RG14
RC14 RH6
RD6 RJ6
RD14
#RX232A
#TX232A
#SCL
#SDA
#SS1#
#SCK1
#MISO1
#MOSI1
USB-DP
RA0 RE0
RA8 RF0
RE6
RB0 RF8
RB8 RG0
RC0 RG8
RC8 RH0
RD0 RJ0
RD8
RA2
RA10 RF2
RF4
RB2 RF10
RB10 RG2
RC2 RG10
RC10 RH2
RD2 RJ2
RD10
RA5
RA13
RB5 RF13
RB13 RG5
RC5 RG13
RC13 RH5
RD5 RJ5
RD13
RA7
RA15 RF7
RF5
RF3
RB7 RF15
RB15 RG7
RC7 RG15
RC15 RH7
RD7 RJ7
RD15
#RX232B
#TX232B
#CS1#
#CS2#
#SS2#
#SCK2
#MISO2
#MOSI2
USB-DN
RA1 RE1
RA9 RF1
RE7
RE5
RE3
RB1 RF9
RB9 RG1
RC1 RG9
RC9 RH1
RD1 RJ1
RD9
RA3
RA11
RB3 RF11
RB11 RG3
RC3 RG11
RC11 RH3
RD3 RJ3
RD11
VCC-SW VCC-5V
CN20 CN21
Figure 10-4: DS1820 and microcontroller connection schematic
Figure 10-1: DS1820
connector (DS1820 is
not connected)
Figure 10-2: Temperature
sensor DS1820 is
connected via pin RA4
Figure 10-3: Temperature
sensor DS1820 is
connected via pin RC1
NOTE:
Make sure that the
rounded side of the
DS1820 matches half-
circle on the board