background image

D

AT

A BUS

TOP VIEW

DS1820

GND

VCC

DQ

VCC-MCU

J11

RA4

RE2

TS1

R2

1K

VCC

GND

DQ

1 2 3

DS1820 - Digital

Temperature Sensor

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 transfered 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.
EasyPIC

 v7 provides a separate socket 

(

TS1

)  for  the  DS1820.  Communication 

line with the microcontroller is selected 
with jumper 

J11

.

EasyPIC

 v7 enables you to establish 1-wire® communication between 

DS1820 

and the microcontroller via 

RA4

 or 

RE2

 microcontroller pins. The selection of either 

of those two lines is done using 

J11

 jumper. 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 accidently 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.

Figure 15-1:
DS1820 not 
connected

Figure 15-2:
DS1820 
placed in 
socket

Figure 15-3:
DS1820 
connected 
to RE2 pin

Figure 15-4:
DS1820 
connected 
to RA4 pin

Figure 15-5:
DS1820 
connected 
to RE2 pin

Enabling DS1820 Sensor

1

2

3

4

page 28

modules

Содержание EasyPIC V7 connectivity

Страница 1: ...Supports 3 3V and 5V devices Dual Power Supply Easily add extra boards mikroBUS sockets Four connectors for each port Amazing Connectivity microcontrollers supported The ultimate PIC board Fast USB 2...

Страница 2: ...ece we had put all of our energy creativity and sense of what s best for an engineer I ve personally assembled hundreds of early EasyPIC boards myself with my home soldering iron Today we present you...

Страница 3: ...good to know Piezo Buzzer Input Output Group Programming software ADC inputs On board programmer Dual power supply Supported microcontrollers Touchpanel controller Additional GNDs Introduction Power S...

Страница 4: ...new board just as we are EasyPIC development Team EasyPIC v7 is all about connectivity Having four different connectors for each port you can connect accessory boards sensors and your custom electroni...

Страница 5: ...al To Analog Converter DAC support for Capacitive Touch Sensing using Charge Time Measurement Unit CTMU three 8 bit timers and four 16 bit timers It also has pair of CCP Comparators and MSSP modules w...

Страница 6: ...7 23V AC Use jumper J6 to specify which power source you are using and jumper J5 to specify whether you are using 5V or 3 3V microcontroller Upon providing the power using either external adapter or...

Страница 7: ...d using screw terminals place jumper J6 in EXT position and place jumper J5 in 5V or 3 3V position depending on which microcontroller you are using You can then plug in the adapter cable as shown on i...

Страница 8: ...RB3 RA6 MCU RA7 MCU RB7 MCU RB6 MCU RB5 RB4 VCC MCU SKT5 DIP SKT 20 SKT6 DIP SKT 14 C13 100nF VCC MCU C42 100nF VCC MCU RB7 RC7 RC6 RC3 RC4 RC5 MCLR RA3 RA4 MCU RA5 MCU RB6 RB5 RB4 RC2 RC1 RC0 RA2 MC...

Страница 9: ...orrectly and press the microcontroller until it is completely plugged into the socket as shown in Figure 4 5 Figure 4 6 RA6 and RA7 as I O pins when using internal oscillator Figure 4 3 Place both end...

Страница 10: ...line is routed to the correct socket for your microcontroller If you are using the default PIC18F45K22 jumpers are supposed to be set for DIP40 as shown below Jumpers J8 and J9 are used to select PGC...

Страница 11: ...ACTIVE R69 6K8 LD40 VCC 5V DATA 1 2 3 4 VCC D D GND CN2 USB VCC BRD CN28 RJ12 MCU PGC MCU PGD MCU VPP 1 2 3 4 5 6 ICD C18 100nF VCC BRD Figure 5 1 mikroProg block schematics EasyPIC v7 is equipped wi...

Страница 12: ...ou should be able to locate the driver setup file Double click on setup file to begin installation of the programmer drivers Welcome screen of the installation Just click on Next button to procede Dri...

Страница 13: ...re has intuitive interface and SingleClick programming technology To begin first locate the installation archive on the Product DVD After downloading extract the package and double click the executabl...

Страница 14: ...s powerful tool with intuitive interface and convenient set of commands will enable you to track down bugs quickly mikroICD is one of the fastest and most reliable debugging tools on the market Suppor...

Страница 15: ...within it Step Over F8 Executes the current program line then halts If the executed program line calls another routine the debugger will not step into it The whole routine will be executed and the deb...

Страница 16: ...necessary to use a RS 232 Transceiver circuit such as MAX3232 as shown on Figure 6 1 DATA BUS CN37 1 6 5 9 1 6 5 9 Bottom view SUB D 9p R32 100K VCC MCU VCC MCU U4 MAX3232 C1 V C1 C2 C2 V T2 OUT R2 I...

Страница 17: ...8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 U2 FT232RL TXD DTR RTS VCCIO RXD RI GND NC DSR DCD CTS CBUS4 CBUS2 CBUS3 OSCO OSCI TEST AGND NC CBUS0 CBUS1 GND VCC RESET GND 3V3OUT USBDM...

Страница 18: ...eaders Dedicated USB ON LED signalizesthepresenseofUSBconnection when the USB cable is inserted into the USB connector communication Figure 8 1 USB function disabled Figure 8 2 USB enabled on PORTC Fi...

Страница 19: ...ee groups of communication pins SPI UART and I2 C communication There are also single pins for PWM Interrupt Analog input Reset and Chip Select Pinout contains two power groups 5V and GND on one heade...

Страница 20: ...tional set of mikroBUS compatible Click Boards Almost each month several new Click boards are released It is our intention to provide the community with as much of these boards as possible so you will...

Страница 21: ...WiFi click GPS click Code Examples It easy to get your Click board up and running We provided the examples for mikroC mikroBasic and mikroPascal compilers on our Libstock community website Just downl...

Страница 22: ...ull up and pull down feature from the PORT pin 2 up position connects the resistor in pull up state to the selected pin 3 down position connects the resistor in pull down state to the selected PORT pi...

Страница 23: ...ith over 70 mikroElektronika accessory boards and enable simple connection There is one more IDC10 header available on the left side of the board next to the section with displays I O PORT group also...

Страница 24: ...half of the data byte interface is connected to GND D4 D7 Upper half of the data byte LED Connection with the backlight LED anode LED Connection with the backlight LED cathode We have allowed LCD bac...

Страница 25: ...Since PORTB is also used by 2x16 character LCD display you cannot use both displays simoutaneously You can control the display contrast using dedicated potentiometer P3 Full brightness display backli...

Страница 26: ...your finger to push it inside Figure 13 3 Now place GLCD with Touch panel into GLCD socket 1 2 3 Figure 13 5 Turn on switches 5 through 8 on SW3 to enable Touch panel controller Touchpanel is enabled...

Страница 27: ...for the 4 digit 7 segment display you have to turn on SW4 1 SW4 2 SW4 3 and SW4 4 switches Digit select lines are connected to RA0 RA3 pins on the microcontroller sockets while data lines are connecte...

Страница 28: ...ter device to easily identify all devices sharing the same interface EasyPIC v7 provides a separate socket TS1 for the DS1820 Communication line with the microcontroller is selected with jumper J11 Ea...

Страница 29: ...sensor in TO 92 plastic packaging Readings are done with microcontroller using single analog input line which is selected with jumper J25 Jumper connects the sensor with either RE2 or RE1 microcontrol...

Страница 30: ...ed in maximum number of bits that resulting number occupies Most PIC microcontrollers have 10 bit resolution meaning that maximum value of conversion can be represented with 10 bits which converted to...

Страница 31: ...SW4 8 switches as shown on Figure 18 1 1k pull up resistors necessary for I2 C communication are already provided on SDA and SCL lines once switches are turned on Prior to using EEPROM in your applic...

Страница 32: ...buzzer driver to either RC2 or RE1 microcontroller pin Buzzerstarts singing whenyouprovide PWM signal from the microcontroller to the buzzer driver The pitch of the sound is determined by the frequen...

Страница 33: ...signals of on board modules GND is located between UART module and 4 digit 7 seg display GND is located in the cross section between DIP18 and DIP14 sockets GND is located between PORTD I O group and...

Страница 34: ...cts DVD download eng software compilers Development Systems EASYPIC_v7 If you want to find answers to your questions on many interesting topics we invite you to visit our forum at http www mikroe com...

Страница 35: ...l or product even if MikroElektronika has been advised of the possibility of such damages MikroElektronika reserves the right to change information contained in this manual at any time without prior n...

Страница 36: ...e experiencing some problems with any of our products or just need additional information please place your ticket at www mikroe com esupport If you have any questions comments or business proposals d...

Отзывы: