欢迎访问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文件第52页浏览型号12C508A的Datasheet PDF文件第53页浏览型号12C508A的Datasheet PDF文件第54页浏览型号12C508A的Datasheet PDF文件第55页浏览型号12C508A的Datasheet PDF文件第57页浏览型号12C508A的Datasheet PDF文件第58页浏览型号12C508A的Datasheet PDF文件第59页浏览型号12C508A的Datasheet PDF文件第60页  
PIC12C5XX  
SLEEP  
Enter SLEEP Mode  
SUBWF  
Subtract W from f  
Syntax:  
Syntax:  
[label]  
None  
[label] SUBWF f,d  
SLEEP  
Operands:  
0 f 31  
Operands:  
Operation:  
d
[0,1]  
00h WDT;  
0 WDT prescaler;  
1 TO;  
Operation:  
(f) – (W) → (dest)  
Status Affected: C, DC, Z  
0 PD  
0000  
10df  
ffff  
Encoding:  
Status Affected: TO, PD, GPWUF  
Subtract (2’s complement method) the  
W register from register 'f'. If 'd' is 0 the  
result is stored in the W register. If 'd' is  
1 the result is stored back in register 'f'.  
Description:  
0000  
0000  
0011  
Encoding:  
Time-out status bit (TO) is set. The  
power down status bit (PD) is cleared.  
Description:  
Words:  
1
1
GPWUF is unaffected.  
The WDT and its prescaler are  
cleared.  
Cycles:  
SUBWF  
REG1, 1  
Example 1:  
The processor is put into SLEEP mode  
with the oscillator stopped. See sec-  
tion on SLEEP for more details.  
Before Instruction  
REG1  
W
C
=
=
=
3
2
?
Words:  
1
Cycles:  
Example:  
1
After Instruction  
SLEEP  
REG1  
=
=
=
1
2
1
W
C
; result is positive  
Example 2:  
Before Instruction  
REG1  
W
C
=
=
=
2
2
?
After Instruction  
REG1  
W
C
=
=
=
0
2
1
; result is zero  
Example 3:  
Before Instruction  
REG1  
W
C
=
=
=
1
2
?
After Instruction  
REG1  
W
C
=
=
=
FF  
2
0
; result is negative  
DS40139E-page 56  
1999 Microchip Technology Inc.  
 复制成功!