OR IFR,#16bit
6-261
OR IFR,#16bit Bitwise OR
SYNTAX OPTIONS OPCODE OBJMODE RPT CYC
OR IFR,#16bit 0111 0110 0010 0111
CCCC CCCC CCCC CCCC
X − 2
Operands IFR Interrupt flag register
#16bit 16-bit immediate constant value
Description Enable specific interrupts by performing a bitwise OR operation with the IFR
register and the 16-bit immediate value. The result of the OR operation is
stored in the IFR register.
IFR = IFR OR #16bit;
Note: Interrupt hardware has priority over CPU instruction operation in cases where the
interrupt flag is being simultaneously modified by the hardware and the instruction.
This instruction should not be used with interrupts 1−12 when the peripheral
interrupt expansion (PIE) block is enabled.
Flags and
Modes
None
Repeat This instruction is not repeatable. If this instruction follows the RPT in-
struction, it resets the repeat counter (RPTC) and executes only once.
Example
; Trigger INT1 and INT6 only. Do not modify state of other
; interrupt’s flags:
OR IFR,#0x0061 ; Trigger INT1 and INT6