Description
PIC18LF13K50 offers the advantages of all PIC18 microcontrollers – namely, high computational performance at an economical price – with the addition of high-endurance, Flash program memory. On top of these features, the PIC18F/LF1XK50 family introduces design enhancements that make these microcontrollers a logical choice for many highperformance, power sensitive applications. All of the devices in the PIC18F/LF1XK50 family incorporate a range of features that can significantly reduce power consumption during operation. Alternate Run Modes: By clocking the controller from the Timer1 source or the internal oscillator block, power consumption during code execution can be reduced by as much as 90% 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 powermanaged modes are invoked by user code during operation, allowing the user to incorporate powersaving 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 PIC18F/LF1XK50 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 48 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.
- Universal Serial Bus Features:
- USB V2.0 Compliant SIE
- Full Speed (12 Mb/s) and Low Speed (1.5 Mb/s)
- Supports Control, Interrupt, Isochronous and Bulk Transfers
- Supports up to 16 Endpoints (8 bidirectional)
- 256-byte Dual Access RAM for USB
- Input-change interrupt on D+/D- for detecting physical connection to USB host 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 768 bytes linear data memory addressing
- Priority levels for Interrupts
- 8 x 8 Single-Cycle Hardware Multiplier Flexible Oscillator Structure:
- CPU divider to run the core slower than the USB peripheral
- 16 MHz Internal Oscillator Block: – Software selectable frequencies, 31 kHz to 16 MHz – Provides a complete range of clock speeds from 31 kHz to 32 MHz when used with PLL – User tunable to compensate for frequency drift
- Four Crystal modes, up to 48 MHz
- External Clock modes, up to 48 MHz
- 4X Phase Lock Loop (PLL)
- Secondary oscillator using Timer1 at 32 kHz
- Fail-Safe Clock Monitor: – Allows for safe shutdown if primary or secondary oscillator stops
- Two-speed Oscillator Start-up Special Microcontroller Features:
- Full 5.5V Operation – PIC18F1XK50
- 1.8V-3.6V Operation – PIC18LF1XK50
- Self-programmable under Software Control
- Programmable Brown-out Reset (BOR) – With software enable option
- Extended Watchdog Timer (WDT) – Programmable period from 4ms to 131s
- Single-supply 3V In-Circuit Serial Programming™ (ICSP™) via two pins Extreme Low-Power Management PIC18LF1XK50 with nanoWatt XLP:
- Sleep mode: 24 nA
- Watchdog Timer: 450 nA
- Timer1 Oscillator: 790 nA @ 32 kHz Analog Features:
- Analog-to-Digital Converter (ADC) module: – 10-bit resolution, 9 external channels – Auto acquisition capability – Conversion available during Sleep – Internal 1.024V Fixed Voltage Reference (FVR) channel – Independent input multiplexing
- Dual Analog Comparators – Rail-to-rail operation – Independent input multiplexing
- Voltage Reference module: – Programmable (% of VDD), 16 steps – Two 16-level voltage ranges using VREF pins – Programmable Fixed Voltage Reference (FVR), 3 levels
- On-chip 3.2V LDO Regulator – (PIC18F1XK50) Peripheral Highlights:
- 14 I/O Pins plus 1 Input-only pin: – High-current sink/source 25 mA/25 mA – 7 Programmable weak pull-ups – 7 Programmable Interrupt-on-change pins – 3 programmable external interrupts – Programmable slew rate
- Enhanced Capture/Compare/PWM (ECCP) module: – One, two, three, or four PWM outputs – Selectable polarity – Programmable dead time – Auto-shutdown and Auto-restart
- Master Synchronous Serial Port (MSSP) module: – 3-wire SPI (supports all 4 modes) – I2C™ Master and Slave modes (Slave mode address masking)
- Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART) module: – Supports RS-485, RS-232 and LIN 2.0 – RS-232 operation using internal oscillator – Auto-Baud Detect – Auto-Wake-up on Break
- SR Latch mode