5 Macro Configurations

Below are the macro configurations in the main.c file.

  • Maximum input voltage
    #define MAX_VOL 2.5

    Maximum input voltage is configured to 2.5 to calculate the voltage for measured ADC reading.

    Note: ADC reference has been configured to 2.5V.
  • ADC input channel
    #define ADC_CHANNEL  5

    The ADC input signal has been connected to channel 5: AIN5 (pin PA5).