Hello again Gastón,
You were using the High Level Driver, if you use the Logical Level Driver (LLD) you will increase the performance. The LLD needs more configurations but requires less instructions to work. The image below shows how I configured the ADC_LLD.

It needs that you create a sample group before to start read:
LDD_ADC_TSample samplegroup[2] = {{ADC0_CHANNEL_12}, {ADC0_CHANNEL_13}};
AD1_CreateSampleGroup(AD1_DeviceData, samplegroup, 2);
Every time you start a measure you need to call these two functions:
AD1_StartSingleMeasurement(AD1_DeviceData);
AD1_Main(AD1_DeviceData);
And you can get the results by calling the function below:
AD1_GetMeasuredValues(AD1_DeviceData, value);
From the project that you attached before, the periodic function now looks like this:
void TU1_OnCounterRestart(LDD_TUserData *UserDataPtr)
{
LED_B_PutVal(LED_B_DeviceData, 1);
AD1_StartSingleMeasurement(AD1_DeviceData);
AD1_Main(AD1_DeviceData);
AD1_GetMeasuredValues(AD1_DeviceData, value);
LED_B_PutVal(LED_B_DeviceData, 0);
}
Best regards,
Earl.