S32K312 Power Supply ADC Reading via ANAMUX Configuring Not working

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

S32K312 Power Supply ADC Reading via ANAMUX Configuring Not working

160 次查看
varunbharti
Contributor III

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.

varunbharti_0-1756449331393.png

 

0 项奖励
回复
1 回复

131 次查看
PetrS
NXP TechSupport
NXP TechSupport

Hi,

try to keep VSS_LV_ANMUX_EN cleared.
To measure  VDD_HV_A_DIV (SUPPLY_MON_SEL as 0) have just VDD_HV_A_VLT_DVDR_EN and SUPPLY_MON_EN set, then measure ADC0 Channel 50 as you did.

BR, Petr

0 项奖励
回复