DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC16LCR64-10E/SS View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16LCR64-10E/SS
Microchip
Microchip Technology 
PIC16LCR64-10E/SS Datasheet PDF : 336 Pages
First Prev 151 152 153 154 155 156 157 158 159 160 Next Last
PIC16C6X
RETLW
Return with Literal in W
Syntax:
[ label ] RETLW k
Operands:
0 k 255
Operation:
k (W);
TOS PC
Status Affected: None
Encoding:
11 01xx kkkk kkkk
Description:
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.
Words:
1
Cycles:
2
Q Cycle Activity:
Q1
Q2
Q3
Q4
1st Cycle
Decode
Read
No- Write to W,
literal 'k' Operation Pop from
the Stack
2nd Cycle No-
No-
No-
No-
Operation Operation Operation Operation
Example
CALL TABLE
TABLE ADDWF PC
RETLW k1
RETLW k2
RETLW kn
;W contains table
;offset value
;W now has table value
;W = offset
;Begin table
;
; End of table
Before Instruction
W = 0x07
After Instruction
W = value of k8
RETURN
Return from Subroutine
Syntax:
[ label ] RETURN
Operands:
None
Operation:
TOS PC
Status Affected: None
Encoding:
00 0000 0000 1000
Description:
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.
Words:
1
Cycles:
2
Q Cycle Activity:
Q1
Q2
Q3
Q4
1st Cycle Decode No-
No- Pop from
Operation Operation the Stack
2nd Cycle No-
No-
No-
No-
Operation Operation Operation Operation
Example
RETURN
After Interrupt
PC = TOS
DS30234D-page 154
© 1997 Microchip Technology Inc.

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]