PIC16LF1824T39A
20-Pin Flash Microcontrollers with XLP 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 8 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 with
XLP:
•
•
•
•
Sleep mode: 175 nA @ 1.8V, typical, RF Sleep
Watchdog Timer: 200 nA @ 1.8V, typical
Timer1 Oscillator: 650 nA @ 32 kHz, 1.8V, typical
Operating Current: 48 µA/MHz @ 1.8V RF Sleep,
typical
- 9 mA @ 1 MHz, 1.8V, RF on at 0 dBm, typical
- 16.5 mA @ 1 MHz, 1.8V, RF on at +10 dBm,
typical
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
RF Transmitter:
Fully-Integrated Transmitter
FSK Operation up to 100 kbps
OOK Operation up to 10 kbps
Frequency-Agile Operation in 310, 433, 868 and
915 MHz Bands
• +10 dBm or 0 dBm Configurable Output Power
•
•
•
•
Special Microcontroller Features:
• 1.8V-3.6V operation
• 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)
• Programmable Code Protection
• Power-Saving Sleep mode
Peripheral Highlights:
• 11 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
2012 Microchip Technology Inc.
Preliminary
DS41657A-page 1
PIC16LF1824T39A
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 7
2.0 Enhanced Mid-Range CPU ........................................................................................................................................................ 13
3.0 Memory Organization ................................................................................................................................................................. 15
4.0 Device Configuration .................................................................................................................................................................. 43
5.0 Oscillator Module (With Fail-Safe Clock Monitor)....................................................................................................................... 49
6.0 Reference Clock Module ............................................................................................................................................................ 67
7.0 Resets ........................................................................................................................................................................................ 71
8.0 Interrupts .................................................................................................................................................................................... 81
9.0 Power-Down Mode (Sleep) ........................................................................................................................................................ 95
10.0 Watchdog Timer (WDT) ............................................................................................................................................................. 97
11.0 Data EEPROM and Flash Program Memory Control ............................................................................................................... 101
12.0 I/O Ports ................................................................................................................................................................................... 115
13.0 Interrupt-on-Change ................................................................................................................................................................. 129
14.0 Fixed Voltage Reference (FVR) ............................................................................................................................................... 133
15.0 Temperature Indicator Module ................................................................................................................................................. 135
16.0 Analog-to-Digital Converter (ADC) Module .............................................................................................................................. 137
17.0 Digital-to-Analog Converter (DAC) Module .............................................................................................................................. 151
18.0 SR Latch................................................................................................................................................................................... 157
19.0 Comparator Module.................................................................................................................................................................. 163
20.0 Timer0 Module ......................................................................................................................................................................... 171
21.0 Timer1 Module ......................................................................................................................................................................... 175
22.0 Timer2/4/6 Modules.................................................................................................................................................................. 187
23.0 Data Signal Modulator (DSM) .................................................................................................................................................. 191
24.0 Capture/Compare/PWM Module .............................................................................................................................................. 201
25.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 229
26.0 Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) ............................................................... 283
27.0 Capacitive Sensing Module...................................................................................................................................................... 311
28.0 RF Transmitter ......................................................................................................................................................................... 319
29.0 In-Circuit Serial Programming
™
(ICSP
™
) ................................................................................................................................ 331
30.0 Instruction Set Summary .......................................................................................................................................................... 335
31.0 Electrical Specifications............................................................................................................................................................ 349
32.0 DC and AC Characteristics Graphs and Tables....................................................................................................................... 377
33.0 Development Support............................................................................................................................................................... 397
34.0 Packaging Information.............................................................................................................................................................. 401
Appendix A: Revision History............................................................................................................................................................. 405
Index .................................................................................................................................................................................................. 407
The Microchip Web Site ..................................................................................................................................................................... 413
Customer Change Notification Service .............................................................................................................................................. 413
Customer Support .............................................................................................................................................................................. 413
Reader Response .............................................................................................................................................................................. 414
Product Identification System ............................................................................................................................................................ 415
2012 Microchip Technology Inc.
Preliminary
DS41657A-page 5