MC1322x Software Driver (Adc_ReadFifoData)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC1322x Software Driver (Adc_ReadFifoData)

1,265 次查看
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 项奖励
2 回复数

458 次查看
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 项奖励

458 次查看
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 项奖励