PIC16F62X
DS40300C-page 112
Preliminary
2003 Microchip Technology Inc.
CLRW
Clear W
Syntax:
[ label ] CLRW
Operands:
None
Operation:
00h
→ (W)
1
→ Z
Status Affected:
Z
Encoding:
00
0001
0000
0011
Description:
W register is cleared. Zero bit
(Z) is set.
Words:
1
Cycles:
1
Example
CLRW
Before Instruction
W = 0x5A
After Instruction
W = 0x00
Z= 1
CLRWDT
Clear Watchdog Timer
Syntax:
[ label ] CLRWDT
Operands:
None
Operation:
00h
→ WDT
0
→ WDT prescaler,
1
→ TO
1
→ PD
Status Affected:
TO, PD
Encoding:
00
0000
0110
0100
Description:
CLRWDT
instruction resets the
Watchdog Timer. It also resets
the prescaler of the WDT.
STATUS bits TO and PD are set.
Words:
1
Cycles:
1
Example
CLRWDT
Before Instruction
WDT counter = ?
After Instruction
WDT counter
= 0x00
WDT prescaler = 0
TO
=1
PD
=1
COMF
Complement f
Syntax:
[ label ] COMF
f,d
Operands:
0
≤ f ≤ 127
d
∈ [0,1]
Operation:
(f)
→ (dest)
Status Affected:
Z
Encoding:
00
1001
dfff
ffff
Description:
The contents of register 'f' are
complemented. If 'd' is 0 the
result is stored in W. If 'd' is 1 the
result is stored back in register
'f'.
Words:
1
Cycles:
1
Example
COMF
REG1, 0
Before Instruction
REG1 = 0x13
After Instruction
REG1 = 0x13
W
= 0xEC
DECF
Decrement f
Syntax:
[ label ] DECF f,d
Operands:
0
≤ f ≤ 127
d
∈ [0,1]
Operation:
(f) - 1
→ (dest)
Status Affected:
Z
Encoding:
00
0011
dfff
ffff
Description:
Decrement 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'.
Words:
1
Cycles:
1
Example
DECF
CNT, 1
Before Instruction
CNT = 0x01
Z= 0
After Instruction
CNT = 0x00
Z= 1
相关PDF资料
AT97SC3204-X1A50-1 CRYPTO TPM LPC 3.0-3.6V 28TSSOP
ATA6620N-TAQY TXRX LIN BUS W/VREG SO-8
ATA6661-TAQJ 19 TXRX LIN 2.0 3.3V/5V 8SOIC
ATA6670-FFQW IC TXRX LIN DUAL 14VDFN
ATAM893T-TKSYD IC MCU FLASH 4K MTP 20SSOP
ATF1500ABV-15JI IC CPLD 15NS LOW VOLT PLCC
ATF1500AL-20JI IC CPLD 20NS LOW POW 44PLCC
ATF1502ASV-15JI44 IC CPLD EE HP 15NS 44-PLCC
相关代理商/技术参数
AT91SAM9XE-EK 功能描述:开发板和工具包 - ARM Eval Kit for SAM9XE Series RoHS:否 制造商:Arduino 产品:Development Boards 工具用于评估:ATSAM3X8EA-AU 核心:ARM Cortex M3 接口类型:DAC, ICSP, JTAG, UART, USB 工作电源电压:3.3 V
AT91SAM-ICE 功能描述:仿真器/模拟器 JTAG emulator AT91 ARM7/ARM9 RoHS:否 制造商:Blackhawk 产品:System Trace Emulators 工具用于评估:C6000, C5000, C2000, OMAP, DAVINCI, SITARA, TMS470, TMS570, ARM 7/9, ARM Cortex A8/R4/M3 用于:XDS560v2
AT91SAMS64-AI 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:AT91 ARM㈢ Thumb㈢-based Microcontrollers
AT91SC192192CT-USB 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:32-bit Secure Microcontrollers
AT91SC25672RC 制造商:ATMEL 制造商全称:ATMEL Corporation 功能描述:32-bit Secure Microcontroller for Smart Cards
AT91SC321RC-MQC-AM2 功能描述:ARM微控制器 - MCU For Secure Trnsactns in Smart Crd/PC Apps RoHS:否 制造商:STMicroelectronics 核心:ARM Cortex M4F 处理器系列:STM32F373xx 数据总线宽度:32 bit 最大时钟频率:72 MHz 程序存储器大小:256 KB 数据 RAM 大小:32 KB 片上 ADC:Yes 工作电源电压:1.65 V to 3.6 V, 2 V to 3.6 V, 2.2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:LQFP-48 安装风格:SMD/SMT
AT91SC321RC-MQC-AM5 功能描述:ARM微控制器 - MCU For Secure Trnsactns in Smart Crd/PC Apps RoHS:否 制造商:STMicroelectronics 核心:ARM Cortex M4F 处理器系列:STM32F373xx 数据总线宽度:32 bit 最大时钟频率:72 MHz 程序存储器大小:256 KB 数据 RAM 大小:32 KB 片上 ADC:Yes 工作电源电压:1.65 V to 3.6 V, 2 V to 3.6 V, 2.2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:LQFP-48 安装风格:SMD/SMT
AT91SC321RC-MQC-AM7 功能描述:ARM微控制器 - MCU For Secure Trnsactns in Smart Crd/PC Apps RoHS:否 制造商:STMicroelectronics 核心:ARM Cortex M4F 处理器系列:STM32F373xx 数据总线宽度:32 bit 最大时钟频率:72 MHz 程序存储器大小:256 KB 数据 RAM 大小:32 KB 片上 ADC:Yes 工作电源电压:1.65 V to 3.6 V, 2 V to 3.6 V, 2.2 V to 3.6 V 工作温度范围:- 40 C to + 85 C 封装 / 箱体:LQFP-48 安装风格:SMD/SMT