PIC18F458 Analog-to-Digital The PIC18F microcontroller includes: 10-bit A/D converter 5 to 15 channels of analog input The converted output binary data is held by two SFR called ADRESL and ADRESH Three control registers ADCON0, ADCON1, and ADCON2 PIC 18F458 have 8 analog channel AN0 to AN7. In 16bit ADRESL and ADRESH only 10 bits is used. We have option either upper 6bits or lower 6bits unused. We have option ising VCC as a refrence or external voltage source connected in Vref input.
PIC18F458 Analog-to-Digital (A/D)
A/D Control Register0 (ADCON0) Primary function of the ADCON0 register: Select a channel for input analog signal Start a conversion Indicate the end of the conversion Bit2 is set to start the conversion, and at the end of the conversion this bit is reset.
A/D Control Register0 (ADCON1)
A/D Control Register0 (ADCON1)
Example
Conversion Time
Step in pogramming the A/D using polling
Programming PIC18F ADC in Assembly
Interfacing of Temperature sensor
Interfacing of Temperature sensor
Interfacing of Temperature sensor