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

Электронный компонент: PIC18LF020T-I/SO

Скачать:  PDF   ZIP
PIC18F010/020 Data Sheet
background image
2001 Microchip Technology Inc.
Preliminary
DS41142A
PIC18F010/020
Data Sheet
High Performance Microcontrollers
background image
DS41142A - page ii
Preliminary
2001 Microchip Technology Inc.
"All rights reserved. Copyright 2001, Microchip Technology
Incorporated, USA. Information contained in this publication
regarding device applications and the like is intended through
suggestion only and may be superseded by updates. No rep-
resentation or warranty is given and no liability is assumed by
Microchip Technology Incorporated with respect to the accu-
racy or use of such information, or infringement of patents or
other intellectual property rights arising from such use or oth-
erwise. Use of Microchip's products as critical components in
life support systems is not authorized except with express
written approval by Microchip. No licenses are conveyed,
implicitly or otherwise, under any intellectual property rights.
The Microchip logo and name are registered trademarks of
Microchip Technology Inc. in the U.S.A. and other countries.
All rights reserved. All other trademarks mentioned herein are
the property of their respective companies. No licenses are
conveyed, implicitly or otherwise, under any intellectual prop-
erty rights."
Trademarks
The Microchip name, logo, PIC, PICmicro, PICMASTER, PIC-
START, PRO MATE, K
EE
L
OQ
, SEEVAL, MPLAB and The
Embedded Control Solutions Company are registered trade-
marks of Microchip Technology Incorporated in the U.S.A. and
other countries.
Total Endurance, ICSP, In-Circuit Serial Programming, Filter-
Lab, MXDEV, microID, FlexROM, fuzzyLAB, MPASM,
MPLINK, MPLIB, PICDEM, ICEPIC, Migratable Memory,
FanSense, ECONOMONITOR and SelectMode are trade-
marks of Microchip Technology Incorporated in the U.S.A.
Serialized Quick Term Programming (SQTP) is a service mark
of Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
2001, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Microchip received QS-9000 quality system
certification for its worldwide headquarters,
design and wafer fabrication facilities in
Chandler and Tempe, Arizona in July 1999. The
Company's quality system processes and
procedures are QS-9000 compliant for its
PICmicro
8-bit MCUs, K
EE
L
OQ
code hopping
devices, Serial EEPROMs and microperipheral
products. In addition, Microchip's quality
system for the design and manufacture of
development systems is ISO 9001 certified.
background image
2001 Microchip Technology Inc.
Preliminary
DS41142A-page 1
PIC18F010/020
High Performance RISC CPU:
C compiler optimized instruction set
Linear program memory addressing
- 4096 x 8 on-chip FLASH program memory
- 2048 x 8 on-chip FLASH program memory
(PIC18F010)
Linear data memory addressing
- 256 x 8 general purpose registers
- 64 x 8 EEPROM
Operating speed:
- DC - 40MHz clock input
- DC - 100 ns instruction cycle
- Internal oscillator with 5 program
selectable speeds (32kHz, 500kHz, 1MHz,
4MHz, 8MHz)
2.0V operation (4MHz)
16-bit wide instructions
8-bit wide data path
31 levels of hardware stack
Software stack capability
Multi-vector interrupt capability
8 x 8 multiply single cycle hardware
Special Microcontroller Features:
Power-on Reset (POR), Power-up Timer (PWRT)
and Oscillator Start-up Timer (OST)
Brown-out Reset (BOR)
Programmable Low Voltage Detection circuitry
(PLVD)
Watchdog Timer (WDT) with its own on-chip
RC oscillator for reliable operation
Programmable code protection
Power saving SLEEP mode with Wake-up on Pin
Change
In-Circuit Serial Programming (ICSP
TM
) via two
pins
Low cost MPLAB
ICD available
Peripheral Features:
High current sink/source 25mA/25mA
Timer0: 8-bit/16-bit timer/counter with 8-bit
programmable prescaler
Pinout Diagram:
CMOS Technology:
Low power, high speed CMOS FLASH technology
Fully static design
Wide operating voltage range (2.0V to 5.5V)
Commercial, Industrial and Extended
temperature ranges
Low power consumption
PDIP, SOIC
8
7
6
5
1
2
3
4
V
DD
RB5/OSC1/CLKIN
RB4/OSC2/CLKOUT
RB3/MCLR/V
PP
V
SS
RB0/ICSPDAT
RB1/ICSPCLK
RB2/T0CKI/INT0
P
I
C
1
8
F
010
/
020
High Performance Microcontrollers
background image
PIC18F010/020
DS41142A-page 2
Preliminary
2001 Microchip Technology Inc.
Table of Contents
1.0
Device Overview ................................................................................................................................................ 3
2.0
Oscillator Configurations .................................................................................................................................... 7
3.0
Reset ................................................................................................................................................................ 15
4.0
Memory Organization ....................................................................................................................................... 23
5.0
Data EEPROM Memory ................................................................................................................................... 43
6.0
Table Read/Write Instructions .......................................................................................................................... 47
7.0
8 X 8 Hardware Multiplier ................................................................................................................................. 55
8.0
Interrupts .......................................................................................................................................................... 59
9.0
I/O Port ............................................................................................................................................................. 67
10.0
Timer0 Module ................................................................................................................................................. 73
11.0
Low Voltage Detect .......................................................................................................................................... 77
12.0
Special Features of the CPU............................................................................................................................ 83
13.0
Instruction Set Summary .................................................................................................................................. 95
14.0
Development Support..................................................................................................................................... 139
15.0
Electrical Characteristics ................................................................................................................................ 145
16.0
DC and AC Characteristics Graphs and Tables............................................................................................. 157
17.0
Packaging Information.................................................................................................................................... 159
Appendix A:
Conversion Considerations .................................................................................................................. 163
Appendix B:
Migration from Baseline to Enhanced Devices..................................................................................... 163
Appendix C: Migration from Mid-range to Enhanced Devices .................................................................................. 164
Appendix D: Migration from High-end to Enhanced Devices .................................................................................... 164
Index
....................................................................................................................................................................... 165
On-Line Support .......................................................................................................................................................... 169
Reader Response ....................................................................................................................................................... 170
PIC18F010/020 Product Identification System............................................................................................................ 171
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip
products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and
enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via
E-mail at docerrors@mail.microchip.com or fax the Reader Response Form in the back of this data sheet to (480) 792-4150.
We welcome your feedback.
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).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
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) 792-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.
Customer Notification System
Register on our web site at www.microchip.com/cn to receive the most current information on all of our products.
background image
2001 Microchip Technology Inc.
Preliminary
DS41142A-page 3
PIC18F010/020
1.0
DEVICE OVERVIEW
This document contains device specific information for
the PIC18F010/020 microcontrollers. These devices
come in 8-pin packages. Table 1-1 is an overview of the
features. Figure 1-1 presents the block diagram for the
PIC18F010/020 devices and Table 1-2 gives the pin
descriptions.
TABLE 1-1:
DEVICE FEATURES
Features
PIC18F010
PIC18F020
Operating Frequency
DC - 40 MHz
DC - 40 MHz
Program Memory (Bytes)
2K
4K
Program Memory (Instructions)
1024
2048
Data Memory (SRAM)
256
256
Data Memory (EEPROM)
64
64
Interrupt Sources
5
5
I/O Ports
PORTB (6-bit)
PORTB (6-bit)
Timers
1 (8/16-bit)
1 (8/16-bit)
RESETS (and Delays)
POR, BOR,
RESET
Instruction,
Stack Full,
Stack Underflow
(PWRT, OST)
POR, BOR,
RESET
Instruction,
Stack Full,
Stack Underflow
(PWRT, OST)
Programmable Low Voltage Detect
Yes
Yes
Programmable Brown-out Reset
Yes
Yes
Instruction Set
75
75
Packages
8-pin PDIP
8-pin SOIC
8-pin PDIP
8-pin SOIC

Document Outline