PIC17C752 MICROCHIP [Microchip Technology], PIC17C752 Datasheet - Page 197

no-image

PIC17C752

Manufacturer Part Number
PIC17C752
Description
High-Performance 8-Bit CMOS EPROM Microcontrollers
Manufacturer
MICROCHIP [Microchip Technology]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC17C752-16/L
Manufacturer:
Microchip
Quantity:
120
Part Number:
PIC17C752-16/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C752-16/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C752-16E/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C752-16E/PT
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C752-16I/L
Manufacturer:
Microchip Technology
Quantity:
10 000
Part Number:
PIC17C752-33/L
Manufacturer:
Microchip
Quantity:
304
Part Number:
PIC17C752-33I/L
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC17C752-ES
Manufacturer:
Microchip
Quantity:
18
DECF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Example:
1997 Microchip Technology Inc.
Before Instruction
After Instruction
Decode
CNT
Z
CNT
Z
Q1
=
=
=
=
register 'f'
Decrement f
[ label ] DECF f,d
0
d
(f) – 1
OV, C, DC, Z
Decrement register 'f'. If 'd' is 0 the
result is stored in WREG. If 'd' is 1 the
result is stored back in register 'f'.
1
1
DECF
Read
0000
Q2
0x01
0
0x00
1
f
[0,1]
255
(dest)
CNT,
011d
Process
Data
Q3
1
ffff
destination
Write to
Q4
ffff
DECFSZ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
If skip:
Example:
Before Instruction
After Instruction
operation
Decode
PC
CNT
If CNT
If CNT
Q1
No
Q1
PC =
PC =
=
=
=
register 'f'
operation
Decrement f, skip if 0
[ label ] DECFSZ f,d
0
d
(f) – 1
skip if result = 0
None
The contents of register 'f' are decre-
mented. If 'd' is 0 the result is placed in
WREG. If 'd' is 1 the result is placed
back in register 'f'.
If the result is 0, the next instruction,
which is already fetched, is discarded,
and an NOP is executed instead mak-
ing it a two-cycle instruction.
1
1(2)
HERE
CONTINUE
Read
0001
Q2
No
Q2
Address (HERE)
CNT - 1
0;
Address (CONTINUE)
0;
Address (HERE+1)
f
[0,1]
255
(dest);
011d
DECFSZ
GOTO
operation
Process
Data
Q3
Q3
No
DS30264A-page 197
ffff
CNT, 1
LOOP
destination
operation
Write to
Q4
Q4
No
ffff

Related parts for PIC17C752