欢迎访问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文件第48页浏览型号PIC16C54-XT/P的Datasheet PDF文件第49页浏览型号PIC16C54-XT/P的Datasheet PDF文件第50页浏览型号PIC16C54-XT/P的Datasheet PDF文件第51页浏览型号PIC16C54-XT/P的Datasheet PDF文件第53页浏览型号PIC16C54-XT/P的Datasheet PDF文件第54页浏览型号PIC16C54-XT/P的Datasheet PDF文件第55页浏览型号PIC16C54-XT/P的Datasheet PDF文件第56页  
PIC16C5X  
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  
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.  
The WDT and its prescaler are  
cleared.  
Description:  
Words:  
1
1
Cycles:  
The processor is put into SLEEP mode  
with the oscillator stopped. See sec-  
tion on SLEEP for more details.  
SUBWF  
REG1, 1  
Example 1:  
Before Instruction  
Words:  
1
REG1  
W
C
=
=
=
3
2
?
Cycles:  
Example:  
1
SLEEP  
After Instruction  
REG1  
W
C
=
=
=
1
2
1
; 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  
DS30453B-page 52  
Preliminary  
1998 Microchip Technology Inc.  
 复制成功!