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