Could anyone help me, Im having a problem making the code using C to convert analog to digital and display them on an LCD as HEX using PIC16f877. I use the analog input RA0, RA1 and RA2, the ouputs are RB0 to RB7and RD7 to RD6 equal to 10bits. I want to display the result of this in HEX value to the LCD. can anyone give me a code for this? If you want the schematic diagram of the circuit I can email it. Thanks