2010 Microchip Technology Inc.
Preliminary
DS39964B-page 479
PIC18F47J53 FAMILY
DECFSZ
Decrement f, Skip if 0
Syntax:
DECFSZ f {,d {,a}}
Operands:
0
f 255
d
[0,1]
a
[0,1]
Operation:
(f) – 1 dest,
skip if result = 0
Status Affected:
None
Encoding:
0010
11da
ffff
Description:
The contents of register ‘f’ are
decremented. If ‘d’ is ‘0’, the result is
placed in W. If ‘d’ is ‘1’, the result is
placed back in register ‘f’ (default).
If the result is ‘0’, the next instruction
which is already fetched is discarded
and a NOP is executed instead, making
it a two-cycle instruction.
If ‘a’ is ‘0’, the Access Bank is selected.
If ‘a’ is ‘1’, the BSR is used to select the
GPR bank (default).
If ‘a’ is ‘0’ and the extended instruction
set is enabled, this instruction operates
in Indexed Literal Offset Addressing
mode whenever f
95 (5Fh). See
Words:
1
Cycles:
1(2)
Note: 3 cycles if skip and followed
by a 2-word instruction.
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register ‘f’
Process
Data
Write to
destination
If skip:
Q1
Q2
Q3
Q4
No
operation
No
operation
No
operation
No
operation
If skip and followed by 2-word instruction:
Q1
Q2
Q3
Q4
No
operation
No
operation
No
operation
No
operation
No
operation
No
operation
No
operation
No
operation
Example:
HERE
DECFSZ
CNT, 1, 1
GOTO
LOOP
CONTINUE
Before Instruction
PC
=
Address (HERE)
After Instruction
CNT
=
CNT – 1
If CNT
=
0;
PC =
Address (CONTINUE)
If CNT
0;
PC =
Address (HERE + 2)
DCFSNZ
Decrement f, Skip if Not 0
Syntax:
DCFSNZ
f {,d {,a}}
Operands:
0
f 255
d
[0,1]
a
[0,1]
Operation:
(f) – 1 dest,
skip if result
0
Status Affected:
None
Encoding:
0100
11da
ffff
Description:
The contents of register ‘f’ are
decremented. If ‘d’ is ‘0’, the result is
placed in W. If ‘d’ is ‘1’, the result is
placed back in register ‘f’ (default).
If the result is not ‘0’, the next
instruction which is already fetched is
discarded and a NOP is executed
instead, making it a two-cycle
instruction.
If ‘a’ is ‘0’, the Access Bank is selected.
If ‘a’ is ‘1’, the BSR is used to select the
GPR bank (default).
If ‘a’ is ‘0’ and the extended instruction
set is enabled, this instruction operates
in Indexed Literal Offset Addressing
mode whenever f
95 (5Fh). See
Words:
1
Cycles:
1(2)
Note:
3 cycles if skip and followed
by a 2-word instruction.
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register ‘f’
Process
Data
Write to
destination
If skip:
Q1
Q2
Q3
Q4
No
operation
No
operation
No
operation
No
operation
If skip and followed by 2-word instruction:
Q1
Q2
Q3
Q4
No
operation
No
operation
No
operation
No
operation
No
operation
No
operation
No
operation
No
operation
Example:
HERE
DCFSNZ
TEMP, 1, 0
ZERO
:
NZERO
:
Before Instruction
TEMP
=
?
After Instruction
TEMP
=
TEMP – 1,
If TEMP
=
0;
PC
=
Address (ZERO)
If TEMP
0;
PC
=
Address (NZERO)
相关PDF资料
PIC18F67J50-I/PT IC PIC MCU FLASH 64KX16 64TQFP
PIC32MX230F064D-I/ML IC MCU 32BIT 64KB FLASH 44-QFN
PIC32MX150F128D-I/ML IC MCU 32BIT 128KB FLASH 44-QFN
PIC24FJ64GB002-I/SS MCU 64KB FLASH 8KB RAM 28-SSOP
TS80C31X2-MCA IC MCU 8BIT 40/20MHZ 40-DIP
PIC24HJ32GP304-I/PT IC PIC MCU FLASH 32K 44TQFP
PIC18F46J53-I/ML IC PIC MCU 64KB FLASH 44QFN
PIC32MX230F064D-I/TL IC MCU 32BIT 64KB FLASH 44-VTLA
相关代理商/技术参数
PIC18F66K90T-I/MR 功能描述:8位微控制器 -MCU 64kB Flash 4kB RAM LCD RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F66K90T-I/MRRSL 功能描述:8位微控制器 -MCU 64KB Flash 4KB RAM nanoWatt XLP LCD RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F66K90T-I/PT 功能描述:8位微控制器 -MCU 64kB Flash 4kB RAM LCD RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F66K90T-I/PTRSL 功能描述:8位微控制器 -MCU 64KB Flash 4KB RAM nanoWatt XLP LCD RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F6720-E/PT 功能描述:8位微控制器 -MCU 128KB 3840 RAM 52I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F6720-I/PT 功能描述:8位微控制器 -MCU 128KB 3840 RAM 52I/O RoHS:否 制造商:Silicon Labs 核心:8051 处理器系列:C8051F39x 数据总线宽度:8 bit 最大时钟频率:50 MHz 程序存储器大小:16 KB 数据 RAM 大小:1 KB 片上 ADC:Yes 工作电源电压:1.8 V to 3.6 V 工作温度范围:- 40 C to + 105 C 封装 / 箱体:QFN-20 安装风格:SMD/SMT
PIC18F6720-I/PT 制造商:Microchip Technology Inc 功能描述:IC 8BIT FLASH MCU 18F6720 TQFP64
PIC18F6720-I/PTC01 制造商:Microchip Technology 功能描述:MCU 8-Bit PIC18 PIC RISC 128KB Flash 5V 64-Pin TQFP Tray