PIC16C62X
EPROM-Based 8-Bit CMOS Microcontroller
Devices included in this data sheet:
Referred to collectively as PIC16C62X .
•
•
•
•
PIC16C620
PIC16C621
PIC16C622
PIC16CR620A
• PIC16C620A
• PIC16C621A
• PIC16C622A
Pin Diagrams
PDIP, SOIC, Windowed CERDIP
RA2/AN2/V
REF
RA3/AN3
RA4/T0CKI
MCLR/V
PP
V
SS
RB0/INT
RB1
RB2
RB3
•1
2
3
4
5
6
7
8
9
18
17
16
15
14
13
12
11
10
RA1/AN1
RA0/AN0
OSC1/CLKIN
OSC2/CLKOUT
V
DD
RB7
RB6
RB5
RB4
PIC16C62X
High Performance RISC CPU:
• Only 35 instructions to learn
• All single-cycle instructions (200 ns), except for
program branches which are two-cycle
• Operating speed:
- DC - 20 MHz clock input
- DC - 200 ns instruction cycle
Device
PIC16C620
PIC16C620A
PIC16CR620A
PIC16C621
PIC16C621A
PIC16C622
PIC16C622A
•
•
•
•
Program
Memory
512
512
512
1K
1K
2K
2K
Data
Memory
80
96
96
80
96
128
128
SSOP
RA2/AN2/V
REF
RA3/AN3
RA4/T0CKI
MCLR/V
PP
V
SS
V
SS
RB0/INT
RB1
RB2
RB3
•1
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
RA1/AN1
RA0/AN0
OSC1/CLKIN
OSC2/CLKOUT
V
DD
V
DD
RB7
RB6
RB5
RB4
Special Microcontroller Features (cont’d)
•
•
•
•
•
Programmable code protection
Power saving SLEEP mode
Selectable oscillator options
Serial in-circuit programming (via two pins)
Four user programmable ID locations
PIC16C62X
Interrupt capability
16 special function hardware registers
8-level deep hardware stack
Direct, Indirect and Relative addressing modes
Peripheral Features:
• 13 I/O pins with individual direction control
• High current sink/source for direct LED drive
• Analog comparator module with:
- Two analog comparators
- Programmable on-chip voltage reference
(V
REF
) module
- Programmable input multiplexing from device
inputs and internal voltage reference
- Comparator outputs can be output signals
• Timer0: 8-bit timer/counter with 8-bit
programmable prescaler
CMOS Technology:
• Low-power, high-speed CMOS EPROM technol-
ogy
• Fully static design
• Wide operating voltage range
- PIC16C62X - 2.5V to 6.0V
- PIC16C62XA - 2.5V to 5.5V
- PIC16CR620A - 2.0V to 5.5V
• Commercial, industrial and extended tempera-
ture range
• Low power consumption
- < 2.0 mA @ 5.0V, 4.0 MHz
- 15
µ
A typical @ 3.0V, 32 kHz
- < 1.0
µ
A typical standby current @ 3.0V
Special Microcontroller Features:
• Power-on Reset (POR)
• Power-up Timer (PWRT) and Oscillator Start-up
Timer (OST)
• Brown-out Reset
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
©
1998 Microchip Technology Inc.
Preliminary
DS30235G-page 1
PIC16C62X
Device Differences
Device
PIC16C620
PIC16C621
PIC16C622
PIC16C620A
PIC16CR620A
PIC16C621A
PIC16C622A
Voltage
Range
2.5 - 6.0
2.5 - 6.0
2.5 - 6.0
2.5 - 5.5
2.0 - 5.5
2.5 - 5.5
2.5 - 5.5
Oscillator
See Note 1
See Note 1
See Note 1
See Note 1
See Note 1
See Note 1
See Note 1
Process
Technology
(Microns)
0.9
0.9
0.9
0.7
0.7
0.7
0.7
Note 1:
If you change from this device to another device, please verify oscillator characteristics in your application.
DS30235G-page 2
Preliminary
©
1998 Microchip Technology Inc.
PIC16C62X
Table of Contents
1.0
General Description......................................................................................................................................................................5
2.0
PIC16C62X Device Varieties .......................................................................................................................................................7
3.0
Architectural Overview .................................................................................................................................................................9
4.0
Memory Organization ................................................................................................................................................................ 13
5.0
I/O Ports .................................................................................................................................................................................... 25
6.0
Timer0 Module .......................................................................................................................................................................... 31
7.0
Comparator Module................................................................................................................................................................... 37
8.0
Voltage Reference Module........................................................................................................................................................ 43
9.0
Special Features of the CPU..................................................................................................................................................... 45
10.0 Instruction Set Summary ........................................................................................................................................................... 61
11.0 Development Support................................................................................................................................................................ 73
12.0 Electrical Specifications............................................................................................................................................................. 79
13.0 Device Characterization Information ......................................................................................................................................... 93
14.0 Packaging Information............................................................................................................................................................... 95
Appendix A:
Enhancements.......................................................................................................................................................... 101
Appendix B:
Compatibility ............................................................................................................................................................. 101
Appendix C:
What’s New............................................................................................................................................................... 102
Appendix D:
What’s Changed ....................................................................................................................................................... 102
Index .................................................................................................................................................................................................. 103
PIC16C62X Product Identification System ........................................................................................................................................ 107
To Our Valued Customers
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please check our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page.
The last character of the literature number is the version number. e.g., DS30000A is version A of document DS30000.
Errata
An errata sheet may exist for current devices, describing minor operational differences (from the data sheet) and recommended
workarounds. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revi-
sion of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page)
• The Microchip Corporate Literature Center; U.S. FAX: (602) 786-7277
When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include lit-
erature number) you are using.
Corrections to this Data Sheet
We constantly strive to improve the quality of all our products and documentation. We have spent a great deal of time to ensure
that this document is correct. However, we realize that we may have missed a few things. If you find any information that is missing
or appears in error, please:
• Fill out and mail in the reader response form in the back of this data sheet.
• E-mail us at webmaster@microchip.com.
We appreciate your assistance in making this a better document.
©
1998 Microchip Technology Inc.
Preliminary
DS30235G-page 3
PIC16C62X
NOTES:
DS30235G-page 4
Preliminary
©
1998 Microchip Technology Inc.
PIC16C62X
1.0
GENERAL DESCRIPTION
The
PIC16C62X
are
18
and
20
Pin
ROM/EPROM-based members of the versatile PICmi-
cro™ family of low-cost, high-performance, CMOS,
fully-static, 8-bit microcontrollers.
All PICmicro™ microcontrollers employ an advanced
RISC architecture. The PIC16C62X have enhanced
core features, eight-level deep stack, and multiple inter-
nal and external interrupt sources. The separate
instruction and data buses of the Harvard architecture
allow a 14-bit wide instruction word with the separate
8-bit wide data. The two-stage instruction pipeline
allows all instructions to execute in a single-cycle,
except for program branches (which require two
cycles). A total of 35 instructions (reduced instruction
set) are available. Additionally, a large register set gives
some of the architectural innovations used to achieve a
very high performance.
PIC16C62X microcontrollers typically achieve a 2:1
code compression and a 4:1 speed improvement over
other 8-bit microcontrollers in their class.
The PIC16C620A, PIC16C621A and PIC16CR620A
have 96 bytes of RAM. The PIC16C622(A) has 128
bytes of RAM. Each device has 13 I/O pins and an 8-bit
timer/counter with an 8-bit programmable prescaler. In
addition, the PIC16C62X adds two analog comparators
with a programmable on-chip voltage reference mod-
ule. The comparator module is ideally suited for appli-
cations requiring a low-cost analog interface (e.g.,
battery chargers, threshold detectors, white goods
controllers, etc).
PIC16C62X devices have special features to reduce
external components, thus reducing system cost,
enhancing system reliability and reducing power con-
sumption. There are four oscillator options, of which the
single pin RC oscillator provides a low-cost solution,
the LP oscillator minimizes power consumption, XT is a
standard crystal, and the HS is for High Speed crystals.
The SLEEP (power-down) mode offers power savings.
The user can wake up the chip from SLEEP through
several external and internal interrupts and reset.
A highly reliable Watchdog Timer with its own on-chip
RC oscillator provides protection against software
lock- up.
A UV-erasable CERDIP-packaged version is ideal for
code development while the cost-effective One-Time
Programmable (OTP) version is suitable for production
in any volume.
Table 1-1 shows the features of the PIC16C62X
mid-range microcontroller families.
A simplified block diagram of the PIC16C62X is shown
in Figure 3-1.
The PIC16C62X series fit perfectly in applications
ranging from battery chargers to low-power remote
sensors. The EPROM technology makes customization
of application programs (detection levels, pulse gener-
ation, timers, etc.) extremely fast and convenient. The
small footprint packages make this microcontroller
series perfect for all applications with space limitations.
Low-cost, low-power, high-performance, ease of use
and I/O flexibility make the PIC16C62X very versatile.
1.1
Family and Upward Compatibility
Those users familiar with the PIC16C5X family of
microcontrollers will realize that this is an enhanced
version of the PIC16C5X architecture. Please refer to
Appendix A for a detailed list of enhancements. Code
written for the PIC16C5X can be easily ported to
PIC16C62X family of devices (Appendix B). The
PIC16C62X family fills the niche for users wanting to
migrate up from the PIC16C5X family and not needing
various peripheral features of other members of the
PIC16XX mid-range microcontroller family.
1.2
Development Support
The PIC16C62X family is supported by a full-featured
macro assembler, a software simulator, an in-circuit
emulator, a low-cost development programmer and a
full-featured programmer. A “C” compiler and fuzzy
logic support tools are also available.
©
1998 Microchip Technology Inc.
Preliminary
DS30235G-page 5