Description
PIC18LF13K22 offers the advantages of all PIC18 microcontrollers – namely, high computational performance with the addition of high-endurance, Flash program memory. On top of these features, the PIC18(L)F1XK22 family introduces design enhancements that make these microcontrollers a logical choice for many high-performance, power sensitive applications. All of the devices in the PIC18(L)F1XK22 family incorporate a range of features that can significantly reduce power consumption during operation. Multiple Idle Modes: The controller can also run with its CPU core disabled but the peripherals still active. In these states, power consumption can be reduced even further, to as little as 4% of normal operation requirements. On-the-fly Mode Switching: The power-managed modes are invoked by user code during operation, allowing the user to incorporate power-saving ideas into their application’s software design Low Consumption in Key Modules: The power requirements for both Timer1 and the Watchdog Timer are minimized All of the devices in the PIC18(L)F1XK22 family offer ten different oscillator options, allowing users a wide range of choices in developing application hardware. These include: Four Crystal modes, using crystals or ceramic resonators External Clock modes, offering the option of using two pins (oscillator input and a divide-by-4 clock output) or one pin (oscillator input, with the second pin reassigned as general I/O) External RC Oscillator modes with the same pin options as the External Clock modes An internal oscillator block which contains a 16 MHz HFINTOSC oscillator and a 31 kHz LFINTOSC oscillator which together provide 8 user selectable clock frequencies, from 31 kHz to 16 MHz. This option frees the two oscillator pins for use as additional general purpose I/O. A Phase Lock Loop (PLL) frequency multiplier, available to both the high-speed crystal and internal oscillator modes, which allows clock speeds of up to 64 MHz. Used with the internal oscillator, the PLL gives users a complete selection of clock speeds, from 31 kHz to 32 MHz – all without using an external crystal or clock circuit. Besides its availability as a clock source, the internal oscillator block provides a stable reference source that gives the family additional features for robust operation: Fail-Safe Clock Monitor: This option constantly monitors the main clock source against a reference signal provided by the LFINTOSC. If a clock failure occurs, the controller is switched to the internal oscillator block, allowing for continued operation or a safe application shutdown. Two-Speed Start-up: This option allows the internal oscillator to serve as the clock source from Power-on Reset, or wake-up from Sleep mode, until the primary clock source is available.
- High-Performance RISC CPU:
- C Compiler Optimized Architecture: – Optional extended instruction set designed to optimize re-entrant code
- 256 bytes Data EEPROM
- Up to 16 Kbytes Linear Program Memory Addressing
- Up to 512 bytes Linear Data Memory Addressing
- Up to 16 MIPS Operation
- 16-bit Wide Instructions, 8-bit Wide Data Path
- Priority Levels for Interrupts
- 31-Level, Software Accessible Hardware Stack
- 8 x 8 Single-Cycle Hardware Multiplier Flexible Oscillator Structure:
- Precision 16 MHz Internal Oscillator Block: – Factory calibrated to ± 1% – Software selectable frequencies range of 31 kHz to 16 MHz – 64 MHz performance available using PLL – no external components required
- Four Crystal modes up to 64 MHz
- Two External Clock modes up to 64 MHz
- 4X Phase Lock Loop (PLL)
- Secondary Oscillator using Timer1 @ 32 kHz
- Fail-Safe Clock Monitor – Allows for safe shutdown if peripheral clock stops
- Two-Speed Oscillator Start-up Special Microcontroller Features:
- 2.3V – 5.5V Operation – PIC18F1XK22
- 1.8V-3.6V Operation – PIC18LF1XK22
- Self-reprogrammable 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): – Programmable period from 4ms to 131s
- Programmable Code Protection
- In-Circuit Serial Programming™ (ICSP™) via two pins
- In-Circuit Debug via Two Pins Extreme Low-Power Management PIC18LF1XK22 with nanoWatt XLP:
- Sleep mode: 34 nA
- Watchdog Timer: 460 nA
- Timer1 Oscillator: 650 nA @ 32 kHz Analog Features:
- Analog-to-Digital Converter (ADC) module – 10-bit resolution, 12 channels – Auto acquisition capability – Conversion available during Sleep
- Analog Comparator module: – Two rail-to-rail analog comparators – Independent input multiplexing – Inputs and outputs externally accessible
- Voltage Reference module: – Programmable (% of VDD), 16 steps – Two 16-level voltage ranges using VREF pins – Programmable Fixed Voltage Reference (FVR), 3 levels
- Peripheral Highlights:
- 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 – Three external interrupt pins
- Four Timer modules: – 3 16-bit timers/counters with prescaler – 1 8-bit timer/counter with 8-bit period register, prescaler and postscaler – Dedicated, low-power Timer1 oscillator
- Enhanced Capture/Compare/PWM (ECCP) module: – One, two or four PWM outputs – Selectable polarity – Programmable dead time – Auto-shutdown and Auto-restart – PWM output steering control
- Master Synchronous Serial Port (MSSP) module – 3-wire SPI (supports all 4 SPI modes) – I2C™ Master and Slave modes (Slave mode address masking)
- Enhanced Universal Synchronous Asynchronous Receiver Transmitter module (EUSART) – Supports RS-232, RS-485 and LIN 2.0 – Auto-Baud Detect – Auto Wake-up on Break
- SR Latch (555 Timer) module with: – Configurable inputs and outputs – Supports mTouch™ capacitive sensing applications