PIC16F716 Microchip Technology, PIC16F716 Datasheet - Page 79

no-image

PIC16F716

Manufacturer Part Number
PIC16F716
Description
8-bit Flash-based Microcontroller with A/D Converter and Enhanced Capture/Compare/PWM
Manufacturer
Microchip Technology
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F716
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F716-1/P4AP
Manufacturer:
a
Quantity:
4
Part Number:
PIC16F716-E/ML
0
Part Number:
PIC16F716-E/SO
Manufacturer:
PIC
Quantity:
5 510
Part Number:
PIC16F716-E/SO
Manufacturer:
AMD
Quantity:
5 510
Part Number:
PIC16F716-E/SS
Manufacturer:
BCD
Quantity:
10
Part Number:
PIC16F716-I/P
Manufacturer:
MICROCHIP
Quantity:
5 373
Part Number:
PIC16F716-I/P
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Company:
Part Number:
PIC16F716-I/P
Quantity:
6 994
Company:
Part Number:
PIC16F716-I/P
Quantity:
3 900
Part Number:
PIC16F716-I/SO
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
Part Number:
PIC16F716-I/SO
0
Company:
Part Number:
PIC16F716-I/SO
Quantity:
2 000
Company:
Part Number:
PIC16F716-I/SO
Quantity:
1 680
Part Number:
PIC16F716-I/SS
Manufacturer:
MICROCHIP/微芯
Quantity:
20 000
DECFSZ
 2003 Microchip Technology Inc.
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Decrement f, Skip if 0
[ label ] DECFSZ f,d
0
d
(f) - 1
0
None
00
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
instruction, which is already
fetched, is discarded. A NOP is
executed instead making it a
two-cycle instruction.
1
1(2)
HERE
CONTINUE •
Before Instruction
After Instruction
f
[0,1]
PC
REG1
if REG1 = 0,
PC
if REG1
PC
127
(dest);
1011
DECFSZ
= address CONTINUE
GOTO
=
= REG1 - 1
= address HERE+1
address
0,
dfff
skip if result =
REG1, 1
LOOP
HERE
ffff
Preliminary
GOTO
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Unconditional Branch
[ label ]
0
k
PCLATH<4:3>
None
10
GOTO is an unconditional
branch. The eleven-bit
immediate value is loaded into
PC bits <10:0>. The upper bits
of PC are loaded from
PCLATH<4:3>. GOTO is a
two-cycle instruction.
1
2
GOTO THERE
After Instruction
k
PC = Address THERE
PC<10:0>
PIC16F716
2047
1kkk
GOTO k
DS41206A-page 77
kkkk
PC<12:11>
kkkk

Related parts for PIC16F716