DatasheetQ Logo
Electronic component search and free download site. Transistors,MosFET ,Diode,Integrated circuits

PIC17CR42-08/SP View Datasheet(PDF) - Microchip Technology

Part Name
Description
Manufacturer
PIC17CR42-08/SP
Microchip
Microchip Technology 
PIC17CR42-08/SP Datasheet PDF : 240 Pages
First Prev 111 112 113 114 115 116 117 118 119 120 Next Last
PIC17C4X
CPFSEQ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
If skip:
Q1
Forced NOP
Compare f with WREG,
skip if f = WREG
[ label ] CPFSEQ f
0 f 255
(f) – (WREG),
skip if (f) = (WREG)
(unsigned comparison)
None
0011 0001 ffff ffff
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.
1
1 (2)
Q2
Read
register 'f'
Q3
Execute
Q2
NOP
Q3
Execute
Q4
NOP
Q4
NOP
Example:
HERE CPFSEQ REG
NEQUAL :
EQUAL :
Before Instruction
PC Address =
WREG
=
REG
=
HERE
?
?
After Instruction
If REG
=
PC
=
If REG
PC
=
WREG;
Address (EQUAL)
WREG;
Address (NEQUAL)
CPFSGT
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
If skip:
Q1
Forced NOP
Compare f with WREG,
skip if f > WREG
[ label ] CPFSGT f
0 f 255
(f) − (WREG),
skip if (f) > (WREG)
(unsigned comparison)
None
0011 0010 ffff ffff
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.
1
1 (2)
Q2
Read
register 'f'
Q3
Execute
Q2
NOP
Q3
Execute
Q4
NOP
Q4
NOP
Example:
HERE
CPFSGT REG
NGREATER :
GREATER :
Before Instruction
PC
=
WREG
=
Address (HERE)
?
After Instruction
If REG
>
PC
=
If REG
PC
=
WREG;
Address (GREATER)
WREG;
Address (NGREATER)
© 1996 Microchip Technology Inc.
DS30412C-page 119

Share Link: 

datasheetq.com  [ Privacy Policy ]Request Datasheet ] [ Contact Us ]