S32K322 ADC reading issue

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

S32K322 ADC reading issue

133 Views
YL005
Contributor III

Hi,

I have two board with different analog input circuit. The first one can get the ADC value correctly, but the second one cannot and always get 4095 (12 bit). The software used for testing is the same.

The first analog input circuit is designed with passive components, and the second one is designed with an amplifier.

The analog input circuit that cannot successfully read the value is as follows.

Should the ADC or PORT module be configured differently between the two different designs?

YL005_0-1714644256706.png

S32K3

 

0 Kudos
3 Replies

112 Views
YL005
Contributor III

Hi,

I made some attempts, and it seemed that the software configuration should be fine, so I did Adc_SelftTest and found that there were differences in the results of the self test. What are the possible causes of the two errors ERR_C and ERR_S0?

YL005_0-1714699526459.png

 

0 Kudos

106 Views
YL005
Contributor III

Hi,

I found that the ADC problem on the board was caused by not providing VREFH correctly.

And the wrong voltage caused the self test error.

When I provide the correct voltage to VREFH, I get right ADC values.

0 Kudos

89 Views
_Leo_
NXP TechSupport
NXP TechSupport

I am glad that you found the root cause of your issue. Any other questions feel free to continue using our technical support service.

0 Kudos