About ONOFF pin

cancel
Showing results for 
Search instead for 
Did you mean: 

About ONOFF pin

213 Views
goto11
Contributor III

hello,Community

Can the status of the button connected to the ONOFF pin be read with a register?

best regards

Goto

Labels (1)
0 Kudos
4 Replies

45 Views
goto11
Contributor III

hello,Community

 

Sorry, the information is missing
The target device is i.MX7d.
Can the status of the button connected to the ONOFF pin be read with a register?

 

best regards

Goto

0 Kudos

45 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Goto, 

My apologies. Allow me to investigate what would be the register that allows you to read the status of the ONOFF button on the i.MX7. I will let you know when I have more information.


Regards,

0 Kudos

45 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Goto,

My apologies for the delay.

If you want to check that the ONOFF button is pressed or not you can read BTN bit of SNVS.HPSR register. and if you want count of button pressed then you can check it through $cat /proc/interrupts

If you need more details on this register and the SNVS module please consult the i.MX7D Security Reference Manual, which is distributed under an NDA.

SNVS.png

BTN.png

6_BTN.png

I hope this helps!
Regards,

0 Kudos

45 Views
gusarambula
NXP TechSupport
NXP TechSupport

Hello Goto,

Are you using the i.MX6? If that’s the case the following thread may help. If not, please let me know which processor you are using.

https://community.nxp.com/message/333554?commentID=333554#comment-333554 


Regards.

0 Kudos