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
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.
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.
-------------------------------------------------------------------------------
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
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.
-------------------------------------------------------------------------------
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?
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.
-------------------------------------------------------------------------------
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.
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.
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.
-------------------------------------------------------------------------------
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!