Maxim Integrated MAX31782 User Manual

Page 204

Advertising
background image





MaximIntegrated 20-21

MAX31782 User’s Guide

Revision 0; 8/11

RETI

ReturnfromInterrupt

Description:

RETI pops a single word from the stack (@SP) into the Instruction Pointer (IP) and decrements the
stack pointer (SP) . Additionally, RETI returns the interrupt logic to a state in which it can acknowl-
edge additional interrupts .

StatusFlags:

None

Operation:

IP

← @SP--

INS

← 0

Encoding:

15

0

1000

1100

1000

1101

Example(s):

See RETI

RETIC/RETINC,RETIZ/RETINZ,RETIS

ConditionalReturnfromInterruptonStatusFlag

Description:

Performs conditional return (RETI) based upon the state of a specific processor status flag . RETI C
returns if the Carry flag is set while RETI NC returns if the Carry flag is clear . RETI Z returns if the
Zero flag is set while RETI NZ returns if the Zero flag is clear . RETI S returns if the Sign flag is set .
See RETI for additional information on the return operation .

StatusFlags:

None

RETIC
Operation:

C=1: IP

← @SP--

INS

← 0

C=0: IP

← IP + 1

Encoding:

15

0

1010

1100

1000

1101

Example(s):

RETI C

; C=1, return from interrupt (RETI) is performed

RETINC
Operation:

C=0: IP

← @SP--

INS

← 0

C=1: IP

← IP +1

Encoding:

15

0

1110

1100

1000

1101

Example(s):

RETI NC

; C=1, return from interrupt (RETI) does not occur

Advertising