This project shows how to use a PIC16F84 to make analog measurements
without an A/D converter. The basic idea is that it measures the
time required to charge a capacitor for an input pin to go from a
low to a high state. Here's a link to the source for temper.c. |