ecaits
Member level 4
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.