Wfi Wait For Interrupt - Samsung S3C80A5B User Manual

8-bit cmos
Table of Contents

Advertisement

INSTRUCTION SET
WFI
— Wait For Interrupt
WFI
Operation:
The CPU is effectively halted until an interrupt occurs, except that DMA transfers can still take
place during this wait state. The WFI status can be released by an internal interrupt, including a fast
interrupt .
Flags:
No flags are affected.
Format:
opc
Example:
The following sample program structure shows the sequence of operations that follow a "WFI"
statement:
6-86
Main program
.
.
.
EI
WFI
(Next instruction)
.
.
.
Interrupt occurs
Interrupt service routine
.
.
.
Clear interrupt flag
IRET
Service routine completed
Bytes
Cycles
Opcode
1
4n
(
n = 1, 2, 3, ... )
(Enable global interrupt)
(Wait for interrupt)
S3C80A5B
(Hex)
3F

Advertisement

Table of Contents
loading

Table of Contents