欢迎访问ic37.com |
会员登录 免费注册
发布采购

PIC18F8620-I/PT 参数 Datasheet PDF下载

PIC18F8620-I/PT图片预览
型号: PIC18F8620-I/PT
PDF下载: 下载PDF文件 查看货源
内容描述: 八十〇分之六十四引脚高性能1 Mbit的增强型闪存微控制器与A / D [64/80-Pin High Performance 1 Mbit Enhanced FLASH Microcontrollers with A/D]
分类和应用: 闪存微控制器和处理器外围集成电路PC时钟
文件页数/大小: 366 页 / 6797 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC18F8620-I/PT的Datasheet PDF文件第288页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第289页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第290页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第291页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第293页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第294页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第295页浏览型号PIC18F8620-I/PT的Datasheet PDF文件第296页  
PIC18FXX20  
RETFIE  
Return from Interrupt  
RETLW  
Return Literal to W  
Syntax:  
Operands:  
Operation:  
[ label ] RETFIE [s]  
s [0,1]  
Syntax:  
Operands:  
Operation:  
[ label ] RETLW k  
0 k 255  
(TOS) PC,  
k W,  
1 GIE/GIEH or PEIE/GIEL,  
if s = 1  
(TOS) PC,  
PCLATU, PCLATH are unchanged  
(WS) W,  
Status Affected:  
Encoding:  
Description:  
None  
(STATUSS) STATUS,  
(BSRS) BSR,  
0000  
1100  
kkkk  
kkkk  
PCLATU, PCLATH are unchanged.  
W is loaded with the eight-bit literal  
'k'. The program counter is loaded  
from the top of the stack (the return  
address). The high address latch  
(PCLATH) remains unchanged.  
1
2
Status Affected:  
Encoding:  
Description:  
GIE/GIEH, PEIE/GIEL.  
0000  
0000  
0001  
000s  
Return from Interrupt. Stack is  
popped and Top-of-Stack (TOS) is  
loaded into the PC. Interrupts are  
enabled by setting either the high  
or low priority global interrupt  
enable bit. If ‘s’ = 1, the contents of  
the shadow registers WS,  
STATUSS and BSRS are loaded  
into their corresponding registers,  
W, STATUS and BSR. If ‘s’ = 0, no  
update of these registers occurs  
(default).  
Words:  
Cycles:  
Q Cycle Activity:  
Q1  
Q2  
Q3  
Q4  
pop PC from  
stack, Write  
to W  
No  
operation  
Decode  
Read  
Process  
literal 'k'  
Data  
No  
No  
operation  
No  
operation  
operation  
Words:  
Cycles:  
1
2
Example:  
CALL TABLE ; W contains table  
; offset value  
Q Cycle Activity:  
Q1  
Q2  
Q3  
Q4  
; W now has  
; table value  
Decode  
No  
No  
pop PC from  
:
operation  
operation  
stack  
Set GIEH or  
GIEL  
No  
operation  
TABLE  
ADDWF PCL ; W = offset  
RETLW k0  
RETLW k1  
:
; Begin table  
;
No  
No  
No  
operation  
operation  
operation  
:
RETLW kn  
; End of table  
RETFIE  
1
Example:  
After Interrupt  
Before Instruction  
PC  
=
=
=
=
=
TOS  
WS  
W
W
=
0x07  
BSR  
STATUS  
BSRS  
STATUSS  
1
After Instruction  
GIE/GIEH, PEIE/GIEL  
W
=
value of kn  
DS39609A-page 290  
Advance Information  
2003 Microchip Technology Inc.  
 复制成功!