\ **
\
\ Filename: degC.txt
\ FlashForth: 5.0
\ MCU PIC18F6527
\ Application:
\
\ Author: Pete Zawasky
\ Created: 3:00 PM 7/28/2014 ppz
\ Last Edit 3:00 PM 1/14/2022 ppz
\
\ **
\FlashForth is licensed acording to the GNU General Public License
\ **
\ Use the A/D to read an LM35 Precision Centigrade Temperature Sensor.
\ The A/D resolution is 10 bit.
\ 10 bit -- result of A/D is 4.9mV/bit => approximately .5degC/bit
\ The LM35 is connected to AN0.
\
\ *
\ FlashForth is licensed acording to the GNU General Public License
\ *
\ This code is distributed in the hope that it will be useful,
\ but WITHOUT ANY WARRANTY; without even the implied warranty
\ of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
\ *
-degC
marker -degC
decimal ram
$ff92 constant trisa
$ffc4 constant adresh \ A/D Result High Register
$ffc3 constant adresl \ A/D Result Low Register
$ffc2 constant adcon0 \ A/D Control Register 0
$ffc1 constant adcon1 \ A/D Control Register 1
$ffc0 constant adcon2 \ A/D Control Register 2
\ adcon0 bits
\ 0 constant adon \ A/D On bit
\ 1 constant go/done* \ A/D Conversion Status bit
ram hex