Continue to Site

Welcome to our site!

Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

  • Welcome to our site! Electro Tech is an online community (with over 170,000 members) who enjoy talking about and building electronic circuits, projects and gadgets. To participate you need to register. Registration is free. Click here to register now.

DS18S20 with LCD Demo1

Status
Not open for further replies.

ericgibbs

Well-Known Member
Most Helpful Member
hi,
A Basic demo program for using a single 18S20 temperature sensor, with the temperature displayed on a two line LCD.

By setting in the code listing the variable Sim to a value of '1', it will enable the AN0 analog pin value to be controlled by the AN0 slider that appears on the PIC micro-controller view.

The AN0 value will be loaded as the temperature value into the DS18 sub routines, so its possible to write/debug and test extra code for your projects using the Oshonsoft simulator, the DS18 will not be addressed.

When done and prior to programming a PIC, change the Sim variable to '0' and the AN0 input will be ignored and the DS18 sensor will be addressed.

E
 
Last edited:
Status
Not open for further replies.

Latest threads

Back
Top