I have a touble with s32k144 about its adc function.when I using its adc function.if the problem was happended,the adc Value I inquired was half，but the adc supply voltage to adc input pin was 3.3V，it is same as the adc reference voltage.Normally,it could not be half of the right value. In additon, during the problem, other ad supply voltage could retrun a right value except 3.3V.
If anyone else has this problem or has some advices,please let me know. thank you very much for your help.
I tested the ADC function with 3.3V supply voltage and I did not notice any error.
Do you use evaluation board S32K144EVB?
Could you share your code?
I wasn‘t use evaluation board ,I use the board on my project;
In addition,this problem isn't occurted every time.
here are some codes.
static t_ADC_Resolution_Table ADC0_ResolutionTable=
unsigned short bsp_ADC0_GetChanVal(unsigned char chan)
unsigned short tmpVal=0;
unsigned char i=0;
adConv0_ChnConfig0.channel = chan;
/* Configure ADC channel and software trigger a conversion */
ADC_DRV_ConfigChan(INST_ADCONV0, 0, &adConv0_ChnConfig0);
/* Wait for the conversion to be done */
/* Store the channel result into a local variable */
ADC_DRV_GetChanResult(INST_ADCONV0, 0, &tmpVal);
for(i=0; i<ARR_SIZE(ADC0_ResolutionTable); i++)
Thank you for your information.
In that case, I recommend you look at the document AN12217 - S32K1xx ADC guidelines, spec and configuration: https://www.nxp.com/docs/en/application-note/AN12217.pdf
There is a chapter 2. ADC concepts, error sources and specification. Also, check if is your analog input signal source resistance within ADC specification.
I hope it helps you.