i.MX RT1176 ADC

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

i.MX RT1176 ADC

1,360件の閲覧回数
SpeedyGonzalesss
Contributor III

Hello,

I am using with i.MX1176 and MCUXpresso IDE. 1176 ADC is 12bit. The IRQ function and LPADC settings are as follows:

SpeedyGonzalesss_0-1715331351101.pngSpeedyGonzalesss_1-1715331376235.png

When i read convValue from IRQ function, it is greater than 12-bit. I read values up to 15-bit. Is it possible?

Thanks,

 

タグ(3)
0 件の賞賛
返信
3 返答(返信)

205件の閲覧回数
RAVIRAJ123
Contributor I

just mask your value with 0xfff in your printf where you are printing raw adc value.
uint16_t adcValue = mLpadcResultConfigStruct.convValue & 0x0FFF;

0 件の賞賛
返信

1,288件の閲覧回数
Gavin_Jia
NXP TechSupport
NXP TechSupport

Hi @SpeedyGonzalesss ,

Thanks for your interest in NXP MIMXRT series!

This is not possible, the maximum measurement range of a 12-bit ADC is 0~4095. If your reading is out of range, there should be a problem with the intermediate processing. Please note if your sampleScale is configured? It is recommended to experiment with known voltage measurement points first.

Best regards,
Gavin

0 件の賞賛
返信

1,303件の閲覧回数
SpeedyGonzalesss
Contributor III

Is there any answer for this question?

0 件の賞賛
返信