27.8.2 Non-Maskable Interrupt Control

Name: NMICTRL
Offset: 0x01
Reset: 0x00
Property: PAC Write-Protection

Bit 76543210 
    NMIASYNCHNMIFILTENNMISENSE[2:0] 
Access R/WR/WR/WR/WR/W 
Reset 00000 

Bit 4 – NMIASYNCH Non-Maskable Interrupt Asynchronous Edge Detection Mode

The NMI edge detection can be operated synchronously or asynchronously to the EIC clock.

In Synchronous Edge Detection mode, the NMI pin is sampled using the EIC clock as defined by the bit CTRLA.CKSEL. The Non-Maskable Interrupt flag (NMIFLAG) is set when the pin and the pin sampler have a different value. In this mode, the EIC clock is required. The Synchronous Edge Detection mode can be used in all Sleep modes except STANDBY.

In Asynchronous Edge Detection mode, the NMI pins directly drive the set of the Non-Maskable Interrupt flag (NMIFLAG). In this mode, the EIC clock is not requested. The Asynchronous Edge Detection Mode can be used in all sleep modes.

ValueDescription
0The NMI edge detection is synchronously operated.
1The NMI edge detection is asynchronously operated.

Bit 3 – NMIFILTEN Non-Maskable Interrupt Filter Enable

ValueDescription
0NMI filter is disabled.
1NMI filter is enabled.

Bits 2:0 – NMISENSE[2:0] Non-Maskable Interrupt Sense Configuration

These bits define which edge or level the NMI triggers on.

Note: The NMI cannot be triggered based on level, but it is always based on edge.
ValueNameDescription
0x0NONENo detection
0x1RISERising-edge detection
0x2FALLFalling-edge detection
0x3BOTHBoth-edge detection
0x4HIGHHigh-level detection
0x5LOWLow-level detection
0x6 - 0x7Reserved