Find the input voltage in KL25Z

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Find the input voltage in KL25Z

1,379件の閲覧回数
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 返答(返信)

1,164件の閲覧回数
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 件の賞賛
返信

1,164件の閲覧回数
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 件の賞賛
返信

1,164件の閲覧回数
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