鈫?/div>
PC
None
11
01xx
kkkk
kkkk
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.
RETURN
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Return from Subroutine
[
label
]
None
TOS
鈫?/div>
PC
None
00
0000
0000
1000
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
Words:
Cycles:
Q Cycle Activity:
1st Cycle
2nd Cycle
1
2
Q1
Decode
Words:
Cycles:
Q Cycle Activity:
1st Cycle
2nd Cycle
1
2
Q1
Decode
Q2
Q3
Q4
Q2
Read
literal 'k'
Q3
Q4
No-Opera No-Opera Pop from
tion
tion
the Stack
No-Opera No-Opera No-Opera
tion
tion
tion
No-Opera Write to W,
tion
Pop from
the Stack
No-Operat
ion
No-Operat
ion
No-Opera No-Opera No-Operat
tion
tion
ion
Example
RETURN
After Interrupt
Example
CALL TABLE
鈥?/div>
鈥?/div>
鈥?/div>
TABLE ADDWF PC
RETLW k1
RETLW k2
;W contains table
;offset value
;W now has table value
PC =
TOS
;W = offset
;Begin table
;
鈥?/div>
鈥?/div>
鈥?/div>
RETLW kn
; End of table
Before Instruction
W
W
=
=
0x07
value of k8
After Instruction
DS30430C-page 64
漏
1998 Microchip Technology Inc.
prev
next
PIC16CR83 PDF文件相关型号
PIC16CR84
PIC16CR83相关型号PDF文件下载
-
型号
版本
描述
厂商
下载
-
英文版
8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
-
英文版
8-Pin, 8-Bit CMOS Microcontroller with EEPROM Data Memory
MICROCHIP ...
-
英文版
8-Pin, 8-Bit CMOS Microcontroller with A/D Converter and EEP...
MICROCHIP ...
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
EPROM Memory Programming Specification
MICROCHIP ...
-
英文版
8-Pin FLASH-Based 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
Microcontroller
-
英文版
Microcontroller
-
英文版
Microcontroller
ETC
-
英文版
EPROM-Based 8-Bit CMOS Microcontroller
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
-
英文版
8-Pin, 8-Bit CMOS Microcontrollers
MICROCHIP ...
-
英文版
ETC
-
英文版
EPROM Memory Programming Specification
-
英文版
EPROM Memory Programming Specification
MICROCHIP ...
-
英文版
28-Pin Programmable Mixed Signal Controller
-
英文版
EPROM Memory Programming Specification
-
英文版
Microcontroller
ETC
-
英文版
Microcontroller
ETC
-
英文版
EPROM/ROM-Based 8-Bit CMOS Microcontroller Series