Hi james,
Scaling the A/D input voltage by (230ohm+10kohm) divider or adjust the Vdd at
5.115 volt,and if ADVAL>=511 then Farenheit=9ADVAL-4594.(Last digit is decimal fraction)
If ADVAL<=510 then
minus_sign=1
Farenheit=9ADVAL-4594
Farenheit=~Farenheit+1
endif
Last digit of Farenheit is decimal fraction.
I was really sorry for first reply.At that time I didn't know PBP's 8Bits A/D conversion can
done on 12F675.We use 16F676 to make 10 bit A/D conversion.Today we made 8bit A/D on 16F676 well.
Thank you for sharing.
a.majid
Bookmarks