PIC16C926 Microchip Technology Inc., PIC16C926 Datasheet - Page 128

no-image

PIC16C926

Manufacturer Part Number
PIC16C926
Description
64/68-pin Cmos Microcontrollers With Lcd Driver
Manufacturer
Microchip Technology Inc.
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16C926-I/L
Manufacturer:
Microchip Technology
Quantity:
135
Part Number:
PIC16C926-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C926-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C926/CL
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC16C926T-I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC16C926T-I/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
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