I try to get data from ADC, but I can't get data corresponding to Vbat, Apparently Adc_ReadFifoData doesn´t load gAdcBatt_c in the struct correctly, appears as gAdcChan0_c. I'm working with IAR Workbench.
Can anyone tell me if there are any trouble with this function related to battery ADC channel?
Thanks in advance.
I do have the same problem.
I finally managed to get the desired Battery Channel by only sampling the battery channel (all others off) and looking for channel 0. I do not know another solution. Please tell me if you found one. I would also guess this is a bug in ADC driver.
Hello sverige,
I patched up the problem using Adc_FifoData() and getting the ADC value and channel number from de return value.