Document
PIC24F16KL402 FAMILY
Low-Power, Low-Cost, General Purpose 16-Bit Flash Microcontrollers with XLP Technology
Power Management Modes:
• Run – CPU, Flash, SRAM and Peripherals On • Doze – CPU Clock Runs Slower than Peripherals • Idle – CPU Off, SRAM and Peripherals On • Sleep – CPU, Flash and Peripherals Off and SRAM On • Low-Power Consumption:
- Run mode currents of 150 µA/MHz typical at 1.8V - Idle mode currents under 80 µA/MHz at 1.8V - Sleep mode currents as low as 30 nA at +25°C - Watchdog Timer as low as 210 nA at +25°C
High-Performance CPU:
• Modified Harvard Architecture • Up to 16 MIPS Operation @ 32 MHz • 8 MHz Internal Oscillator:
- 4x PLL option - Multiple divide options • 17-Bit x 17-Bit Single-Cycle Hardware Fractional/integer Multiplier • 32-Bit by 16-Bit Hardware Divider • 16 x 16-Bit Working Register Array • C Compiler Optimized Instruction Set Architecture (ISA): - 76 base instructions - Flexible addressing modes • Linear Program Memory Addressing • Linear Data Memory Addressing • Two Address Generation Units (AGU) for Separate Read and Write Addressing of Data Memory
Memory
Peripheral Features:
• High-Current Sink/Source (18 mA/18 mA) on All I/O Pins
• Configurable Open-Drain Outputs on Digital I/O Pins • Up to Three External Interrupt Sources • Two 16-Bit Timer/Counters with Selectable Clock
Sources • Up to Two 8-Bit Timers/Counters with Programmable
Prescalers • Two Capture/Compare/PWM (CCP) modules:
- Modules automatically configure and drive I/O - 16-bit Capture with max. resolution 40 ns - 16-bit Compare with max. resolution 83.3 ns - 1-bit to 10-bit PWM resolution • Up to One Enhanced CCP module: - Backward compatible with CCP - 1, 2 or 4 PWM outputs - Programmable dead time - Auto-shutdown on external event • Up to Two Master Synchronous Serial Port modules (MSSPs) with Two Modes of Operation: - 3-wire SPI (all four modes) - I2C™ Master, Multi-Master and Slave modes and
7-Bit/10-Bit Addressing • Up to Two UART modules:
- Supports RS-485, RS-232 and LIN/J2602 - On-chip hardware encoder/decoder for IrDA® - Auto-wake-up on Start bit - Auto-Baud Detect (ABD) - Two-byte transmit and receive FIFO buffers
Peripherals
10-Bit A/D (ch) Comparators
8/16-Bit Timers CCP/ECCP MSSP UART w/IrDA® Ultra Low-Power
Wake-up
Device
Pins
Flash Program (bytes)
Data (bytes)
Data EEPROM
(bytes)
PIC24F16KL402 PIC24F08KL402 PIC24F16KL401 PIC24F08KL401 PIC24F08KL302 PIC24F08KL301 PIC24F08KL201 PIC24F08KL200 PIC24F04KL101 PIC24F04KL100
28 28 20 20 28 20 20 14 20 14
16K 8K 16K 8K 8K 8K 8K 8K 4K 4K
1024 1024 1024 1024 1024 1024 512 512 512 512
512 12 2 2/2 2/1 2 512 12 2 2/2 2/1 2 512 12 2 2/2 2/1 2 512 12 2 2/2 2/1 2 256 — 2 2/2 2/1 2 256 — 2 2/2 2/1 2 — 12 1 1/2 2/0 1 — 7 1 1/2 2/0 1 — — 1 1/2 2/0 1 — — 1 1/2 2/0 1
2Y 2Y 2Y 2Y 2Y 2Y 1Y 1Y 1Y 1Y
2011-2013 Microchip Technology Inc.
DS30001037C-page 1
PIC24F16KL402 FAMILY
Analog Features:
• 10-Bit, up to 12-Channel Analog-to-Digital (A/D) Converter: - 500 ksps conversion rate - Conversion available during Sleep and Idle
• Dual Rail-to-Rail Analog Comparators with Programmable Input/Output Configuration
• On-Chip Voltage Reference
Special Microcontroller Features:
• Operating Voltage Range of 1.8V to 3.6V • 10,000 Erase/Write Cycle Endurance Flash Program
Memory, Typical • 100,000 Erase/Write Cycle Endurance Data
EEPROM, Typical • Flash and Data EEPROM Data Retention:
40 Years Minimum • Self-Programmable under Software Control • Programmable Reference Clock Output
• Fail-Safe Clock Monitor (FSCM) Operation:
- Detects clock failure and switches to on-chip, Low-Power RC (LPRC) oscillator
• Power-on Reset (POR), Power-up Timer (PWRT) and Oscillator Start-up Timer (OST)
• Flexible Watchdog Timer (WDT): - Uses its own Low-Power RC oscillator
- Windowed operating modes
- Programmable period of 2 ms to 131s • In-Circuit Serial Programming™ (ICSP™) and
In-Circuit Emulation (ICE) via 2 Pins • Programmable High/Low-Voltage Detect (HLVD)
• Programmable Brown-out Reset (BOR):
- Configurable for software controlled operation and shutdown in Sleep mode
- Selectable trip points (1.8V, 2.7V and 3.0V)
- Low-power 2.0V POR re-arm
DS30001037C-page 2
2011-2013 Microchip Technology Inc.
PIC24F16KL402 FAMILY
Pin Diagrams: PIC24FXXKL302/402
28-Pin SPDIP/SSOP/SOIC(1)
MCLR/VPP/RA5 VREF+/CVREF+/AN0/SDA2/CN2/RA0
CVREF-/VREF-/AN1/CN3/RA1 PGED1/AN2/ULPWU/C1IND/C2INB/U2TX/CN4/RB0
PGEC1/AN3/C1INC/C2INA/U2RX/CN5/RB1 AN4/C1INB/C2IND/T3G/U1RX/CN6/RB2 C1INA/C2INC/SCL2/CN7/RB3 VSS OSCI/AN13/CLKI/CN30/RA2 OSCO/AN14/CLKO/CN29/RA3 SOSCI/AN15/U2RTS/CN1/RB4 SOSCO/SCLKI/U2CTS/CN0/RA4 VDD PGED3/ASDA1(2)/SCK2/CN27/RB5
1
2
3 4 5
6 7 8
9 10 11 12 13 14
PIC24FXXKL302(2) PIC24FXXKL402
28 VDD 27 VSS 26 AN9/T3CK/REFO/SS1/CN11/RB15 25 CVREF/AN10/C1OUT/FLT0/INT1/CN12/RB14 24 AN11/SDO1/CN13/RB13 23 AN12/HLVDIN/SS2/CCP2/CN14/RB12 22 PGEC2/SCK1/P1C/CN15/RB11 21 PGED2/SDI1/P1B/CN16/RB10 20 C2OUT/CCP1/P1A/INT2/CN8/RA6 19 SDI2/CCP3/CN9/RA7 18 SDA1/T1CK/U1RTS/P1D/CN21/RB9 17 SCL1/U1CTS/CN22/RB8 .