MC1322x Software Driver (Adc_ReadFifoData)

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

MC1322x Software Driver (Adc_ReadFifoData)

2,044件の閲覧回数
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 返答(返信)

1,237件の閲覧回数
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 件の賞賛
返信

1,237件の閲覧回数
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 件の賞賛
返信