pic 16f690 ADC setup- solved Answered
Hi, i'm trying to get the ADC module on the 16f690 operational.
The analog input is on A0, and is variable between 0V and about 1.8V.
The result is just displayed in the format it comes out of the converter on 8 LED's (all tested and functional) on C0 to C7.
When I run the code, it continuously displays '10001100xx' (the two least significant bits are not displayed, so are unknown)
The .asm file attatched (will open in notepad) compiles ok, with no errors, and the warnings about the correct bank have been checked.
The configuration used is as follows:
INTOSCIO oscillator: I/O on A4, A5
MCLR tied to VDD, I/O on MCLR pin
code protection disabled
internal/external switchover mode disabled
fail safe clock monitor disabled
Thanks for any help.