.

QuickBuilder
for Microchip PICs

Home - About- Consulting* - Articles - FAQs - Contact
Tour - Application Example - Sub circuits - Projects - Download
Sub-circuits: Sensors
A Sub-circuit is a stand alone circuit function encapsulating of a software module and schematic.

DS1820 Temperature sensor

Description
Dallas DS1820 temperature sensor with 1-wire interface..

Software functions

DS1820_RESET()  : Resets the DS1820. Returns 1 if DS1820
present, returns 0 if not present.

DS1820_READ_TEMPERATURE() : Read temperature from
DS1820. Returns temperature data as 16 bit signed
integer in 0.5 DegC increments. See table.

Temperature data relationship table.
+----------------------------+
| Temperature | Data |
+----------------------------+
| +125 DegC | 250 |
| + 25 DegC | 50 |
| +1/2 DegC | 1 |
| 0 DegC | 0 |
| -1/2 DegC | -1 |
| - 25 DegC | -50 |
| - 55 DegC | -110 |
+----------------------------+

Schematic

 

 

Rotary encoder (8-bit count)

Description
Rotary encoder and 8-bit software up/down counter;

Software functions

ENC8_DO()     : call at regular intervals (faster than
anticipated pulse rate)
ENC8_COUNT : output count 0 to 255



Schematic

 

 
Copyright 2002-2009 Summit Electronics Ltd
www.quickbuilder.co.uk