10.10.1 DISI Inhibition Of Interrupts

The DISICTL instruction in dsPIC33A devices provides a means to disable interrupts around blocks of critical code. In addition, it allows the user to select an IPL threshold (IPLT) at which interrupts are disabled. The IPLT may be set to any value between IPL 0 (no interrupts disabled) and IPL 7 (all interrupts disabled). Interrupt requests at an IPL that is at or below the selected IPLT will be inhibited. These requests will remain pending until such time that the IPLT is lowered to a level less than the IPL of the pending interrupts. The IPLT may be defined using a 3-bit literal or register direct Wns source on the DISICTL instruction, and the updated threshold value is reflected in the DISIIPL register.