PIC16C926-I/CL Microchip Technology, PIC16C926-I/CL Datasheet - Page 128

no-image

PIC16C926-I/CL

Manufacturer Part Number
PIC16C926-I/CL
Description
64/68-Pin CMOS Microcontrollers with LCD Driver
Manufacturer
Microchip Technology
Datasheet
PIC16C925/926
RETFIE
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
DS39544A-page 126
After Interrupt:
2nd Cycle
1st Cycle
PC =
GIE =
TOS
1
Return from Interrupt
[ label ]
None
TOS
1
None
Return from Interrupt. Stack is POPed
and Top-of-Stack (TOS) is loaded in
the PC. Interrupts are enabled by set-
ting Global Interrupt Enable bit, GIE
(INTCON<7>). This is a two-cycle
instruction.
1
2
RETFIE
Operation
Decode
Q1
00
No
GIE
PC,
RETFIE
Operation
Operation
0000
Q2
No
No
Operation
Set the
GIE bit
0000
Q3
No
Operation
Pop from
the Stack
1001
Preliminary
Q4
No
RETLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example
Before Instruction:
After Instruction:
2nd Cycle
1st Cycle
W
W
TABLE ADDWF PC
=
=
0x07
value of k8
Return with Literal in W
[ label ]
0
k
TOS
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
CALL TABLE ;W contains table
RETLW k1
RETLW k2
RETLW kn
Operation
Decode
Q1
11
k
No
(W);
2001 Microchip Technology Inc.
255
PC
RETLW k
Operation
literal ’k’
01xx
Read
Q2
;offset value
;W = offset
;Begin table
;
; End of table
No
;W now has table value
Operation
Operation
kkkk
Q3
No
No
Write to W,
Pop from
the Stack
Operation
kkkk
Q4
No

Related parts for PIC16C926-I/CL