30.11.8 Interrupt Flag Status and Clear

Important: On PIC32CMSG devices where the EIC is configured as Mix-Secure, read and write accesses are allowed only if the external interrupt x (EXTINTx) is set as Non-Secure in the NONSEC register (NONSEC.EXTINTx bit).
Note:
  1. Interrupt flags must be cleared and then read back to confirm the clear before exiting the ISR to avoid double interrupts.
Table 30-9. Register Bit Attribute Legend
SymbolDescriptionSymbolDescriptionSymbolDescription
RReadable bitHCCleared by Hardware(Grey cell)Unimplemented
WWritable bitHSSet by HardwareXBit is unknown at Reset
KWrite to clearSSoftware settable bit
Name: INTFLAG
Offset: 0x14
Reset: 0x00000000
Property: RW

Bit 3130292827262524 
 EXTINT[31:24] 
Access RWRWRWRWRWRWRWRW 
Reset 00000000 
Bit 2322212019181716 
 EXTINT[23:16] 
Access RWRWRWRWRWRWRWRW 
Reset 00000000 
Bit 15141312111098 
 EXTINT[15:8] 
Access RWRWRWRWRWRWRWRW 
Reset 00000000 
Bit 76543210 
 EXTINT[7:0] 
Access RWRWRWRWRWRWRWRW 
Reset 00000000 

Bit 31 – NSCHK Non-secure Check Interrupt

This flag is set when write to either NONSEC and NSCHK register and if the related bit of NSCHK is enabled and the related bit of NONSEC is zero.

Writing a '0' to this bit has no effect.

Writing a '1' to this bit clears the flag.

Note: For PIC32CMGC devices, this bit is reserved.
ValueDescription
0The NSCHK interrupt flag is not set.
1The NSCHK interrupt flag is set.

Bits 31:0 – EXTINT[31:0] External Interrupt

The flag bit x is cleared by writing a '1' to it.

This flag is set when the EIC_EXTINTx pin matches the external interrupt sense configuration and will generate an interrupt request if INTENCLR.EXTINT[x] or INTENSET.EXTINT[x] is '1'.

Writing a '0' to this bit has no effect.

Writing a '1' to this bit clears the External Interrupt x flag.