Find the input voltage in KL25Z

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

Find the input voltage in KL25Z

1,210 次查看
charanreddy
Contributor III

Hi,

For KL25Z we can find the status of low Voltage and Low Voltage Warning using PMC_LVCSC1 and PMC_LVDSC2 registers. But is there any register which can directly give the available input volatge...?

Regards,

Charan.

标签 (1)
3 回复数

995 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

Please check KL25 datasheet page 6 Table 6 about low voltage detection voltage range.

Wish it helps.

best regards,

Ma Hui

0 项奖励
回复

995 次查看
charanreddy
Contributor III

Hi Hui_Ma,

                Thanks for your replay. The table which you had mentioned in the data sheet can be used to set the predefined Low voltage detect and Low Voltage Warning thresholds. so that we can enable the interrupts or we can poll to check whether the particular thresholds are reached. But what i am looking for is when ever i need to check the input voltage, is there any register which gives me the voltage .

 

Regards,

Charan

0 项奖励
回复

995 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

I am not sure the input voltage will connect to KL25 which module. If connect to GPIO input pin, you can check the Port Data Input Register (GPIOx_PDIR) about input voltage is high or low.

If you want to get the exactly value of input voltage, the ADC module could help. The ADC module will compare the input voltage with VREFH and VREFL voltage to get the input voltage value.

Wish it helps.

best regards,

Ma Hui