You copied the Doc URL to your clipboard.

3.7.2. CPS

Change Processor State.

Syntax

CPSID i
CPSIE i

Operation

CPS changes the PRIMASK special register values. CPSID causes interrupts to be disabled by setting PRIMASK. CPSIE cause interrupts to be enabled by clearing PRIMASK. See Exception mask register for more information about these registers.

Restrictions

If the current mode of execution is not privileged, then this instruction behaves as a NOP and does not change the current state of PRIMASK.

Condition flags

This instruction does not change the condition flags.

Examples

    CPSID i ; Disable all interrupts except NMI (set PRIMASK.PM)
    CPSIE i ; Enable interrupts (clear PRIMASK.PM)
Was this page helpful? Yes No