chi239
Newbie level 6
- Joined
- Sep 13, 2010
- Messages
- 11
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Activity points
- 1,388
I am a beginner. I am developing a card around the PIC16F877A (4MHz). I want to use the ADC (single-channel) with AN0 as the input. All other PortA pins are to be used for Digital I/O. I am having trouble in configuring the ADC. I am using ADCON0=0x85, ADCON1= 0x8E and TRISA=0x01, but this does not seem to work. I am using the MikroC Compiler. Can anyone help me, please?