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

PIC16C54-XT/P 参数 Datasheet PDF下载

PIC16C54-XT/P图片预览
型号: PIC16C54-XT/P
PDF下载: 下载PDF文件 查看货源
内容描述: EPROM /基于ROM的8位CMOS微控制器系列 [EPROM/ROM-Based 8-Bit CMOS Microcontroller Series]
分类和应用: 微控制器可编程只读存储器电动程控只读存储器
文件页数/大小: 217 页 / 1555 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号PIC16C54-XT/P的Datasheet PDF文件第47页浏览型号PIC16C54-XT/P的Datasheet PDF文件第48页浏览型号PIC16C54-XT/P的Datasheet PDF文件第49页浏览型号PIC16C54-XT/P的Datasheet PDF文件第50页浏览型号PIC16C54-XT/P的Datasheet PDF文件第52页浏览型号PIC16C54-XT/P的Datasheet PDF文件第53页浏览型号PIC16C54-XT/P的Datasheet PDF文件第54页浏览型号PIC16C54-XT/P的Datasheet PDF文件第55页  
PIC16C5X  
OPTION  
Syntax:  
Load OPTION Register  
[ label ] OPTION  
None  
RLF  
Rotate Left f through Carry  
Syntax:  
Operands:  
[ label ] RLF f,d  
Operands:  
Operation:  
0 f 31  
d
[0,1]  
(W) OPTION  
Status Affected: None  
Operation:  
See description below  
C
0000  
0000  
0010  
Encoding:  
Status Affected:  
Encoding:  
The content of the W register is loaded  
into the OPTION register.  
Description:  
0011  
01df  
ffff  
The contents of register 'f' are rotated  
one bit to the left through the Carry  
Flag. If 'd' is 0 the result is placed in the  
W register. If 'd' is 1 the result is stored  
back in register 'f'.  
Description:  
Words:  
Cycles:  
Example  
1
1
OPTION  
Before Instruction  
register 'f'  
C
W
=
0x07  
0x07  
After Instruction  
OPTION  
Words:  
1
=
Cycles:  
Example:  
1
RLF  
REG1,0  
RETLW  
Return with Literal in W  
Before Instruction  
Syntax:  
[ label ] RETLW  
k
REG1  
C
=
=
1110 0110  
0
Operands:  
Operation:  
0 k 255  
After Instruction  
k (W);  
TOS PC  
REG1  
W
C
=
=
=
1110 0110  
1100 1100  
1
Status Affected: None  
1000  
kkkk  
kkkk  
Encoding:  
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.  
Description:  
RRF  
Rotate Right f through Carry  
[ label ] RRF f,d  
0 f 31  
Syntax:  
Operands:  
d
[0,1]  
Words:  
1
2
Operation:  
See description below  
C
Cycles:  
Example:  
Status Affected:  
Encoding:  
CALL TABLE ;W contains  
;table offset  
;value.  
0011  
00df  
ffff  
The contents of register 'f' are rotated  
one bit to the right through the Carry  
Flag. If 'd' is 0 the result is placed in the  
W register. If 'd' is 1 the result is placed  
back in register 'f'.  
Description:  
;W now has table  
;value.  
TABLE  
ADDWF PC  
RETLW k1  
RETLW k2  
;W = offset  
;Begin table  
;
register 'f'  
C
Words:  
1
Cycles:  
Example:  
1
RETLW kn  
; End of table  
RRF  
REG1,0  
Before Instruction  
W
=
0x07  
Before Instruction  
REG1  
C
=
=
1110 0110  
0
After Instruction  
value of k8  
W
=
After Instruction  
REG1  
W
C
=
=
=
1110 0110  
0111 0011  
0
1998 Microchip Technology Inc.  
Preliminary  
DS30453B-page 51  
 复制成功!