i.MX RT1176 ADC

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

i.MX RT1176 ADC

1,354 Views
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,

 

Tags (3)
0 Kudos
Reply
3 Replies

199 Views
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 Kudos
Reply

1,282 Views
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 Kudos
Reply

1,297 Views
SpeedyGonzalesss
Contributor III

Is there any answer for this question?

0 Kudos
Reply