SNVS Coin cell voltage read

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

SNVS Coin cell voltage read

1,664件の閲覧回数
kevi49
Contributor II

Hi NXP Team,

 

We are using the iMX6sX processor which have SNVS functionality enabled and everything is up and running,

But we have one requirement to read the coin cell voltage if it is low,

Is there any registers or method available to read the voltage or generate trigger so user may aware about to change the coin cell battery.

 

Thanks

0 件の賞賛
返信
2 返答(返信)

1,650件の閲覧回数
edwardtyrrell
Senior Contributor I

Hi @kevi49 

You could use an ADC input and put together a small program or script that polls the ADC line. After a bit of conversion to get what the ADC is reading in volts or millivolts then you can set a trigger point to alert the user etc. Depending what you hardware is i.e if you're on a dev board you may have some preconfigured ADC inputs, if not see if you can find a suitable spare pin on your board. Do the normal device tree, and kernel configs and then a simple 'cat /sys/bus/iio/devices/iio:device0/in_voltage1_raw' (or similar) will show it's working. Connect it to your battery line somehow with suitable resistive dividers etc and you might be in business!

Hope it helps.  

 

0 件の賞賛
返信

1,652件の閲覧回数
Harvey021
NXP TechSupport
NXP TechSupport

Hi @kevi49 

As far as I know that you can use a voltmeter to measure.

Best regards

Harvey

0 件の賞賛
返信