10.4 ADC Related Register
There are mainly 4 registers related to AD conversion, namely control register ADCON0 and ADCON1,
data register ADRESH and ADRESL.
AD control register ADCON0 (9DH)
A/D conversion clock selection bit.
Analog channel selection bit.
Fixed reference voltage(1.2V)
A/D conversion status bit.
A/D conversion is in progress. Set this bit to 1 to start A/D conversion. When A/D
conversion is completed, this bit is automatically cleared by hardware.
At least wait for 2 TAD times to start AD conversion again when GO/DONE
bit change from
1 to 0 or ADIF change from 0 to 1.
A/D conversion complete or not in progress.
Disable ADC, not consuming current.