PIC12(L)F1501
Data Sheet
8-Pin Flash, 8-Bit Microcontrollers
*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.
2011 Microchip Technology Inc.
Preliminary
DS41615A
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.
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
WARRANTIES 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, dsPIC,
K
EE
L
OQ
, K
EE
L
OQ
logo, MPLAB, PIC, PICmicro, PICSTART,
PIC
32
logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL 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, chipKIT,
chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net,
dsPICworks, dsSPEAK, ECAN, ECONOMONITOR,
FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP,
Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB,
MPLINK, mTouch, Omniscient Code Generation, PICC,
PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE,
rfLAB, Select Mode, Total Endurance, TSHARC,
UniWinDriver, 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.
© 2011, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 978-1-61341-765-2
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
®
MCUs and dsPIC
®
DSCs, 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.
DS41615A-page 2
Preliminary
2011 Microchip Technology Inc.
PIC12(L)F1501
8-Pin Flash, 8-Bit Microcontrollers
High-Performance RISC CPU:
•
•
•
•
•
C Compiler Optimized Architecture
Only 49 Instructions
1K Words Linear Program Memory Addressing
64 bytes Linear Data Memory Addressing
Operating Speed:
- DC – 20 MHz clock input
- DC – 200 ns instruction cycle
• Interrupt Capability with Automatic Context
Saving
• 16-Level Deep Hardware Stack with Optional
Overflow/Underflow Reset
• Direct, Indirect and Relative Addressing modes:
- Two full 16-bit File Select Registers (FSRs)
- FSRs can read program and data memory
Low-Power Features (PIC12LF1501):
• Standby Current:
- 20 nA @ 1.8V, typical
• Watchdog Timer Current:
- 200 nA @ 1.8V, typical
• Operating Current:
- 30
A/MHz
@ 1.8V, typical
Peripheral Features:
• Analog-to-Digital Converter (ADC):
- 10-bit resolution
- 4 external channels
- 2 internal channels:
- Fixed Voltage Reference and DAC channels
- Temperature Indicator channel
- Auto acquisition capability
- Conversion available during Sleep
• 1 Comparator:
- Rail-to-rail inputs
- Power mode control
- Software controllable hysteresis
• Voltage Reference module:
- Fixed Voltage Reference (FVR) with 1.024V,
2.048V and 4.096V output levels
- 1 rail-to-rail resistive 5-bit DAC with positive
reference selection
• 6 I/O Pins (1 Input-only Pin):
- High current sink/source 25 mA/25 mA
- Individually programmable weak pull-ups
- Individually programmable interrupt-on-change
(IOC) pins
• Timer0: 8-Bit Timer/Counter with 8-Bit
Programmable Prescaler
• Enhanced Timer1:
- 16-bit timer/counter with prescaler
- External Gate Input mode
• Timer2: 8-Bit Timer/Counter with 8-Bit Period
Register, Prescaler and Postscaler
• Four 10-bit PWM modules
• 2 Configurable Logic Cell (CLC) modules:
- 16 selectable input source signals
- Four inputs per module
- Software control of combinational/sequential
logic/state/clock functions
- AND/OR/XOR/D Flop/D Latch/SR/JK
- External or internal inputs/outputs
- Operation while in Sleep
Flexible Oscillator Structure:
• 16 MHz Internal Oscillator Block:
- Factory calibrated to ±1%, typical
- Software selectable frequency range from
16 MHz to 31 kHz
• 31 kHz Low-Power Internal Oscillator
• Three External Clock modes up to 20 MHz
Special Microcontroller Features:
• Operating Voltage Range:
- 1.8V to 3.6V (PIC12LF1501)
- 2.3V to 5.5V (PIC12F1501)
• Self-Programmable under Software Control
• Power-on Reset (POR)
• Power-up Timer (PWRT)
• Programmable Low-Power Brown-Out Reset
(LPBOR)
• Extended Watchdog Timer (WDT):
- Programmable period from 1 ms to 256s
• Programmable Code Protection
• In-Circuit Serial Programming™ (ICSP™) via Two
Pins
• Enhanced Low-Voltage Programming (LVP)
• Power-Saving Sleep mode:
- Low-Power Sleep mode
- Low-Power BOR (LPBOR)
• Integrated Temperature Indicator
• 128 Bytes High-Endurance Flash:
- 100,000 write Flash endurance (minimum)
2011 Microchip Technology Inc.
Preliminary
DS41615A-page 3
PIC12(L)F1501
Peripheral Features (Continued):
• Numerically Controlled Oscillator (NCO):
- 20-bit accumulator
- 16-bit increment
- True linear frequency control
- High-speed clock input
- Selectable Output modes:
- Fixed Duty Cycle (FDC) mode
- Pulse Frequency (PF) mode
• Complementary Waveform Generator (CWG):
- 8 selectable signal sources
- Selectable falling and rising edge dead-band
control
- Polarity control
- 4 auto-shutdown sources
- Multiple input sources: PWM, CLC, NCO
PIC12(L)F1501/PIC16(L)F150X Family Types
Program Memory
Flash (words)
Data Sheet Index
10-bit ADC (ch)
MSSP (I
2
C/SPI)
Comparators
Data SRAM
(bytes)
Timers
(8/16-bit)
EUSART
Debug
(1)
H
H
H
I/H
I/H
I/O’s
(2)
PWM
CWG
NCO
DAC
CLC
Device
PIC12(L)F1501 (1) 1024 64
6 4
1
1
2/1
4
—
—
1
2
PIC16(L)F1503 (2) 2048 128 12 8
2
1
2/1
4
—
1
1
2
PIC16(L)F1507 (3) 2048 128 18 12 — —
2/1
4
—
—
1
2
PIC16(L)F1508 (4) 4096 256 18 12 2
1
2/1
4
1
1
1
4
PIC16(L)F1509 (4) 8192 512 18 12 2
1
2/1
4
1
1
1
4
Note 1:
I - Debugging, Integrated on Chip; H - Debugging, Requires Debug Header.
2:
One pin is input-only.
Data Sheet Index:
(Unshaded devices are described in this document.)
1:
Future Product
PIC12(L)F1501 Data Sheet, 8-Pin Flash, 8-bit Microcontrollers.
2:
DS41607
PIC16(L)F1503 Data Sheet, 14-Pin Flash, 8-bit Microcontrollers.
3:
DS41586
PIC16(L)F1507 Data Sheet, 20-Pin Flash, 8-bit Microcontrollers.
4:
DS41609
PIC16(L)F1508/1509 Data Sheet, 20-Pin Flash, 8-bit Microcontrollers.
1
1
1
1
1
DS41615A-page 4
Preliminary
2011 Microchip Technology Inc.
XLP
—
—
—
Y
Y
PIC12(L)F1501
FIGURE 1:
8-PIN PDIP, SOIC, MSOP, DFN DIAGRAM FOR PIC12(L)F1501
PDIP, SOIC, MSOP, DFN
V
DD
RA5
RA4
MCLR/V
PP
/RA3
1
PIC12(L)F1501
8
7
6
5
V
SS
RA0/ICSPDAT
RA1/ICSPCLK
RA2
2
3
4
Note:
See
Table 1
for location of all peripheral functions.
TABLE 1:
8-Pin PDIP/SOIC/MSOP/DFN
8-PIN ALLOCATION TABLE (PIC12(L)F1501)
Comparator
Reference
Interrupt
Pull-Up
Timer
RA0
RA1
RA2
RA3
RA4
RA5
V
DD
V
SS
Note 1:
2:
7
6
5
4
3
2
1
8
AN0
AN1
AN2
—
AN3
—
—
—
DACOUT1
V
REF
+
DACOUT2
—
—
—
—
—
C1IN+
C1IN0-
C1OUT
—
C1IN1-
—
—
—
—
—
T0CKI
T1G
(2)
T1G
(1)
T1CKI
—
—
CWG1B
(1)
—
CWG1A
(1)
CWG1FLT
—
CWG1B
(2)
CWG1A
(2)
—
—
—
NCO1
(1)
—
—
CLC2IN1
CLC2IN0
CLC1
(1)
CLC1IN0
CLC1
(2)
PWM2
—
PWM1
—
PWM3
PWM4
—
—
IOC
IOC
INT
IOC
IOC
IOC
IOC
—
—
Y
Y
Y
Y
Y
Y
—
—
ICSPDAT
ICSPCLK
—
MCLR
V
PP
CLKOUT
CLKIN
V
DD
V
SS
NCO1
(2)
NCO1CLK
—
—
CLC1IN1
CLC2
—
—
Default location for peripheral pin function. Alternate location can be selected using the APFCON register.
Alternate location for peripheral pin function selected by the APFCON register.
2011 Microchip Technology Inc.
Preliminary
DS41615A-page 5
Basic
PWM
CWG
NCO
ADC
CLC
I/O