4.7.2 ADC Window Comparison
The functions used to execute ADC operation and comparison may be found in the
adc0.c file.
ADC0_Enable()- Enable the ADC module.ADC0_StartConversion(channel)- Start the ADC conversion.ADC0_IsConversionDone()- In thewhile()loop, check for when a conversion is complete.ADC0_GetWindowResult()- If conversion result is below threshold the value is true (turn on LED); if not, the value is false (turn off LED).
