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:
•
•
•
•
•
Up to 4 Channels with Complementary Outputs
Edge or Center-Aligned Operation
Flexible Dead-Band Generator
Hardware Fault Protection Inputs
Simultaneous Update of Duty Cycle and Period:
- Flexible Special Event Trigger output
Power-Managed Modes:
•
•
•
•
•
•
•
•
•
Run: CPU on, Peripherals on
Idle: CPU off, Peripherals on
Sleep: CPU off, Peripherals off
Ultra Low, 50 nA Input Leakage
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
- Fast wake from Sleep and Idle, 1
s,
typical
Motion Feedback Module:
• Three Independent Input Capture Channels:
- Flexible operating modes for period and
pulse-width measurement
- 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
Peripheral Highlights:
•
•
•
•
High-Current Sink/Source 25 mA/25 mA
Three External Interrupts
Two Capture/Compare/PWM (CCP) modules
Enhanced USART module:
- 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
4-Word FIFO with Selectable Interrupt Frequency
Selectable External Conversion Triggers
Programmable Acquisition Time
Special Microcontroller Features:
• 100,000 Erase/Write Cycle Enhanced Flash
Program Memory, Typical
• 1,000,000 Erase/Write Cycle Data EEPROM
Memory, Typical
• 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
• In-Circuit Debug (ICD) via Two Pins:
- Drives PWM outputs safely when debugging
Flexible Oscillator Structure:
• Four Crystal modes up to 40 MHz
• Two External Clock modes up to 40 MHz
• Internal Oscillator Block:
- 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
Device
Data Memory
I/O
SSP
10-Bit
CCP
A/D (ch)
5
5
9
9
2
2
2
2
SPI
Y
Y
Y
Y
Slave EUSART
I
2
C™
Y
Y
Y
Y
Y
Y
Y
Y
Quadrature
Encoder
Y
Y
Y
Y
Flash # Single-Word SRAM EEPROM
(bytes) Instructions (bytes) (bytes)
8192
16384
8192
16384
4096
8192
4096
8192
768
768
768
768
256
256
256
256
14-Bit
Timers
PWM
8/16-Bit
(ch)
6
6
8
8
1/3
1/3
1/3
1/3
PIC18F2331
PIC18F2431
PIC18F4331
PIC18F4431
24
24
36
36
2010 Microchip Technology Inc.
DS39616D-page 3