Hello,
1. What is a non maskable interrupt (NMI) ?
non-maskable interrupt (NMI) is a hardware interrupt that standard interrupt-masking techniques in the system cannot ignore. It typically occurs to signal attention for non-recoverable hardware errors. (Some NMIs may be masked, but only by using proprietary methods specific to the particular NMI.)
2. What is critical interrupt ?
Book E–defined. Critical input, watchdog timer, and debug interrupts. these interrupts can be taken during a noncritical interrupt or during regular program flow. Book E defines the critical input, watchdog timer, debug, and machine check interrupts as critical interrupts. The EIS defines additional resources for machine check and debug interrupts.
3.What causes SWT_B to throw a non maskable interrupt (NMI) or critical interrupt ?
If your SWT_B [SWT_CR] register ITR bit is set to 1 - than on first timeout you will get interrupt (critical)
Generate an interrupt on an initial time-out; generate a reset request on a second consecutive time-out.
Refer to core reference manual.
4. In the reference manual it says we can program SIU_DIRER to send either of the above interrupts from SWT_B.
What might cause these exceptions to come?
Connected external signals (with correct levels) along with enabled DIRER in micro.
The SIU_DIRER enables external signals on selected pins to generate DMA or interrupt requests, and the SWT modules to generate interrupt requests.
5. What can be done to avoid these exceptions.
Hmm, do not enable this feature if you wont have exceptions from those sources.
regards,
Peter