How can I use a 16F648A mcu to read an analog voltage (0 to 5 V range) ?
The 16F648A does not have a ADC, but it has a comparator. Also mention what the accuracy of the result would be ???
thanks
arunb
libor
Joined: 14 Dec 2004 Posts: 288 Location: Hungary
Posted: Thu Mar 22, 2007 11:02 am
Using another port of the PIC as an output you can charge/discharge an RC element that is connected to the comparator's first input. The timepoint, the comparators triggers corresponds to the analog voltage on the second input of the comparator.
Accuracy: depends on how slow is your RC element, this also affects the 'sampling frequency'.
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
Posted: Fri Mar 23, 2007 12:26 pm
Quote:
How can I use a 16F648A mcu to read an analog voltage (0 to 5 V range) ?
The 16F648A does not have a ADC , but it has a comparator.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum