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

Электронный компонент: PIC12F510E/SP

Скачать:  PDF   ZIP
41268B.book
background image
2006 Microchip Technology Inc.
Preliminary
DS41268B
PIC12F510/16F506
Data Sheet
8/14-Pin, 8-Bit Flash Microcontroller
*8-bit, 8-pin Devices Protected by Microchip's Low Pin Count Patent: U.S. Patent No. 5,847,450. Additional U.S. and
foreign patents and applications may be issued or pending.
background image
DS41268B-page ii
Preliminary
2006 Microchip Technology Inc.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR WAR-
RANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED,
WRITTEN OR ORAL, STATUTORY OR OTHERWISE,
RELATED TO THE INFORMATION, INCLUDING BUT NOT
LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE,
MERCHANTABILITY OR FITNESS FOR PURPOSE.
Microchip disclaims all liability arising from this information and
its use. Use of Microchip devices in life support and/or safety
applications is entirely at the buyer's risk, and the buyer agrees
to defend, indemnify and hold harmless Microchip from any and
all damages, claims, suits, or expenses resulting from such
use. No licenses are conveyed, implicitly or otherwise, under
any Microchip intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EE
L
OQ
, micro
ID
, MPLAB, PIC, PICmicro, PICSTART,
PRO MATE, PowerSmart, rfPIC and SmartShunt are
registered trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB,
SEEVAL, SmartSensor and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, dsPICDEM,
dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR,
FanSense, FlexROM, fuzzyLAB, In-Circuit Serial
Programming, ICSP, ICEPIC, Linear Active Thermistor,
MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM,
PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo,
PowerMate, PowerTool, Real ICE, rfLAB, rfPICDEM, Select
Mode, Smart Serial, SmartTel, Total Endurance, UNI/O,
WiperLock and Zena are trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
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.
2006, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Note the following details of the code protection feature on Microchip devices:
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip's Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as "unbreakable."
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip's code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Microchip received ISO/TS-16949:2002 quality system certification for
its worldwide headquarters, design and wafer fabrication facilities in
Chandler and Tempe, Arizona and Mountain View, California in
October 2003. The Company's quality system processes and
procedures are for its PICmicro
8-bit MCUs, K
EE
L
OQ
code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip's quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
background image
2006 Microchip Technology Inc.
Preliminary
DS41268B-page 1
PIC12F510/16F506
Devices Included In This Data Sheet:
PIC16F506
PIC12F510
High-Performance RISC CPU:
Only 33 single-word instructions to learn
All single-cycle instructions except for program
branches, which are two-cycle
12-bit wide instructions
2-level deep hardware stack
Direct, Indirect and Relative Addressing modes
for data and instructions
8-bit wide data path
10 Special Function Hardware registers
(PIC12F510)
13 Special Function Hardware registers
(PIC16F506)
Operating speed:
- DC 8 MHz Crystal Oscillator (PIC12F510)
- DC 500 ns instruction cycle (PIC12F510)
- DC 20 MHz Crystal Oscillator (PIC16F506)
- DC 200 ns instruction cycle (PIC16F506)
Special Microcontroller Features:
4 or 8 MHz selectable precision internal oscillator:
- Factory calibrated to 1%
In-Circuit Serial ProgrammingTM (ICSPTM)
In-Circuit Debugging (ICD) support
Power-on Reset (POR)
Device Reset Timer (DRT):
- Short DRT (1.125 ms, typical) for INTOSC,
EXTRC and EC
- DRT (18 ms, typical) for HS, XT and LP
Watchdog Timer (WDT) with dedicated on-chip
RC oscillator for reliable operation
Programmable code protection
Multiplexed MCLR input pin
Selectable internal weak pull-ups on I/O pins
Power-Saving Sleep mode
Wake-up from Sleep on pin change
Wake-up from Sleep on comparator change
Selectable oscillator options:
- INTOSC: 4/8 MHz precision Internal
oscillator
- EXTRC: External low-cost RC oscillator
- XT: Standard crystal/resonator
- LP: Power-saving, low-frequency crystal
- HS: High-speed crystal/resonator
(PIC16F506 only)
- EC: High-speed external clock input
(PIC16F506 only)
Analog-to-Digital (A/D) Converter:
- 8-bit resolution
- 4-input channels (1 channel is dedicated to
conversion of the internal 0.6V absolute
voltage reference)
High current sink/source for direct LED drive
8-bit real-time clock/counter (TMR0) with 8-bit
programmable prescaler
Low-Power Features/CMOS Technology:
Operating Current:
- < 170
A @ 2V, 4 MHz
Standby Current:
- 100 nA @ 2V, typical
Low-power, high-speed Flash technology:
- 100,000 cycle Flash endurance
- > 40-year retention
Fully static design
Wide operating voltage range: 2.0V to 5.5V
Wide temperature range:
- Industrial: -40
C to +85
C
- Extended: -40
C to +125
C
Peripheral Features (PIC12F510):
6 I/O pins:
- 5 I/O pins with individual direction control
- 1 input only pin
1 Analog Comparator with absolute reference
Peripheral Features (PIC16F506):
12 I/O pins:
- 11 I/O pins with individual direction control
- 1 input only pin
2 Analog Comparators with absolute reference
and programmable reference
8/14-Pin, 8-Bit Flash Microcontroller
background image
PIC12F510/16F506
DS41268B-page 2
Preliminary
2006 Microchip Technology Inc.
Pin Diagrams
Device
Program Memory
Data Memory
I/O
Timers
8-bit
Flash (words)
SRAM (bytes)
PIC16F506
1024
67
12
1
PIC12F510
1024
38
6
1
PDIP, SOIC, MSOP
V
DD
RB5/OSC1/CLKIN
RB4/OSC2/CLKOUT
RB3/MCLR/V
PP
RC5/T0CKI
RC4/C2OUT
RC3
V
SS
RB0/AN0/C1IN+/ICSPDAT
RB1/AN1/C1IN-/ICSPCLK
RB2/AN2/C1OUT
RC0/C2IN+
RC1/C2IN-
RC2/CV
REF
PI
C16F
506
PDIP, SOIC and TSSOP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
V
DD
GP5/OSC1/CLKIN
GP4/OSC2
GP3/MCLR/V
PP
V
SS
GP0/AN0/C1IN+/ICSPDAT
GP1/AN1/C1IN-/ICSPCLK
GP2/AN2/T0CKI/C1OUT
P
I
C
12F
510
1
2
3
4
5
6
7
8
background image
2006 Microchip Technology Inc.
Preliminary
DS41268B-page 3
PIC12F510/16F506
Table of Contents
1.0
General Description...................................................................................................................................................................... 5
2.0
PIC12F510/16F506 Device Varieties .......................................................................................................................................... 7
3.0
Architectural Overview ................................................................................................................................................................. 9
4.0
Memory Organization ................................................................................................................................................................. 15
5.0
I/O Port ....................................................................................................................................................................................... 27
6.0
TMR0 Module and TMR0 Register............................................................................................................................................. 39
7.0
Comparator(s) ............................................................................................................................................................................ 43
8.0
Comparator Voltage Reference Module (PIC16F506 only)........................................................................................................ 49
9.0
Analog-to-Digital (A/D) Converter............................................................................................................................................... 51
10.0 Special Features Of The CPU.................................................................................................................................................... 55
11.0 Instruction Set Summary ............................................................................................................................................................ 71
12.0 Development Support................................................................................................................................................................. 79
13.0 Electrical Characteristics ............................................................................................................................................................ 83
14.0 DC and AC Characteristics Graphs and Charts ......................................................................................................................... 96
15.0 Packaging................................................................................................................................................................................... 98
Index .................................................................................................................................................................................................. 107
The Microchip Web Site ..................................................................................................................................................................... 109
Customer Change Notification Service .............................................................................................................................................. 109
Customer Support .............................................................................................................................................................................. 109
Reader Response .............................................................................................................................................................................. 110
Product Identification System ............................................................................................................................................................ 111
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@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)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
Customer Notification System
Register on our web site at www.microchip.com to receive the most current information on all of our products.

Document Outline