Hi,
I just downloaded the version 2.20 of TIRTOS to try the ADC driver. I tried with the example, and everything compiled. However, the value read by the ADC is higher than the "real" value (from a multimeter).
The voltage is equal to 1.65V on the multimeter, and the ADC driver returns a tension of 2.1V (by using the function ADC_convertRawToMicroVolts).
Here is the configuration of the ADC:
{ .channel = ADC_INPUT_A0, .gpioPort = GPIO_PORT_P5, .gpioPin = GPIO_PIN5, .gpioMode = GPIO_TERTIARY_MODULE_FUNCTION, .refVoltage = REF_A_VREF2_5V, .resolution = ADC_14BIT }
Did I miss something on how to use the ADC driver?
Best regards