About ONOFF pin

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

About ONOFF pin

2,551 次查看
goto11
Contributor III

hello,Community

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

best regards

Goto

标签 (1)
0 项奖励
回复
4 回复数

2,383 次查看
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 项奖励
回复

2,383 次查看
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 项奖励
回复

2,383 次查看
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 项奖励
回复

2,383 次查看
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 项奖励
回复