PIC16C5X
EPROM/ROM-Based 8-Bit CMOS Microcontroller Series
Devices Included in this Data Sheet
•
•
•
•
•
PIC16C54
PIC16CR54
5
PIC16C55
PIC16C56
PIC16C57
Pin Diagrams
PDIP, SOIC, Windowed CERDIP
RA2
RA3
T0CKI
MCLR/V
PP
V
SS
RB0
•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
PIC16C54
PIC16CR54
PIC16C56
High-Performance RISC CPU Features
• 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
PIC16C54
PIC16CR54
5
PIC16C55
PIC16C56
PIC16C57
Pins
18
18
28
18
28
I/O
12
12
20
12
20
EPROM/
ROM
512
512
512
1K
2K
RAM
25
25
24
25
72
RB1
RB2
RB3
PDIP, SOIC, Windowed CERDIP
T0CKI
V
DD
N/C
V
SS
N/C
RA0
RA1
RA2
RA3
•1
2
3
4
28
27
26
25
MCLR/V
PP
OSC1/CLKIN
OSC2/CLKOUT
RC7
RC6
RC5
RC4
RC3
RC2
RC1
RC0
RB7
RB6
RB5
PIC16C55
PIC16C57
5
6
7
8
9
10
11
12
13
14
24
23
22
21
20
19
18
17
16
15
• 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
RB0
RB1
RB2
RB3
RB4
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.0V to 6.25V
- EPROM/ROM Automotive 2.5V to 6.0V
• Low-power consumption
- < 2 mA typical @ 5.0V, 4 MHz
- 15
µ
A typical @ 3.0V, 32 kHz
- < 3
µ
A typical standby current (with WDT
disabled) @ 3.0V, 0
°
C to 70
°
C
Peripheral Features
• 8-bit real time clock/counter (Timer0) 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
• Selectable oscillator options:
- RC: Low-cost RC oscillator
- XT: Standard crystal/resonator
- HS: High-speed crystal/resonator
- LP: Power saving, low frequency crystal
5
The PIC16CR54 is not recommended for new designs. The PIC16CR54A is recommended, as found in the
Enhanced PIC16C5X data sheet.
©
1995 Microchip Technology Inc.
DS30015M-page 1
This document was created with FrameMaker 4 0 4
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
Table of Contents
1.0
General Description .............................................................................................................................................3
2.0
PIC16C5X Device Varieties.................................................................................................................................5
3.0
Architectural Overview.........................................................................................................................................7
4.0
Memory Organization ........................................................................................................................................13
5.0
I/O Ports.............................................................................................................................................................21
6.0
Timer0 Module and TMR0 Register...................................................................................................................23
7.0
Special Features of the CPU .............................................................................................................................27
8.0
Instruction Set Summary ...................................................................................................................................39
9.0
Development Support ........................................................................................................................................51
10.0 Electrical Characteristics - PIC16C54/55/56/57.................................................................................................57
11.0 DC and AC Characteristics - PIC16C54/55/56/57 .............................................................................................71
12.0 Electrical Characteristics - PIC16CR54 .............................................................................................................79
13.0 DC and AC Characteristics - PIC16CR54 .........................................................................................................91
14.0 Packaging Information .....................................................................................................................................101
Appendix A: Compatibility................................................................................................................................115
Appendix B: What’s New .................................................................................................................................115
Appendix C: What’s Changed..........................................................................................................................116
Appendix D: PIC16/17 Microcontrollers...........................................................................................................117
Index ................................................................................................................................................................125
List of Examples ..............................................................................................................................................126
List of Figures ..................................................................................................................................................126
List of Tables ...................................................................................................................................................127
Connecting to Microchip BBS ..........................................................................................................................129
Access to the Internet ......................................................................................................................................129
Reader Response............................................................................................................................................130
PIC16C54/55/56/57 Product Identification System..........................................................................................131
PIC16CR54 Product Identification System ......................................................................................................131
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
PIC16C54
PIC16CR54
PIC16C56
PIC16C55
PIC16C57
To Our Valued Customers
DS30015M-page 2
©
1995 Microchip Technology Inc.
PIC16C5X
1.0
GENERAL DESCRIPTION
1.1
Applications
The 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
Enhanced PIC16C5X family of devices. 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 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 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-AT
®
and compatible machines.
The PIC16C5X series fits perfectly in applications
ranging from high-speed automotive and appliance
motor
control
to
low-power
remote
transmitters/receivers, 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 flexibility 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).
©
1995 Microchip Technology Inc.
DS30015M-page 3
This document was created with FrameMaker 4 0 4
PIC16C5X
TABLE 1-1:
PIC16C5X FAMILY OF DEVICES
Clock
Memory
Peripherals
Features
PIC16C54
PIC16C54A
PIC16CR54
(2)
PIC16CR54A
PIC16CR54B
(1)
PIC16C55
PIC16C56
PIC16CR56
(1)
PIC16C57
PIC16CR57A
PIC16CR57B
(1)
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.
DS30015M-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
ax
im
um
RO
M
M
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-6.25
2.5-6.25
2.5-6.25
2.5-6.25
2.5-6.25
2.5-6.25
2.5-6.25
2.5-6.25
2.5-6.25
2.5-6.25
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
©
1995 Microchip Technology Inc.
PIC16C5X
2.0
PIC16C5X DEVICE VARIETIES
2.3
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 PIC16C5X Product
Identification System at the back of this data sheet to
specify the correct part number.
For the PIC16C5X family of devices, there are two
device types, as indicated in the device number:
1.
C
, as in PIC16C54. These devices have
EPROM program memory and operate over the
standard voltage range.
CR
, as in PIC16CR54. These devices have
ROM program memory and operate over the
standard voltage range.
Quick-Turnaround-Production (QTP)
Devices
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.
2.4
Serialized
Quick-Turnaround-Production
(SQTP) Devices
2.1
UV Erasable 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 PIC16C5X. Third party
programmers also are available; refer to the Third
Party Guide for a list of sources.
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.5
Read Only Memory (ROM) Devices
2.2
One-Time-Programmable (OTP)
Devices
Microchip offers masked ROM versions of several of
the highest volume parts, giving the customer a low
cost option for high volume, mature products.
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.
©
1995 Microchip Technology Inc.
DS30015M-page 5
This document was created with FrameMaker 4 0 4