imx rt 1064 nmi power failure detection interrupt

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

imx rt 1064 nmi power failure detection interrupt

3,586 次查看
vasudhevan
Contributor V

Hi,

    We want to detect power failure using NMI interrupt.

    But in sdk there is no nmi drivers available.

    Whenever power failure is happens callback function should be trigger.

    How to use nmi pin as interrupt ?

 

Thanks & Regards,

       Vasu 

0 项奖励
回复
9 回复数

3,583 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thank you for your interest in NXP Semiconductor products and for the opportunity to serve you.
1) How to use nmi pin as interrupt ?
-- Firstly, configure the Wake-up pin as the NMI pin, then enable the NMI interrupt. After that, the pin detects a low voltage input which will trigger the NMI interrupt.

jeremyzhou_0-1605854890768.png

 


Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 项奖励
回复

3,580 次查看
vasudhevan
Contributor V

Hi @jeremyzhou ,

          Thanks for your reply.

          Using config tool we can configure nmi interrupt pin but which driver we have to use to initialize the nmi driver ?

          We have to use same gpio driver ?

Thanks & Regards,

        Vasu

0 项奖励
回复

3,574 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
Actually, I'm a bit confused with your questions, can explain them again?
Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

 

0 项奖励
回复

3,520 次查看
vasudhevan
Contributor V

Hi @jeremyzhou ,

Any specific driver required to use for nmi pin?

Regarding configuring wake up pin as nmi pin, we can do it in config window right?

0 项奖励
回复

3,497 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Thanks for your reply.
1) Any specific driver required to use for nmi pin?
-- No
2) Regarding configuring wake up pin as nmi pin, we can do it in config window right?
-- Yes.

Have a great day,
TIC

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

3,490 次查看
vasudhevan
Contributor V

Hi @jeremyzhou ,

          Thanks for your reply.

Will check and get back to you if we have any doubt.

We are running another thread regarding MQTT TLS issue, can you please check and revert back to us. 

0 项奖励
回复

3,427 次查看
vasudhevan
Contributor V

Hi @jeremyzhou ,

We have modified the pin configuration. Pin triggered when we set as GPIO and printing the message.

When we set as nmi, its not triggering any thing. Attached .c file for you reference.

 

0 项奖励
回复

3,390 次查看
jeremyzhou
NXP Employee
NXP Employee

Hi,
Sorry for the reply late.
After checking, the NMI is triggered by a high level.
Have a great day,
TIC

 

-------------------------------------------------------------------------------
Note:
- If this post answers your question, please click the "Mark Correct" button. Thank you!

 

- We are following threads for 7 weeks after the last post, later replies are ignored
Please open a new thread and refer to the closed one, if you have a related question at a later point in time.
-------------------------------------------------------------------------------

0 项奖励
回复

2,836 次查看
caleb
Contributor III

Jeremy wrote

Sorry for the reply late.
After checking, the NMI is triggered by a high level.
Have a great day,
TIC

So... does this mean there is no power failure detection circuit?  How do you do power failure detection?  Is there a solution?

 

Thanks!

0 项奖励
回复