PIC16F506 Microchip Technology, PIC16F506 Datasheet - Page 77

no-image

PIC16F506

Manufacturer Part Number
PIC16F506
Description
(PIC12F510 / PIC16F506) 8-Bit Flash Microcontroller
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F506-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506-I/SL
Manufacturer:
MICROCHIP
Quantity:
16 700
Part Number:
PIC16F506-I/SL
Manufacturer:
Microchip Technology
Quantity:
33 360
Part Number:
PIC16F506-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506-I/SL
0
Part Number:
PIC16F506-I/ST
Manufacturer:
MICROCHIP
Quantity:
2 000
Part Number:
PIC16F506-I/ST
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506-I/ST
0
Company:
Part Number:
PIC16F506-I/ST
Quantity:
8 000
Part Number:
PIC16F506T-I/SL
Manufacturer:
ROHM
Quantity:
400 000
Part Number:
PIC16F506T-I/SL
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F506T-I/ST
Manufacturer:
ZARLINK
Quantity:
320
DECF
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
DECFSZ
Syntax:
Operands:
Operation:
Status Affected: None
Description:
GOTO
Syntax:
Operands:
Operation:
Status Affected: None
Description:
© 2006 Microchip Technology Inc.
Decrement f
[ label ] DECF f,d
0
d
(f) – 1
Decrement register ‘f’. If ‘d’ is ‘0’,
the result is stored in the W
register. If ‘d’ is ‘1’, the result is
stored back in register ‘f’.
Decrement f, Skip if 0
[ label ] DECFSZ f,d
0
d
(f) – 1
The contents of register ‘f’ are
decremented. If ‘d’ is ‘0’, the result
is placed in the W register. If ‘d’ is
‘1’, the result is placed back in
register ‘f’.
If the result is ‘0’, the next instruc-
tion, which is already fetched, is
discarded and a NOP is executed
instead making it a two-cycle
instruction.
Unconditional Branch
[ label ]
0
k
STATUS <6:5>
GOTO is an unconditional branch.
The 9-bit immediate value is
loaded into PC bits <8:0>. The
upper bits of PC are loaded from
STATUS <6:5>. GOTO is a two-
cycle instruction.
f
f
k
[0,1]
[0,1]
PC<8:0>;
31
31
511
(dest)
d;
GOTO k
skip if result = 0
PC<10:9>
Preliminary
INCF
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
INCFSZ
Syntax:
Operands:
Operation:
Status Affected: None
Description:
IORLW
Syntax:
Operands:
Operation:
Status Affected: Z
Description:
PIC12F510/16F506
Increment f
[ label ]
0
d
(f) + 1
The contents of register ‘f’ are
incremented. If ‘d’ is ‘0’, the result
is placed in the W register. If ‘d’ is
‘1’, the result is placed back in
register ‘f’.
[ label ]
0
d
(f) + 1
The contents of register ‘f’ are
incremented. If ‘d’ is ‘0’, the result
is placed in the W register. If ‘d’ is
‘1’, the result is placed back in
register ‘f’.
If the result is ‘0’, then the next
instruction, which is already
fetched, is discarded and a NOP is
executed instead making it a
two-cycle instruction.
Inclusive OR literal with W
[ label ]
0
(W) .OR. (k)
The contents of the W register are
OR’ed with the eight-bit literal ‘k’.
The result is placed in the
W register.
Increment f, Skip if 0
f
f
k
[0,1]
[0,1]
31
31
255
(dest)
(dest), skip if result = 0
INCF f,d
INCFSZ f,d
IORLW k
(W)
DS41268B-page 75

Related parts for PIC16F506