1996 Microchip Technology Inc.
DS30412C-page 119
PIC17C4X
CPFSEQ
Compare f with WREG,
skip if f = WREG
Syntax:
[
label ] CPFSEQ
f
Operands:
0
≤ f ≤ 255
Operation:
(f) – (WREG),
skip if (f) = (WREG)
(unsigned comparison)
Status Affected:
None
Encoding:
0011
0001
ffff
Description:
Compares the contents of data memory
location 'f' to the contents of WREG by
performing an unsigned subtraction.
If 'f' = WREG then the fetched instruc-
tion is discarded and an NOP is exe-
cuted instead making this a two-cycle
instruction.
Words:
1
Cycles:
1 (2)
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register 'f'
Execute
NOP
If skip:
Q1
Q2
Q3
Q4
Forced NOP
NOP
Execute
NOP
Example:
HERE
CPFSEQ REG
NEQUAL
:
EQUAL
:
Before Instruction
PC Address
=
HERE
WREG
=
?
REG
=
?
After Instruction
If REG
=
WREG;
PC
=
Address (EQUAL)
If REG
WREG;
PC
=
Address (NEQUAL)
CPFSGT
Compare f with WREG,
skip if f > WREG
Syntax:
[
label ] CPFSGT
f
Operands:
0
≤ f ≤ 255
Operation:
(f)
(WREG),
skip if (f) > (WREG)
(unsigned comparison)
Status Affected:
None
Encoding:
0011
0010
ffff
Description:
Compares the contents of data memory
location 'f' to the contents of the WREG
by performing an unsigned subtraction.
If the contents of 'f' > the contents of
WREG then the fetched instruction is
discarded and an NOP is executed
instead making this a two-cycle instruc-
tion.
Words:
1
Cycles:
1 (2)
Q Cycle Activity:
Q1
Q2
Q3
Q4
Decode
Read
register 'f'
Execute
NOP
If skip:
Q1
Q2
Q3
Q4
Forced NOP
NOP
Execute
NOP
Example:
HERE
CPFSGT REG
NGREATER
:
GREATER
:
Before Instruction
PC
=
Address (HERE)
WREG
=
?
After Instruction
If REG
>
WREG;
PC
=
Address (GREATER)
If REG
WREG;
PC
=
Address (NGREATER)
相关PDF资料
C8051F020R IC 8051 MCU 64K FLASH 100TQFP
C8051F016R IC 8051 MCU 32K FLASH 48TQFP
C8051F015R IC 8051 MCU 32K FLASH 64TQFP
C8051F017R IC 8051 MCU 32K FLASH 32LQFP
C8051F007R IC 8051 MCU 32K FLASH 32LQFP
C8051F221R IC 8051 MCU 8K FLASH 32LQFP
C8051F220R IC 8051 MCU 8K FLASH 48TQFP
C8051F012R IC 8051 MCU 32K FLASH 32LQFP
相关代理商/技术参数
PIC18F2620-I/SP 制造商:Microchip Technology Inc 功能描述:IC 8BIT FLASH MCU 18F2620 SDIL28
PIC18F2620T-I/SO 功能描述:8位微控制器 -MCU 64KB 3968 RAM 25 I/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
PIC18F2680-E/SO 功能描述:8位微控制器 -MCU 64KB 3328 RAM w/ECAN 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
PIC18F2680-E/SP 功能描述:8位微控制器 -MCU 64KB 3328 RAM w/ECAN 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
PIC18F2680-H/SO 功能描述:8位微控制器 -MCU 64 KB Flash 3328 RAM 25 I/O w/ECAN 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
PIC18F2680-H/SP 功能描述:8位微控制器 -MCU 64 KB Flash 3328 RAM 25 I/O w/ECAN 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
PIC18F2680-I/SO 功能描述:8位微控制器 -MCU 64KB 3328 RAM w/ECAN 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
PIC18F2680-I/SO 制造商:Microchip Technology Inc 功能描述:IC 8BIT FLASH MCU 18F2680 SOIC28