ecaits
Member level 4
- Joined
- Jan 16, 2014
- Messages
- 76
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 6
- Activity points
- 579
Dear All Friends,
I am using pin RA.0 as analog input pin (0-5V) and display on LCD in PIC16F877 using Hi-Tech C compiler.
But as per my input voltage, I am not getting output. I have interface 4-bit LCD with Port D and control bit of LCD with Port A.
I am using Right Justified output in ADRES registers.
As per 0-5V input, I should get 0-1023 in ADRES register but it is not giving. LCD is working properly.
I have attached code for reference.
I am using pin RA.0 as analog input pin (0-5V) and display on LCD in PIC16F877 using Hi-Tech C compiler.
But as per my input voltage, I am not getting output. I have interface 4-bit LCD with Port D and control bit of LCD with Port A.
I am using Right Justified output in ADRES registers.
As per 0-5V input, I should get 0-1023 in ADRES register but it is not giving. LCD is working properly.
I have attached code for reference.