English
Language : 

PIC18F2331_07 Datasheet, PDF (3/400 Pages) Microchip Technology – 28/40/44-Pin Enhanced Flash Microcontrollers with nanoWatt Technology, High Performance PWM and A/D
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
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
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
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
Power-Managed Modes:
• Run: CPU on, Peripherals on
• Idle: CPU off, Peripherals on
• Sleep: CPU off, Peripherals off
• 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
Peripheral Highlights:
• High-Current Sink/Source 25 mA/25 mA
• Three External Interrupts
• Two Capture/Compare/PWM (CCP) modules:
- Capture is 16-bit, max. resolution 6.25 ns (TCY/16)
- Compare is 16-bit, max. resolution 100 ns (TCY)
- PWM output: PWM resolution is 1 to 10 bits
• Enhanced USART module:
- Supports RS-485, RS-232 and LIN 1.2
- Auto-wake-up on Start bit
- Auto-Baud Detect
• RS-232 Operation using Internal Oscillator Block
(no external crystal required)
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
Device
Program Memory
Data Memory
Flash #Single-Word SRAM EEPROM I/O
(bytes) Instructions (bytes) (bytes)
10-Bit
A/D (ch)
CCP
SSP
SPI
Slave EUSART
I2C™
14-Bit
PWM
(ch)
Timers
8/16-Bit
PIC18F2331
PIC18F2431
PIC18F4331
PIC18F4431
8192
16384
8192
16384
4096
8192
4096
8192
768
256 24
5
768
256 24
5
768
256 36
9
768
256 36
9
2Y
Y
2Y
Y
2Y
Y
2Y
Y
Y
Y
6
1/3
Y
Y
6
1/3
Y
Y
8
1/3
Y
Y
8
1/3
© 2007 Microchip Technology Inc.
Preliminary
DS39616C-page 1