Hi community,
I'm using an MCXA156 and continuously failing to get plausible values when reading channel 27 of ADC0, which is the bandgap. All other channels (including temperature measurement on channel 26) work fine.
I tried different configurations of the ADC channel command like different sample time, different numbers of conversion, different resolution modes, but failing to get a plausible value of 1.0V: value/adc_resolution*VDDA-voltage, e.g. value=380, resolution=4096, VDDA-voltage=3.3V -> 0.3V.
Strangely my values differ depending on the configured sample time, (e.g. 5806 @65536 or 14800 @32768 resolution which is opbviously wrong). Of course I read in multiple values which seem to be constant (+noise, maybe more than expected) but nevertheless not showing the expected value of 1.0V. I even went back to the basics and tried it on my demo board FRDM_MCXA156 using the SDK code example "frdmmcxa156_lpadc_interrupt", which also fails to show me the correct bandgap values.
Is there anything special about reading the bandgap from ADC0 like it is for the temperature channel?
Maybe I have to route the bandgap signal to the ADC manually? Couldn't anything like this in the manual/datasheet.
Any other ideas how to solve it?
Regards
Weber