imx rt 1064 nmi power failure detection interrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx rt 1064 nmi power failure detection interrupt

3,592件の閲覧回数
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,589件の閲覧回数
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,586件の閲覧回数
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,580件の閲覧回数
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,526件の閲覧回数
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,503件の閲覧回数
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,496件の閲覧回数
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,433件の閲覧回数
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,396件の閲覧回数
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,842件の閲覧回数
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 件の賞賛
返信