ADC is a 12bit analog-to-digital converter. It has up to 9 multiplexed channels allowing to measure signals from 8 externals and 1 internal source. ADC of various channels can be performed in single mode. The result of the ADC is stored in 12 bit register.
The below Figure shows the flowchart of ADC operation with non-interrupt.
ADC can be used as below:
The below Figure shows the flowchart of ADC operation with interrupt. Operation is almost the same as the non-interrupt mode except polling INT bit to know when enabling interrupt mask bit and conversion is completed.