Here is demo program for the ADC on the 10F222. This was tested in
hardware with vs. 4.073.
A 10K trimpot was connected between +5v and ground. The wiper of
the trimpot was connected to the AN0 pin (GP0) on the 10F222. Pin GP2
was connected to the Rx pin (pin 2 on a DB9) on the COM1 port on the
PC. Pin 5 on the DB9 was connected to ground on the 10F222 board.
There is a 10K pull-up resistor on the MCLR pin.
While running the program, the trimpot was turned from one limit to
the other limit. The follow output was displayed in a terminal window
on the PC. This is correct output.
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