Can the NMI be used to generate an interrupt while running?

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

Can the NMI be used to generate an interrupt while running?

488 Views
jmaranhao1
Contributor I

I want to be able to generate an NMI (Non-Maskable Interrupt) while the processor is running (KL17).  The design is to connect it to an external low power detection IC to trigger when the external power is dropping below a threshold.  We need this interrupt to save some state information to non-volatile memory before the power drops off completely. 

Most of the documentation on the Kinetis systems and the KL17 specifically refers to the NMI as being triggered from the system reset.  Is this the only way this interrupt will be triggered or can it be used while the processor is running?

Thanks!

Tags (2)
0 Kudos
1 Reply

340 Views
miduo
NXP Employee
NXP Employee

Hi,

Please be note that the NMI interrupt occurs when the pin is connected or forced to a low level input. The interrupt source can be either an interrupt or wake up source, not just the reset.

0 Kudos