SAM47 INSTRUCTION SETKS57C2308/P2308/C2316/P2316

EI — Enable Interrupts

EI

 

 

 

 

 

 

 

 

 

Operation:

Operand

Operation Summary

Bytes

Cycles

 

 

 

 

 

 

Enable all interrupts

2

2

 

 

 

 

 

Description: Bit 3 of the interrupt priority register IPR (IME) is set to logic one. This allows all interrupts to be serviced when they occur, assuming they are enabled. If an interrupt's status latch was previously enabled by an interrupt, this interrupt can also be serviced.

Operand

 

 

 

Binary Code

 

 

 

Operation Notation

 

 

 

 

 

 

 

 

 

 

 

 

1

1

1

 

1

1

 

1

1

1

IM1

 

 

 

 

 

 

 

 

 

 

 

 

 

1

0

1

 

1

0

 

0

1

0

 

 

 

 

 

 

 

 

 

 

 

 

 

Example: If the IME bit (bit 3 of the IPR) is logic zero (e.g., all instructions are disabled), the instruction

EI

sets the IME bit to logic one, enabling all interrupts.

5-52

Page 126
Image 126
Samsung KS57C2308 manual EI Enable Interrupts