CE102 - ADC Conversion in Sleep mode
n this example, ADC is set up to convert AIN5 using CH0 S/H and ADC is operating using its internal RC osc.
About this Code Example
In this example, ADC is set up to convert AIN5 using CH0 S/H and ADC is operating using its internal RC osc.
Start of conversion is issued in the background loop and device enters sleep mode immediately after that.
When the ADC conversion is completed in sleep mode, it wakes up the device and enters ADC ISR.
ADC CH0 is set-up to covert AIN5 in 10-bit mode. ADC is configured to next sample data immediately after the conversion.
But the start of conversion is issued manually in the background loop.
Device enters the ADC ISR after waking up from sleep mode. ADC result is read in the ISR and PORTA (RA6) pin is toggled.
- Jun 15, 2012
First Release to ECS