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

12C508A 参数 Datasheet PDF下载

12C508A图片预览
型号: 12C508A
PDF下载: 下载PDF文件 查看货源
内容描述: 8引脚, 8位CMOS微控制器 [8-Pin, 8-Bit CMOS Microcontrollers]
分类和应用: 微控制器
文件页数/大小: 113 页 / 1509 K
品牌: MICROCHIP [ MICROCHIP ]
 浏览型号12C508A的Datasheet PDF文件第51页浏览型号12C508A的Datasheet PDF文件第52页浏览型号12C508A的Datasheet PDF文件第53页浏览型号12C508A的Datasheet PDF文件第54页浏览型号12C508A的Datasheet PDF文件第56页浏览型号12C508A的Datasheet PDF文件第57页浏览型号12C508A的Datasheet PDF文件第58页浏览型号12C508A的Datasheet PDF文件第59页  
PIC12C5XX  
OPTION  
Syntax:  
Load OPTION Register  
[ label ] OPTION  
None  
RLF  
Rotate Left f through Carry  
[ label ] RLF f,d  
0 f 31  
Syntax:  
Operands:  
Operands:  
Operation:  
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  
;W = offset  
RETLW k1  
RETLW k2  
;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
1999 Microchip Technology Inc.  
DS40139E-page 55  
 复制成功!