PIC12F609-H/MD MICROCHIP [Microchip Technology], PIC12F609-H/MD Datasheet - Page 135

no-image

PIC12F609-H/MD

Manufacturer Part Number
PIC12F609-H/MD
Description
8-Pin, Flash-Based 8-Bit CMOS Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
Description:
Words:
Cycles:
Example:
 2010 Microchip Technology Inc.
Return from Interrupt
[ label ]
None
TOS  PC,
1  GIE
None
Return from Interrupt. Stack is
POPed and Top-of-Stack (TOS)
is loaded in the PC. Interrupts are
enabled by setting Global
Interrupt Enable bit, GIE (INT-
CON<7>). This is a two-cycle
instruction.
1
2
After Interrupt
RETFIE
PC =
GIE =
RETFIE
PIC12F609/615/617/12HV609/615
TOS
1
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Description:
Words:
Cycles:
Example:
TABLE
DONE
RETURN
Syntax:
Operands:
Operation:
Status Affected:
Description:
Return from Subroutine
[ label ]
None
TOS  PC
None
Return from subroutine. The stack
is POPed and the top of the stack
(TOS) is loaded into the program
counter. This is a two-cycle
instruction.
Return with literal in W
[ label ]
0  k  255
k  (W);
TOS  PC
None
The W register is loaded with the
eight-bit literal ‘k’. The program
counter is loaded from the top of
the stack (the return address).
This is a two-cycle instruction.
1
2
Before Instruction
After Instruction
CALL TABLE;W contains
GOTO DONE
ADDWF PC
RETLW k1
RETLW k2
RETLW kn
W
W
RETURN
RETLW k
=
=
;value
;table offset
;
;W = offset
;Begin table
;End of table
DS41302D-page 135
0x07
value of k8

Related parts for PIC12F609-H/MD