EXAMPLE_CODE
definition to
WINDOW_COMPARATOR_MODE
in main.c
as:#define EXAMPLE_CODE WINDOW_COMPARATOR_MODE
The ADC is set in Free-Running mode. LED0 is turned ON when the
function ‘ADC_0_get_window_result()
’ returns true, meaning
the ADC result is under the window threshold value and the Interrupt Flag
bit of the Windows Compare mode is set. Otherwise, LED0 is kept OFF. The
calculated voltage is then printed through the USART to the terminal when a
conversion is completed.