ENHANCED PIC16C5X
EPROM/ROM-Based 8-Bit CMOS Microcontroller Series
Devices Included in this Data Sheet
•
•
•
•
•
•
•
•
•
PIC16C54A
PIC16CR54A
PIC16CR54B
PIC16CR56
PIC16CR57A
PIC16CR57B
PIC16C58A
PIC16CR58A
PIC16CR58B
Pin Diagram
PDIP, SOIC, Windowed CERDIP
RA2
RA3
T0CKI
MCLR/V
PP
V
SS
RB0
RB1
RB2
RB3
•1
2
3
4
5
6
7
8
9
18
17
16
15
14
13
12
11
10
RA1
RA0
OSC1/CLKIN
OSC2/CLKOUT
V
DD
RB7
RB6
RB5
RB4
PIC16C54A
PIC16CR54A
PIC16CR54B
PIC16CR56
PIC16C58A
PIC16CR58A
PIC16CR58B
High-Performance RISC CPU
• Only 33 single word instructions to learn
• All instructions are single cycle (200 ns) except
for program branches which are two-cycle
• Operating speed: DC - 20 MHz clock input
DC - 200 ns instruction cycle
Device
Pins
I/O
EPROM/
RAM
ROM
PDIP, SOIC, CERDIP
T0CKI
V
DD
N/C
V
SS
N/C
RA0
RA1
RA2
RA3
RB0
RB1
RB2
RB3
RB4
•1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
MCLR
OSC1/CLKIN
OSC2/CLKOUT
RC7
RC6
RC5
RC4
RC3
RC2
RC1
RC0
RB7
RB6
RB5
PIC16CR57A
PIC16CR57B
PIC16C54A
18
12
512
25
PIC16CR54A
18
12
512
25
PIC16CR54B
18
12
512
25
PIC16CR56
18
12
1K
25
PIC16CR57A
28
20
2K
72
PIC16CR57B
28
20
2K
72
PIC16C58A
18
12
2K
73
PIC16CR58A
18
12
2K
73
PIC16CR58B
18
12
2K
73
• 12-bit wide instructions
• 8-bit wide data path
• Seven or eight special function hardware
registers
• Two-level deep hardware stack
• Direct, indirect and relative addressing modes for
data and instructions
• Selectable oscillator options:
- RC:
Low-cost RC oscillator
- XT:
Standard crystal/resonator
- HS:
High-speed crystal/resonator
- LP:
Power saving, low frequency crystal
CMOS Technology
• Low-power, high-speed CMOS EPROM/ROM
technology
• Fully static design
• Wide-operating voltage range:
- EPROM Commercial/Industrial 2.5V to 6.25V
- ROM Commercial/Industrial 2.5V to 6.25V
- EPROM Automotive 2.5V to 6.0V
• Low-power consumption
- < 2 mA typical @ 5V, 4 MHz
- 15
µ
A typical @ 3V, 32 kHz
- < 0.6
µ
A typical standby current (with WDT
disabled) @ 3V, 0
°
C to 70
°
C
Peripheral Features
• 8-bit real time clock/counter (TMR0) with 8-bit
programmable prescaler
• Power-On Reset (POR)
• Device Reset Timer (DRT)
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
• Programmable code-protection
• Power saving SLEEP mode
©
1996 Microchip Technology Inc.
DS30236B-page 1
This document was created with FrameMaker 4 0 4
Enhanced PIC16C5X
Pin Diagrams (con’t)
SSOP
RA2
RA3
T0CKI
MCLR/V
PP
V
SS
V
SS
RB0
RB1
RB2
RB3
•1
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
RA1
RA0
OSC1/CLKIN
OSC2/CLKOUT
V
DD
V
DD
RB7
RB6
RB5
RB4
V
SS
T0CKI
V
DD
V
DD
RA0
RA1
RA2
RA3
RB0
RB1
RB2
RB3
RB4
V
SS
SSOP
•1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
MCLR/V
PP
OSC1/CLKIN
OSC2/CLKOUT
RC7
RC6
RC5
RC4
RC3
RC2
RC1
RC0
RB7
RB6
RB5
PIC16CR57A
PIC16CR57B
Table of Contents
1.0
General Description .............................................................................................................................................3
2.0
Enhanced PIC16C5X Device Varieties................................................................................................................5
3.0
Architectural Overview.........................................................................................................................................7
4.0
Memory Organization ........................................................................................................................................13
5.0
I/O Ports.............................................................................................................................................................23
6.0
Timer0 Module and TMR0 Register...................................................................................................................25
7.0
Special Features of the CPU .............................................................................................................................29
8.0
Instruction Set Summary ...................................................................................................................................41
9.0
Development Support ........................................................................................................................................53
10.0 Electrical Characteristics - PIC16C54A .............................................................................................................59
11.0 Electrical Characteristics - PIC16CR54A...........................................................................................................71
12.0 Electrical Characteristics - PIC16CR54B/56/58B ..............................................................................................85
13.0 Electrical Characteristics - PIC16CR57A...........................................................................................................99
14.0 Electrical Characteristics - PIC16CR57B.........................................................................................................111
15.0 Electrical Characteristics - PIC16C58A ...........................................................................................................125
16.0 Electrical Characteristics - PIC16CR58A.........................................................................................................137
17.0 DC and AC Characteristics - All Enh. PIC16C5X, Except PIC16CR54A.........................................................151
18.0 DC and AC Characteristics - PIC16CR54A .....................................................................................................163
19.0 Packaging Information .....................................................................................................................................173
Appendix A: Compatibility................................................................................................................................185
Appendix B: What’s New .................................................................................................................................185
Appendix C: What’s Changed..........................................................................................................................186
Appendix D:PIC16/17 Microcontrollers............................................................................................................187
Index ................................................................................................................................................................195
Connecting to Microchip BBS ..........................................................................................................................199
Access to the Internet ......................................................................................................................................199
Reader Response............................................................................................................................................200
Enhanced PIC16C5X Product Identification System .......................................................................................201
We constantly strive to improve the quality of all our products and documentation. We have spent an exceptional
amount of time to ensure that these documents are 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 use the reader response form in the
back of this data sheet to inform us. We appreciate your assistance in making this a better document.
To assist you in the use of this document, Appendix B contains a list of new information in this data sheet, while
Appendix C contains information that has changed.
PIC16C54A
PIC16CR54A
PIC16CR54B
PIC16CR56
PIC16C58A
PIC16CR58A
PIC16CR58B
To Our Valued Customers
DS30236B-page 2
©
1996 Microchip Technology Inc.
Enhanced PIC16C5X
1.0
GENERAL DESCRIPTION
1.1
Applications
The Enhanced PIC16C5X from Microchip Technology
is a family of low-cost, high performance, 8-bit, fully
static, EPROM/ROM-based CMOS microcontrollers.
This family is pin and software compatible with the
PIC16C5X family of devices in a new enhanced
process technology. It employs a RISC architecture
with only 33 single word/single cycle instructions. All
instructions are single cycle (200 ns) except for
program branches which take two cycles. The
Enhanced PIC16C5X delivers performance an order of
magnitude higher than its competitors in the same
price category. The 12-bit wide instructions are highly
symmetrical resulting in 2:1 code compression over
other 8-bit microcontrollers in its class. The easy to use
and easy to remember instruction set reduces
development time significantly.
The Enhanced PIC16C5X products are equipped with
special features that reduce system cost and power
requirements. The Power-On Reset (POR) and Device
Reset Timer (DRT) eliminate the need for external
reset circuitry. There are four oscillator configurations
to choose from, including the power-saving LP (Low
Power) oscillator and cost saving RC oscillator. Power
saving SLEEP mode, Watchdog Timer and code
protection features improve system cost, power and
reliability.
The UV erasable CERDIP packaged versions are ideal
for code development, while the cost-effective
One-Time-Programmable (OTP) versions are suitable
for production in any volume. The customer can take
full advantage of Microchip’s price leadership in OTP
microcontrollers while benefiting from the OTP’s
flexibility.
The PIC16C5X products are supported by a
full-featured macro assembler, a software simulator, an
in-circuit emulator, a ‘C’ compiler, fuzzy logic support
tools, a low-cost development programmer, and a full
featured programmer. All the tools are supported on
IBM
®
PC and compatible machines.
The PIC16C5X series fits perfectly in applications
ranging from high-speed automotive and appliance
motor control to low-power remote transmitters/receiv-
ers, pointing devices and telecom processors. The
EPROM technology makes customizing application
programs (transmitter codes, motor speeds, receiver
frequencies, etc.) extremely fast and convenient. The
small footprint packages, for through hole or surface
mounting, make this microcontroller series perfect for
applications with space limitations. Low-cost,
low-power, high performance, ease of use and I/O flex-
ibility make the PIC16C5X series very versatile even in
areas where no microcontroller use has been
considered before (e.g., timer functions, replacement
of “glue” logic in larger systems, coprocessor
applications).
©
1996 Microchip Technology Inc.
DS30236B-page 3
This document was created with FrameMaker 4 0 4
Enhanced PIC16C5X
TABLE 1-1:
ENHANCED PIC16C5X FAMILY OF DEVICES
Clock
Memory
Peripherals
Features
PIC16C54
PIC16C54A
PIC16CR54
(2)
PIC16CR54A
PIC16CR54B
(1)
PIC16C55
PIC16C56
PIC16CR56
(1)
PIC16C57
PIC16CR57A
(2)
PIC16CR57B
PIC16C58A
PIC16CR58A
PIC16CR58B
(1)
20
20
20
20
20
20
20
20
20
20
20
20
20
20
512
512
—
—
—
512
1K
—
2K
—
—
2K
—
—
—
—
512
512
512
—
—
1K
—
2K
2K
—
2K
2K
25
25
25
25
25
24
25
25
72
72
72
73
73
73
Legend: Grayed boxes: Devices NOT covered in this data sheet.
All PIC16/17 Family devices have Power-On Reset, selectable Watchdog Timer, selectable code protect and
high I/O current capability.
Note 1: Please contact your local sales office for availability of these devices.
2: Not recommended for new designs.
DS30236B-page 4
z)
ra
(w m M
M
or e
em
ds m
) or
or
Ti
y
y
m
(b
er
yt
M
es
od
)
ul
e(
s)
I/O
Pi
ns
Vo
lta
ge
Ra
ng
Nu
e
m
(V
be
ol
ro
ts
)
fI
ns
tru
Pa
ct
io
ck
ns
ag
es
pe
ra
tio
n
of
O
eq
ue
nc
M
y
Fr
um
RO
im
M
M
ax
RO
EP
RA
M
Da
ta
Pr
og
(M
H
TMR0
TMR0
TMR0
TMR0
TMR0
TMR0
TMR0
TMR0
TMR0
TMR0
TMR0
TMR0
TMR0
TMR0
12
12
12
12
12
20
12
12
20
20
20
12
12
12
2.5-6.25
2.5-6.25
2.0-6.25
2.0-6.25
2.5-5.5
2.5-6.25
2.5-6.25
2.5-5.5
2.5-6.25
2.5-6.25
2.5-6.25
2.5-6.25
2.5-6.25
2.5-5.5
33
33
33
33
33
33
33
33
33
33
33
33
33
33
18-pin DIP, SOIC; 20-pin SSOP
18-pin DIP, SOIC; 20-pin SSOP
18-pin DIP, SOIC; 20-pin SSOP
18-pin DIP, SOIC; 20-pin SSOP
18-pin DIP, SOIC; 20-pin SSOP
28-pin DIP, SOIC, SSOP
18-pin DIP, SOIC; 20-pin SSOP
18-pin DIP, SOIC; 20-pin SSOP
28-pin DIP, SOIC, SSOP
28-pin DIP, SOIC, SSOP
28-pin DIP, SOIC, SSOP
18-pin DIP, SOIC; 20-pin SSOP
18-pin DIP, SOIC; 20-pin SSOP
18-pin DIP, SOIC; 20-pin SSOP
©
1996 Microchip Technology Inc.
Enhanced PIC16C5X
2.0
ENHANCED PIC16C5X DEVICE
VARIETIES
2.3
Quick-Turnaround-Production (QTP)
Devices
A variety of frequency ranges and packaging options
are available. Depending on application and
production requirements, the proper device option can
be selected using the information in this section. When
placing orders, please use the Enhanced PIC16C5X
Product Identification System at the back of this data
sheet to specify the correct part number.
For the Enhanced PIC16C5X family of devices, there
are four device types, as indicated in the device
number:
1.
C
, as in PIC16C54A. These devices have
EPROM program memory and operate over the
standard voltage range.
LC
, as in PIC16LC54A. These devices have
EPROM program memory and operate over an
extended voltage range.
CR
, as in PIC16CR54A. These devices have
ROM program memory and operate over the
standard voltage range.
LCR
, as in PIC16LCR54A. These devices have
ROM program memory and operate over an
extended voltage range.
Microchip offers a QTP Programming Service for
factory production orders. This service is made
available for users who choose not to program a
medium to high quantity of units and whose code
patterns have stabilized. The devices are identical to
the OTP devices but with all EPROM locations and
configuration bit options already programmed by the
factory. Certain code and prototype verification
procedures apply before production shipments are
available. Please contact your Microchip Technology
sales office for more details.
2.4
2.
Serialized
Quick-Turnaround-Production
(SQTP
SM
) Devices
3.
4.
Microchip offers the unique programming service
where a few user-defined locations in each device are
programmed with different serial numbers. The serial
numbers may be random, pseudo-random or
sequential.
Serial programming allows each device to have a
unique number which can serve as an entry code,
password or ID number.
2.1
UV Erasable Devices
2.5
Read Only Memory (ROM) Devices
The UV erasable versions, offered in CERDIP
packages, are optimal for prototype development and
pilot programs
UV erasable devices can be programmed for any of
the four oscillator configurations. Microchip's
PICSTART
®
and PRO MATE
™
programmers both
support programming of the Enhanced PIC16C5X.
Third party programmers also are available; refer to
the Third Party Guide for a list of sources.
Microchip offers masked ROM versions of several of
the highest volume parts, giving the customer a low
cost option for high volume, mature products.
2.2
One-Time-Programmable (OTP)
Devices
The availability of OTP devices is especially useful for
customers expecting frequent code changes and
updates.
The OTP devices, packaged in plastic packages,
permit the user to program them once. In addition to
the program memory, the configuration bits must be
programmed.
©
1996 Microchip Technology Inc.
DS30236B-page 5
This document was created with FrameMaker 4 0 4