PIC17C42 Microchip Technology, PIC17C42 Datasheet - Page 120

no-image

PIC17C42

Manufacturer Part Number
PIC17C42
Description
High-Performance 8-Bit CMOS EPROM/ROM Microcontroller
Manufacturer
Microchip Technology
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C42-16/JW
Manufacturer:
AD
Quantity:
12
Part Number:
PIC17C42A-16/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16/PQ
Manufacturer:
MICROCH
Quantity:
20 000
Part Number:
PIC17C42A-16/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-16E/PQ
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C42A-25/P
Manufacturer:
MICROCLOCK
Quantity:
20 000
PIC17C4X
CPFSLT
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
If skip:
Example:
DS30412C-page 120
Before Instruction
After Instruction
Forced NOP
Decode
PC
W
If REG
PC
If REG
PC
Q1
Q1
register 'f'
Compare f with WREG,
skip if f < WREG
[ label ] CPFSLT
0
(f) – WREG),
skip if (f) < (WREG)
(unsigned comparison)
Compares the contents of data memory
location 'f' to the contents of 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)
HERE
NLESS
LESS
None
Read
NOP
0011
Q2
Q2
=
=
<
=
f
=
255
Address (HERE)
?
WREG;
Address (LESS)
WREG;
Address (NLESS)
CPFSLT REG
:
:
0000
Execute
Execute
Q3
Q3
ffff
f
NOP
NOP
Q4
Q4
ffff
DAW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example1:
Example 2:
Before Instruction
After Instruction
Before Instruction
After Instruction
Decode
WREG
REG1
C
DC
WREG
REG1
C
DC
WREG
REG1
C
DC
WREG
REG1
C
DC
Q1
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
=
register 'f'
Decimal Adjust WREG Register
[ label ] DAW
0
s
If [WREG<3:0> >9] .OR. [DC = 1] then
else
If [WREG<7:4> >9] .OR. [C = 1] then
else
C
DAW adjusts the eight bit value in
WREG resulting from the earlier addi-
tion of two variables (each in packed
BCD format) and produces a correct
packed BCD result.
s = 0:
s = 1:
1
1
DAW
Read
0010
Q2
WREG<3:0> + 6
WREG<3:0>
WREG<7:4> + 6
WREG<7:4>
0xA5
??
0
0
0x05
0x05
1
0
0xCE
??
0
0
0x24
0x24
1
0
f
[0,1]
1996 Microchip Technology Inc.
255
REG1, 0
Result is placed in Data
memory location 'f' and
Result is placed in Data
memory location 'f'.
WREG.
111s
Execute
Q3
f,s
f<3:0>, s<3:0>;
f<7:4>, s<7:4>
ffff
f<3:0>, s<3:0>;
f<7:4>, s<7:4>
register 'f'
and other
specified
register
Write
Q4
ffff

Related parts for PIC17C42