●DEVICE OVERVIEW
●This document contains device-specific information for the following devices:
●• PIC18F2331 • PIC18LF2331
●• PIC18F2431 • PIC18LF2431
●• PIC18F4331 • PIC18LF4331
●• PIC18F4431 • PIC18LF4431
●This family offers the advantages of all PIC18 microcontrollers – namely, high computational performance at an economical price, with the addition of high-endurance enhanced Flash program memory and a high-speed 10-bit A/D Converter. On top of these features, the PIC18F2331/2431/4331/4431 family introduces design enhancements that make these microcontrollers a logical choice for many high-performance, power control and motor control applications.
●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
●• 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
●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
●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