PIC16F628A-I/P Microchip Technology Inc., PIC16F628A-I/P Datasheet - Page 115

no-image

PIC16F628A-I/P

Manufacturer Part Number
PIC16F628A-I/P
Description
18 PIN, 3.5 KB FLASH, 224 RAM, 16 I/O
Manufacturer
Microchip Technology Inc.
Datasheet

Specifications of PIC16F628A-I/P

Comparators
2
Cpu Speed
5 MIPS
Eeprom Memory
128 Bytes
Input Output
16
Interface
USART
Memory Type
Flash
Number Of Bits
8
Package Type
18-pin PDIP
Programmable Memory
3.5K Bytes
Ram Size
224 Bytes
Speed
20 MHz
Timers
2-8-bit, 1-16-bit
Voltage, Range
2-5.5 V
Lead Free Status / Rohs Status
RoHS Compliant part Electrostatic Device

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
PIC16F628A-I/P
Manufacturer:
BT
Quantity:
562
Part Number:
PIC16F628A-I/P
Manufacturer:
MICROCHI
Quantity:
850
Part Number:
PIC16F628A-I/P
Manufacturer:
MICROCHIP
Quantity:
20 000
Part Number:
PIC16F628A-I/P
0
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 ≤ f ≤ 127
d ∈ [0,1]
(f) - 1 → (dest);
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
PC
REG1
if REG1 = 0,
PC
if REG1 ≠ 0,
PC
1011
DECFSZ
= address CONTINUE
GOTO
=
= REG1 - 1
= address HERE+1
address
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 ≤ 2047
k → PC<10:0>
PCLATH<4:3> → PC<12:11>
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
PC = Address THERE
PIC16F62X
1kkk
GOTO k
DS40300C-page 113
kkkk
kkkk

Related parts for PIC16F628A-I/P