ChipFind - документация

Электронный компонент: PIC16C505

Скачать:  PDF   ZIP

Document Outline

1999 Microchip Technology Inc.
DS40192C-page 1
Device included in this Data Sheet:
PIC16C505
High-Performance RISC CPU:
Only 33 instructions to learn
Operating speed:
- DC - 20 MHz clock input
- DC - 200 ns instruction cycle
Direct, indirect and relative addressing modes for
data and instructions
12-bit wide instructions
8-bit wide data path
2-level deep hardware stack
Eight special function hardware registers
Direct, indirect and relative addressing modes for
data and instructions
All single cycle instructions (200 ns) except for
program branches which are two-cycle
Peripheral Features:
11 I/O pins with individual direction control
1 input pin
High current sink/source for direct LED drive
Timer0: 8-bit timer/counter with 8-bit
programmable prescaler
Pin Diagram:
Device
Memory
Program Data
PIC16C505
1024 x 12
72 x 8
PDIP, SOIC, Ceramic Side Brazed
P
I
C16C5
0
5
V
DD
RB5/OSC1/CLKIN
RB4/OSC2/CLKOUT
RB3/MCLR/V
PP
RC5/T0CKI
RC4
RC3
V
SS
RB0
RB1
RB2
RC0
RC1
RC2
1
2
3
4
5
6
7
14
13
12
11
10
9
8
Special Microcontroller Features:
In-Circuit Serial Programming (ICSPTM)
Power-on Reset (POR)
Device Reset Timer (DRT)
Watchdog Timer (WDT) with dedicated on-chip
RC oscillator for reliable operation
Programmable Code Protection
Internal weak pull-ups on I/O pins
Wake-up from Sleep on pin change
Power-saving Sleep mode
Selectable oscillator options:
- INTRC: Precision internal 4 MHz oscillator
- EXTRC: External 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
technology
Fully static design
Wide operating voltage range (2.5V to 5.5V)
Wide temperature ranges
- Commercial: 0C to +70C
- Industrial: -40C to +85C
- Extended: -40C to +125C
- < 1.0
A typical standby current @ 5V
Low power consumption
- < 2.0 mA @ 5V, 4 MHz
- 15
A typical @ 3.0V, 32 kHz for TMR0
running in SLEEP mode
- < 1.0
A typical standby current @ 5V
PIC16C505
14-Pin, 8-Bit CMOS Microcontroller
PIC16C505
DS40192C-page 2
1999 Microchip Technology Inc.
TABLE OF CONTENTS
1.0
General Description..................................................................................................................................................................... 3
2.0
PIC16C505 Device Varieties ....................................................................................................................................................... 5
3.0
Architectural Overview ................................................................................................................................................................ 7
4.0
Memory Organization ................................................................................................................................................................ 11
5.0
I/O Port ...................................................................................................................................................................................... 19
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 - PIC16C505 ..................................................................................................................................... 57
11.0
DC and AC Characteristics - PIC16C505.................................................................................................................................. 71
11.0
Packaging Information............................................................................................................................................................... 75
Index .................................................................................................................................................................................................... 79
On-Line Support................................................................................................................................................................................... 81
Reader Response ................................................................................................................................................................................ 82
PIC16C505 Product Identification System .......................................................................................................................................... 83
To Our Valued Customers
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at 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.
New Customer Notification System
Register on our web site (www.microchip.com/cn) to receive the most current information on our products.
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: (480) 786-7277
When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include liter-
ature 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.
1999 Microchip Technology Inc.
DS40192C-page 3
PIC16C505
1.0
GENERAL DESCRIPTION
The PIC16C505 from Microchip Technology is a low-
cost, high-performance, 8-bit, fully static, EPROM/
ROM-based CMOS microcontroller. It employs a RISC
architecture with only 33 single word/single cycle
instructions. All instructions are single cycle (200
s)
except for program branches, which take two cycles.
The PIC16C505 delivers performance an order of mag-
nitude higher than its competitors in the same price cat-
egory. The 12-bit wide instructions are highly
symmetrical resulting in a typical 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 PIC16C505 product is equipped with special fea-
tures 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 five oscillator configurations to choose from,
including INTRC internal oscillator mode and the
power-saving LP (Low Power) oscillator mode. Power
saving SLEEP mode, Watchdog Timer and code
protection features improve system cost, power and
reliability.
The PIC16C505 is available in the cost-effective One-
Time-Programmable (OTP) version, which is 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 PIC16C505 product is supported by a full-featured
macro assembler, a software simulator, an in-circuit
emulator, a `C' compiler, a low-cost development pro-
grammer and a full featured programmer. All the tools
are supported on IBM
PC and compatible machines.
1.1
Applications
The PIC16C505 fits in applications ranging from per-
sonal care appliances and security systems to low-
power remote transmitters/receivers. The EPROM
technology makes customizing application programs
(transmitter codes, appliance settings, receiver fre-
quencies, etc.) extremely fast and convenient. The
small footprint packages, for through hole or surface
mounting, make this microcontroller perfect for applica-
tions with space limitations. Low-cost, low-power, high-
performance, ease of use and I/O flexibility make the
PIC16C505 very versatile even in areas where no
microcontroller use has been considered before (e.g.,
timer functions, replacement of "glue" logic and PLD's
in larger systems, and coprocessor applications).
PIC16C505
DS40192C-page 4
1999 Microchip Technology Inc.
TABLE 1-1:
PIC16C505 DEVICE
PIC16C505
Clock
Maximum Frequency
of Operation (MHz)
20
Memory
EPROM Program Memory
1024
Data Memory (bytes)
72
Peripherals
Timer Module(s)
TMR0
Wake-up from SLEEP on
pin change
Yes
Features
I/O Pins
11
Input Pins
1
Internal Pull-ups
Yes
In-Circuit Serial Programming
Yes
Number of Instructions
33
Packages
14-pin DIP, SOIC, JW
The PIC16C505 device has Power-on Reset, selectable Watchdog Timer, selectable code protect, high I/O current capability and
precision internal oscillator.
The PIC16C505 device uses serial programming with data pin RB0 and clock pin RB1.
1999 Microchip Technology Inc.
DS40192C-page 5
PIC16C505
2.0
PIC16C505 DEVICE VARIETIES
A variety of 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 PIC16C505 Product
Identification System at the back of this data sheet to
specify the correct part number.
2.1
UV Erasable Devices
The UV erasable version, offered in a ceramic win-
dowed package, is optimal for prototype development
and pilot programs.
The UV erasable version can be erased and
reprogrammed to any of the configuration modes.
Microchip's PICSTART
PLUS and PRO MATE
II pro-
grammers all support programming of the PIC16C505.
Third party programmers also are available; refer to the
Microchip Third Party Guide, (DS00104), for a list of
sources.
2.2
One-Time-Programmable (OTP)
Devices
The availability of OTP devices is especially useful for
customers who need the flexibility of frequent code
updates or small volume applications.
The OTP devices, packaged in plastic packages, per-
mit the user to program them once. In addition to the
program memory, the configuration bits must also be
programmed.
Note:
Please note that erasing the device will
also erase the pre-programmed internal
calibration value for the internal oscillator.
The calibration value must be saved prior
to erasing the part.
2.3
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 medium
to high quantity units and whose code patterns have
stabilized. The devices are identical to the OTP devices
but with all EPROM locations and fuse options already
programmed by the factory. Certain code and prototype
verification procedures do apply before production
shipments are available. Please contact your local
Microchip Technology sales office for more details.
2.4
Serialized Quick-Turnaround
Production (SQTP
SM
) Devices
Microchip offers a 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.