PIC16C642-04/SO Microchip Technology, PIC16C642-04/SO Datasheet - Page 80

IC MCU OTP 4KX14 COMP 28SOIC

PIC16C642-04/SO

Manufacturer Part Number
PIC16C642-04/SO
Description
IC MCU OTP 4KX14 COMP 28SOIC
Manufacturer
Microchip Technology
Series
PIC® 16Cr
Datasheets

Specifications of PIC16C642-04/SO

Core Size
8-Bit
Program Memory Size
7KB (4K x 14)
Core Processor
PIC
Speed
4MHz
Peripherals
Brown-out Detect/Reset, LED, POR, WDT
Number Of I /o
22
Program Memory Type
OTP
Ram Size
176 x 8
Voltage - Supply (vcc/vdd)
4 V ~ 6 V
Oscillator Type
External
Operating Temperature
0°C ~ 70°C
Package / Case
28-SOIC (7.5mm Width)
Controller Family/series
PIC16C
No. Of I/o's
22
Ram Memory Size
176Byte
Cpu Speed
4MHz
No. Of Timers
1
Processor Series
PIC16C
Core
PIC
Data Bus Width
8 bit
Data Ram Size
176 B
Interface Type
RS- 232
Maximum Clock Frequency
4 MHz
Number Of Programmable I/os
33
Number Of Timers
8
Operating Supply Voltage
3 V to 6 V
Maximum Operating Temperature
+ 70 C
Mounting Style
SMD/SMT
3rd Party Development Tools
52715-96, 52716-328, 52717-734
Development Tools By Supplier
ICE2000, DM163022
Minimum Operating Temperature
0 C
On-chip Adc
10 bit
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Eeprom Size
-
Data Converters
-
Connectivity
-
Lead Free Status / Rohs Status
 Details
PIC16C64X & PIC16C66X
GOTO
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
INCF
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
DS30559A-page 80
Unconditional Branch
[ label ]
0
k
PCLATH<4:3>
None
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
After Instruction
Increment f
[ label ]
0
d
(f) + 1
Z
The contents of register 'f' are incre-
mented. If 'd' is 0 the result is placed
in the W register. If 'd' is 1 the result is
placed back in register 'f'.
1
1
Before Instruction
After Instruction
GOTO THERE
INCF
10
00
k
f
[0,1]
PC<10:0>
127
2047
PC =
CNT
Z
CNT
Z
(dest)
GOTO k
INCF f,d
1kkk
1010
CNT, 1
PC<12:11>
Address THERE
=
=
=
=
kkkk
dfff
0xFF
0
0x00
1
kkkk
ffff
INCFSZ
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
IORLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Example
Increment f, Skip if 0
[ label ]
0
d
(f) + 1
None
The contents of register 'f' are incre-
mented. 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)
Before Instruction
After Instruction
Inclusive OR Literal with W
[ label ]
0
(W) .OR. k
Z
The contents of the W register is
OR’ed with the eight bit literal 'k'. The
result is placed in the W register
1
1
Before Instruction
After Instruction
HERE
CONTINUE •
IORLW
00
11
PC
CNT
if CNT=
PC
if CNT
PC
f
k
[0,1]
1996 Microchip Technology Inc.
127
255
W
W
Z
(dest), skip if result = 0
INCFSZ f,d
IORLW k
=
=
=
=
1111
1000
0x35
INCFSZ
GOTO
=
=
=
(W)
address HERE
CNT + 1
0,
address CONTINUE
0,
address HERE +1
.
0x9A
0xBF
1
dfff
kkkk
LOOP
CNT,
ffff
kkkk
.
1

Related parts for PIC16C642-04/SO