PIC18F2331/2431/4331/4431
28/40/44-Pin Enhanced Flash Microcontrollers with
nanoWatt Technology, High-Performance PWM and A/D
14-Bit Power Control PWM Module:
Power-Managed Modes:
• Up to 4 Channels with Complementary Outputs
• Run: CPU on, Peripherals on
• Edge or Center-Aligned Operation
• Idle: CPU off, Peripherals on
• Flexible Dead-Band Generator
• Sleep: CPU off, Peripherals off
• Hardware Fault Protection Inputs
• Ultra Low, 50 nA Input Leakage
• Simultaneous Update of Duty Cycle and Period:
- Flexible Special Event Trigger output
• Idle mode Currents Down to 5.8 A, Typical
• Sleep Current Down to 0.1 A, Typical
• Timer1 Oscillator, 1.8 A, Typical, 32 kHz, 2V
• Watchdog Timer (WDT), 2.1 A, typical
• Oscillator Two-Speed Start-up
Motion Feedback Module:
• Three Independent Input Capture Channels:
- Flexible operating modes for period and
pulse-width measurement
- Fast wake from Sleep and Idle, 1 s, typical
Peripheral Highlights:
• High-Current Sink/Source 25 mA/25 mA
• Three External Interrupts
• Two Capture/Compare/PWM (CCP) modules
• Enhanced USART module:
- Special Hall sensor interface module
- Special Event Trigger output to other modules
• Quadrature Encoder Interface:
- 2-phase inputs and one index input from
encoder
- High and low position tracking with direction
status and change of direction interrupt
- Velocity measurement
- Supports RS-485, RS-232 and LIN/J2602
- Auto-wake-up on Start bit
- Auto-Baud Detect
High-Speed, 200 ksps 10-Bit A/D Converter:
• Up to 9 Channels
• Simultaneous, Two-Channel Sampling
• Sequential Sampling: 1, 2 or 4 Selected Channels
• Auto-Conversion Capability
Special Microcontroller Features:
• 100,000 Erase/Write Cycle Enhanced Flash
Program Memory, Typical
• 1,000,000 Erase/Write Cycle Data EEPROM
Memory, Typical
• 4-Word FIFO with Selectable Interrupt Frequency
• Selectable External Conversion Triggers
• Programmable Acquisition Time
• Flash/Data EEPROM Retention: 100 Years
• Self-Programmable under Software Control
• Priority Levels for Interrupts
• 8 x 8 Single-Cycle Hardware Multiplier
• Extended Watchdog Timer (WDT):
- Programmable period from 41 ms to 131s
• Single-Supply In-Circuit Serial Programming™
(ICSP™) via Two Pins
Flexible Oscillator Structure:
• Four Crystal modes up to 40 MHz
• Two External Clock modes up to 40 MHz
• Internal Oscillator Block:
• In-Circuit Debug (ICD) via Two Pins:
- Drives PWM outputs safely when debugging
- 8 user-selectable frequencies: 31 kHz to 8 MHz
- OSCTUNE can compensate for frequency drift
• Secondary Oscillator using Timer1 @ 32 kHz
• Fail-Safe Clock Monitor:
- Allows for safe shutdown of device if clock fails
Program Memory
Data Memory
SSP
14-Bit
PWM
(ch)
10-Bit
A/D (ch)
Timers
8/16-Bit
Device
I/O
CCP
EUSART
Flash #Single-Word SRAM EEPROM
(bytes) Instructions (bytes) (bytes)
Slave
SPI
2
I C™
PIC18F2331 8192
PIC18F2431 16384
PIC18F4331 8192
PIC18F4431 16384
4096
8192
4096
8192
768
768
768
768
256
256
256
256
24
24
36
36
5
5
9
9
2
2
2
2
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
Y
6
6
8
8
1/3
1/3
1/3
1/3
2010 Microchip Technology Inc.
DS39616D-page 3