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

PIC16F83-10B/SS View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC16F83-10B/SS
Microchip
Microchip Technology 
PIC16F83-10B/SS Datasheet PDF : 124 Pages
First Prev 61 62 63 64 65 66 67 68 69 70 Next Last
PIC16F8X
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-Opera Write to W,
literal 'k' tion Pop from
the Stack
2nd Cycle
No-Opera No-Opera No-Operat
No-Operat tion
tion
ion
ion
Example
CALL TABLE ;W contains table
;offset value
;W now has table value
TABLE ADDWF PC ;W = offset
RETLW k1 ;Begin table
RETLW k2 ;
RETLW kn ; 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-Opera No-Opera Pop from
tion
tion the Stack
2nd Cycle
No-Opera No-Opera No-Opera
No-Operat tion
tion
tion
ion
Example
RETURN
After Interrupt
PC = TOS
DS30430C-page 64
© 1998 Microchip Technology Inc.

Share Link: 

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