How do we know what is the binary value/representation of the analog input voltage?
We can use the triangle method to calculate/find the binary representation of an analog input voltage. For example, lets calculate/find the binary value representation on the analog input voltage of 3.65 volt: The analog input voltage of 3.65v will be represented by decimal number 748 or by binary number 1011101100.Using similar way we can find a binary representation for any desired level of the analog input voltage. The A/D module has four 8 bit registers. These registers are: • ADCON0 – A/D Control Register 0; determines the behavior of the A/D • ADCON1 – A/D Control Register 1; determines the configuration of the PORTA and PORTE and how the result of conversion of A/D will be store • ADRESH – A/D Result High Register • ADRESL – A/D Result Low Register The size of this register is one byte (8 bits). Each bit has an important role in the definition of the component.