SwingeyP
Member
I have decided to use some of the A/D pins of the 16f877a for the S meter (bargraph) for my Digital VFO (rapidy becoming a 40m receiver) project.
I am trying to configure the A/D as follows:
ADCON0 = %11000001 'set A/D conversion clock to internal source
ADCON1 = %01000000 'set AN0 as analog input
Hopefully that reads
ADCON0 - Internal Clock, ANO, Switch the A/D module on
ADCON1 - Left Justified (no idea why I need this just guessed), Internal Clock, All ports analog
Is there something else I need as it doesn't seem to work in simulation :-(
Cheers - Paul
I am trying to configure the A/D as follows:
ADCON0 = %11000001 'set A/D conversion clock to internal source
ADCON1 = %01000000 'set AN0 as analog input
Hopefully that reads
ADCON0 - Internal Clock, ANO, Switch the A/D module on
ADCON1 - Left Justified (no idea why I need this just guessed), Internal Clock, All ports analog
Is there something else I need as it doesn't seem to work in simulation :-(
Cheers - Paul