ecaits
Member level 4
- Joined
- Jan 16, 2014
- Messages
- 76
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Activity points
- 579
In PIC16F877, I am using RA0 & RA1 as analog input pin (0-5V). First I will read RA0 pin and display value of ADC on LCD. After delay time, I will read RA1 pin and display value of RA1 pin on LCD. Once again I will read RA0 pin and so on.... I am using common ADC function for A to D conversion.
Which parameter (in ADCON0 and ADCON1) I have to change during switching between RA0 and RA1 pin.
I am getting only pin RA0's value, in case of RA1, ADC not reading the pin and giving the fake value.
I am using hi-tech C compiler.
Plz suggest how can I solve this.
Which parameter (in ADCON0 and ADCON1) I have to change during switching between RA0 and RA1 pin.
I am getting only pin RA0's value, in case of RA1, ADC not reading the pin and giving the fake value.
I am using hi-tech C compiler.
Plz suggest how can I solve this.