Hi,
I am working on a custom board using the NXP S32k312(100-pin). I attempted to read the internal VDD_HV_A Voltage using the ADC0 Channel 50 by configuring the ANAMUX (Analog Multiplexer). However, I am reading "0 (Zero)" on the ADC.
I am using ADC0 to measure other external input channels on my hardware, and they are working fine.
I have referred to the reference manual and configured the DCMRWF1 register as per the reference manual :
1) Enabled SUPPLY_MON_EN
2) Configured SUPPLY_MON_SEL as 0 (for VDD_HV_A)
3) Enabled VSS_LV_ANMUX_EN
The pic below shows the snippet of code that I use to enable supply voltages. I am doing this after enabling ADC0 conversion.
Please suggest what other changes are required to make this work. Any inputs will be of help to me.
Thanks in advance.