PIC16F/LF1824/1828
Data Sheet
14/20-Pin Flash Microcontrollers
with nanoWatt XLP Technology
2010 Microchip Technology Inc.
Preliminary
DS41419A
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, 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, Octopus, 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.
© 2010, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 978-1-60932-287-8
Microchip received ISO/TS-16949:2002 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.
DS41419A-page ii
Preliminary
2010 Microchip Technology Inc.
PIC16F/LF1824/1828
14/20-Pin Flash Microcontrollers with nanoWatt Technology
High-Performance RISC CPU:
• Only 49 Instructions to Learn:
- All single-cycle instructions except branches
• Operating Speed:
- DC – 32 MHz oscillator/clock input
- DC – 125 ns instruction cycle
• Up to 4 Kbytes Linear Program Memory
addressing
• Up to 256 bytes Linear Data Memory Addressing
• 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
Extreme Low-Power Management
PIC16LF1824/1828 with nanoWatt XLP:
• Sleep mode: 20 nA
• Watchdog Timer: 500 nA
• Timer1 Oscillator: 600 nA @ 32 kHz
Analog Features:
• Analog-to-Digital Converter (ADC) module:
- 10-bit resolution, up to 12 channels
- Auto acquisition capability
- Conversion available during Sleep
• Analog Comparator module:
- Two rail-to-rail analog comparators
- Power mode control
- Software controllable hysteresis
• Voltage Reference module:
- Fixed Voltage Reference (FVR) with 1.024V,
2.048V and 4.096V output levels
- 5-bit rail-to-rail resistive DAC with positive
and negative reference selection
Flexible Oscillator Structure:
• Precision 32 MHz Internal Oscillator Block:
- Factory calibrated to ± 1%, typical
- Software selectable frequencies range of
31 kHz to 32 MHz
• 31 kHz Low-Power Internal Oscillator
• Four Crystal modes up to 32 MHz
• Three External Clock modes up to 32 MHz
• 4X Phase Lock Loop (PLL)
• Fail-Safe Clock Monitor:
- Allows for safe shutdown if peripheral clock
stops
• Two-Speed Oscillator Start-up
• Reference Clock module:
- Programmable clock output frequency and
duty-cycle
Peripheral Highlights:
• Up to 17 I/O Pins and 1 Input Only Pin:
- High current sink/source 25 mA/25 mA
- Programmable weak pull-ups
- Programmable interrupt-on-change pins
• Timer0: 8-Bit Timer/Counter with 8-Bit Prescaler
• Enhanced Timer1:
- 16-bit timer/counter with prescaler
- External Gate Input mode
- Dedicated, low-power 32 kHz oscillator driver
• Three Timer2-types: 8-Bit Timer/Counter with 8-Bit
Period Register, Prescaler and Postscaler
• Two Capture, Compare, PWM (CCP) modules
• Two Enhanced CCP (ECCP) modules:
- Software selectable time bases
- Auto-shutdown and auto-restart
- PWM steering
• Master Synchronous Serial Port (MSSP) with SPI
and I
2
C
TM
with:
- 7-bit address masking
- SMBus/PMBus
TM
compatibility
• Enhanced Universal Synchronous Asynchronous
Receiver Transmitter (EUSART) module
• mTouch™ Sensing Oscillator module:
- Up to 12 input channels
• Data Signal Modulator module:
- Selectable modulator and carrier sources
Special Microcontroller Features:
•
•
•
•
•
•
•
•
•
•
1.8V-5.5V operation – PIC16F1824/1828
1.8V-3.6V operation – PIC16LF1824/1828
Self-Programmable under Software Control
Power-on Reset (POR), Power-up Timer (PWRT)
and Oscillator Start-up Timer (OST)
Programmable Brown-out Reset (BOR)
Extended Watchdog Timer (WDT)
In-Circuit Serial Programming™ (ICSP™) via
two pins
In-Circuit Debug (ICD) via Two Pins
Enhanced Low-Voltage Programming (LVP)
Operating Voltage Range:
- 1.8V-5.5V (PIC16F1824/1828)
- 1.8V-3.6V (PIC16LF1824/1828)
Programmable Code Protection
Power-Saving Sleep Mode
•
•
2010 Microchip Technology Inc.
Preliminary
DS41419A-page 3
PIC16F/LF1824/1828
Peripheral Features (Continued):
• SR Latch:
- Multiple Set/Reset input options
- Emulates 555 Timer applications
PIC16F/LF1824/1828 Family Types
ECCP (Half-Bridge)
ECCP (Full-Bridge)
Timers (8/16-bit)
10-bit ADC (ch)
CapSense (ch)
Comparators
Program
Memory
Device
Words
Data
Memory
Data EEPROM
(bytes)
I/O’s
(1)
SRAM
(bytes)
PIC16LF1824
4K
256
PIC16F1824
4K
256
PIC16LF1828
4K
256
PIC16F1828
4K
256
Note 1:
One pin is input only.
256
256
256
256
12
12
18
18
8
8
12
12
8
8
12
12
2
2
2
2
4/1
4/1
4/1
4/1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
1
2
2
2
2
Yes
Yes
Yes
Yes
DS41419A-page 4
Preliminary
2010 Microchip Technology Inc.
SR Latch
EUSART
MSSP
CCP
FIGURE 1:
14-PIN DIAGRAM FOR PIC16F/LF1824
3
4
5
6
7
MCLR/V
PP
/T1G
(1)
/SS
(1)
/RA3
MDCIN2/DT
(1)
/RX
(1)
/CCP1/P1A/RC5
MDOUT/CK
(1)
/TX
(1)
/P1B/SRNQ/C2OUT/RC4
MDMIN/SS
(1)
/P1C
(1)
/CCP2
(1)
/P2A
(1)
/C12IN3-/CPS7/AN7/RC3
PIC16F/LF1824
DS41419A-page 5
PIC16F/LF1824/1828
PDIP, SOIC, TSSOP
V
DD
CCP2
(1)
/P2A
(1)
/T1CKI/T1OSI/OSC1/CLKIN/RA5
T1G
(1)
/P2B
(1)
/SDO
(1)
/CLKR/T1OSO/CLKOUT/OSC2/CPS3/AN3/RA4
1
2
14
13
12
11
10
9
8
V
SS
RA0/AN0/CPS0/C1IN+/DACOUT/TX
(1)
/CK
(1)
/ICSPDAT
RA1/AN1/CPS1/C12IN0-/V
REF
+/SRI/RX
(1)
/DT
(1)
/ICSPCLK
RA2/AN2/CPS2/T0CKI/INT/C1OUT/SRQ/CCP3/FLT0
RC0/AN4/CPS4/C2IN+/SCL/SCK/P1D
(1)
RC1/AN5/CPS5/C12IN1-/SDA/SDI/P1C
(1)
/CCP4
RC2/AN6/CPS6/C12IN2-/P1D
(1)
/P2B
(1)
/SDO
(1)
/MDCIN1
Preliminary
2010 Microchip Technology Inc.
Note 1:
Pin function is selectable via the APFCON0 or APFCON1 registers.