imx rt 1064 nmi power failure detection interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx rt 1064 nmi power failure detection interrupt

3,866 Views
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 Kudos
Reply
9 Replies

3,863 Views
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 Kudos
Reply

3,860 Views
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 Kudos
Reply

3,854 Views
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 Kudos
Reply

3,800 Views
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 Kudos
Reply

3,777 Views
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 Kudos
Reply

3,770 Views
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 Kudos
Reply

3,707 Views
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 Kudos
Reply

3,670 Views
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 Kudos
Reply

3,116 Views
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 Kudos
Reply