PIC18(L)F2X/45K50 28/40/44-Pin, Low-Power, High-Performance Microcontrollers with XLP Technology Digital-to-Analog Converter (DAC) module: Universal Serial Bus Features: - Fixed Voltage Reference (FVR) with 1.024V, USB V2.0 Compliant 2.048V and 4.096V output levels Crystal-less Full Speed (12 Mb/s) and Low-Speed - 5-bit rail-to-rail resistive DAC with positive Operation (1.5 Mb/s) and negative reference selection Supports Control, Interrupt, Isochronous and Bulk High/Low-Voltage Detect module Transfers Charge Time Measurement Unit (CTMU): Supports up to 32 Endpoints (16 Bidirectional) - Supports capacitive touch sensing for touch 1 Kbyte Dual Access RAM for USB screens and capacitive switches On-Chip USB Transceiver Enhanced USART module: - Supports RS-485, RS-232 and LIN/J2602 Flexible Oscillator Structure: - Auto-wake-up on Start bit 3x and 4xPLL Clock Multipliers - Auto-Baud Detect Two External Clock modes, Up to 48 MHz (12 Extreme Low-Power Management with MIPS) XLP: Internal 31 kHz Oscillator Internal Oscillator, 31 kHz to 16 MHz Sleep mode: 20 nA, typical - Factory calibrated to 1% Watchdog Timer: 300 nA, typical - Self-tune to 0.20% max. from USB or Timer1 Oscillator: 800 nA 32 kHz secondary oscillator Peripheral Module Disable Secondary Oscillator using Timer1 32 kHz Special Microcontroller Features: Fail-Safe Clock Monitor: - Allows for safe shutdown if any clock stops Low-Power, High-Speed CMOS Flash Technology C Compiler Optimized Architecture for Re-Entrant Peripheral Highlights: Code Power Management Features: Up to 33 I/O pins plus 3 Input-Only Pins: - Run: CPU on, peripherals on, SRAM on - High-current Sink/Source 25 mA/25 mA - Idle: CPU off, peripherals on, SRAM on - Three programmable external interrupts - Sleep: CPU off, peripherals off, SRAM on - 11 programmable interrupts-on-change Priority Levels for Interrupts - Nine programmable weak pull-ups Self-Programmable under Software Control - Programmable slew rate 8 x 8 Single-Cycle Hardware Multiplier SR Latch Extended Watchdog Timer (WDT): Enhanced Capture/Compare/PWM (ECCP) - Programmable period from 4 ms to 131s module: Single-Supply In-Circuit Serial Programming - One, two or four PWM outputs (ICSP) via Two Pins - Selectable polarity In-Circuit Debug (ICD) with Three Breakpoints via - Programmable dead time Two Pins - Auto-shutdown and auto-restart Optional dedicated ICD/ICSP Port (44-pin TQFP - Pulse steering control Package Only) Capture/Compare/PWM (CCP) module Wide Operating Voltage Range: Master Synchronous Serial Port (MSSP) module - F devices: 2.3V to 5.5V 2 Supporting 3-Wire SPI (all four modes) and I C - LF devices: 1.8V to 3.6V Master and Slave modes Flash Program Memory of 10,000 Erase/Write Two Analog Comparators with Input Multiplexing Cycles Minimum and 20-year Data Retention 10-Bit Analog-to-Digital (A/D) Converter module: - Up to 25 input channels - Auto-acquisition capability - Conversion available during Sleep 2012-2014 Microchip Technology Inc. DS30000684B-page 1PIC18(L)F2X/45K50 PIC18(L)F2X/45K50 Family Types Program Memory Data Memory Data Device Pins I/O SRAM Flash Single-Word EEPROM (bytes) Instructions (bytes) (bytes) PIC18(L)F45K50 32K 16384 2048 256 40/44 36 25-ch 2 1/1 Yes Yes 1 1 2/2 Yes PIC18(L)F25K50 32K 16384 2048 256 28 25 14-ch 2 1/1 Yes Yes 1 1 2/2 Yes PIC18(L)F24K50 16K 8192 2048 256 28 25 14-ch 2 1/1 Yes Yes 1 1 2/2 Yes Pin Diagrams FIGURE 1: 28-PIN SPDIP (300 MIL), SOIC, SSOP RB7 MCLR/VPP/RE3 1 28 2 27 RB6 RA0 26 RB5 RA1 3 RA2 4 25 RB4 RB3 RA3 5 24 RA4 6 23 RB2 22 RB1 RA5 7 8 21 RB0 VSS RA7 9 20 VDD VSS RA6 10 19 RC0 11 18 RC7 17 RC6 RC1 12 16 D+ RC2 13 D- VUSB3V3 14 15 FIGURE 2: 28-PIN QFN 1 RA2 21 RB3 RA3 2 20 RB2 RA4 3 19 RB1 PIC18(L)F2XK50 RA5 4 18 RB0 VSS 5 17 VDD RA7 6 16 VSS RA6 7 15 RC7 Note: For the QFN package, it is recommended that the bottom pad be connected to VSS. DS30000684B-page 2 2012-2014 Microchip Technology Inc. RC0 8 28 RA1 9 RC1 27 RA0 10 RC2 26 MCLR/VPP/RE3 11 VUSB3V3 RB7 25 PIC18(L)F2XK50 12 D- RB6 24 D+ 13 RB5 23 14 RC6 RB4 22 10-Bit A/D Channels Comparators CCP/ ECCP BOR/LVD CTMU MSSP EUSART Timers 8-bit/16-bit USB 2.0