MC1322x Software Driver (Adc_ReadFifoData)

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

MC1322x Software Driver (Adc_ReadFifoData)

1,256 Views
federlc
Contributor I

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.

0 Kudos
2 Replies

449 Views
sverige
Contributor I

 

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.

0 Kudos

449 Views
federlc
Contributor I

Hello sverige,

I patched up the problem using Adc_FifoData() and getting the ADC value and channel number from de return value.

 

0 Kudos