Description
PIC18F86J72 combines the traditional advantages of all PIC18 microcontrollers – namely, high computational performance and a rich feature set – with a versatile on-chip LCD driver and a high-performance, high-accuracy analog front end. These features make the PIC18F87J72 family a logical choice for many high-performance power and metering applications where price is a primary consideration. All of the devices in the PIC18F87J72 family incorporate a range of features that can significantly reduce power consumption during operation Alternate Run Modes: By clocking the controller from the Timer1 source or the internal RC oscillator, power consumption during code execution can be reduced by as much as 90% On-the-Fly Mode Switching: The power-managed modes are invoked by user code during operation, allowing the user to incorporate power-saving ideas into their application’s software design. All of the devices in the PIC18F87J72 family offer six different oscillator options, allowing users a range of choices in developing application hardware. These include: Two Crystal modes using crystals or ceramic resonators. Two External Clock modes offering the option of a divide-by-4 clock output. A Phase Lock Loop (PLL) frequency multiplier, available to the external oscillator modes which allows clock speeds of up to 40 MHz. PLL can also be used with the internal oscillator. An internal oscillator block which provides an 8 MHz clock (±2% accuracy) and an INTRC source (approximately 31 kHz, stable over temperature and VDD), as well as a range of six user-selectable clock frequencies, between 125 kHz to 4 MHz, for a total of eight clock frequencies. This option frees the two oscillator pins for use as additional general purpose I/O The internal oscillator block provides a stable reference source that gives the family additional features for robust operation: Fail-Safe Clock Monitor: This option constantly monitors the main clock source against a reference signal provided by the internal oscillator. If a clock failure occurs, the controller is switched to the internal oscillator, allowing for continued low-speed operation or a safe application shutdown Two-Speed Start-up: This option allows the internal oscillator to serve as the clock source from Power-on Reset, or wake-up from Sleep mode, until the primary clock source is available.
- Analog Features:
- Dual-Channel, 24-Bit Analog Front End (AFE): – 90 dB SINAD, -101 dBc THD (to 35th harmonic), 103 dB SFDR for each channel – 10 ppm INL – Differential voltage input pins – Low drift internal voltage reference (12 ppm/°C) – Programmable data rate to 64 ksps – High-gain PGA on each channel (up to 32 V/V) – Phase delay compensation between channels (1 µs resolution)
- 12-Bit, 12-Channel SAR A/D Converter: – Auto-acquisition – Conversion available during Sleep
- Two Analog Comparators
- Programmable Reference Voltage for Comparators
- Charge Time Measurement Unit (CTMU): – Capacitance measurement – Time measurement with 1 ns typical resolution – Temperature sensing LCD Driver and Keypad Interface Features:
- Direct LCD Panel Drive Capability: – Can drive LCD panel while in Sleep mode – Wake-up from interrupt
- Up to 33 Segments and 132 Pixels: Software Selectable
- Programmable LCD Timing module: – Multiple LCD timing sources available – Up to four commons: static, 1/2, 1/3 or 1/4 multiplex – Static, 1/2 or 1/3 bias configuration
- On-Chip LCD Boost Voltage Regulator for Contrast Control
- CTMU for Capacitive Touch Sensing
- ADC for Resistive Touch Sensing Flexible Oscillator Structure:
- External Crystal and Clock modes, with operation up to 48 MHz
- 4x Phase Lock Loop (PLL)
- Internal Oscillator Block with PLL: – Eight user-selectable frequencies from 31.25 kHz to 8 MHz
- Secondary Oscillator using Timer1 at 32 kHz
- Fail-Safe Clock Monitor (FSCM): – Allows for safe shutdown if peripheral clock fails Low-Power Features:
- Power-Managed modes: – Run: CPU on, peripherals on – Idle: CPU off, peripherals on – Sleep: CPU off, peripherals off
- Two-Speed Oscillator Start-up Peripheral Highlights:
- High-Current Sink/Source 25 mA/25 mA (PORTB and PORTC)
- Up to Four External Interrupts
- Four 8-Bit/16-Bit Timer/Counter modules
- Two Capture/Compare/PWM (CCP) modules
- Master Synchronous Serial Port (MSSP) module with Two Modes of Operation: – 3-wire/4-wire SPI (supports all four SPI modes) – I2C™ Master and Slave mode
- One Addressable USART module
- One Enhanced Addressable USART module: – LIN/J2602 support – Auto-wake-up on Start bit and Break character – Auto-Baud Detect (ABD)
- Hardware Real-Time Clock and Calendar (RTCC) with Clock, Calendar and Alarm Functions Special Microcontroller Features:
- 10,000 Erase/Write Cycle Flash Program Memory, Typical
- Flash Retention 20 Years, Minimum
- Self-Programmable under Software Control
- Word Write Capability for Flash Program Memory for Data EEPROM Emulators
- Priority Levels for Interrupts
- 8 x 8 Single-Cycle Hardware Multiplier
- Extended Watchdog Timer (WDT): – Programmable period from 4 ms to 131s
- Selectable Open-Drain Configuration for Serial Communication and CCP pins for Driving Outputs up to 5V
- In-Circuit Serial Programming™ (ICSP™) via Two Pins
- In-Circuit Debug via Two Pins
- Operating Voltage Range: 4.5V to 5.5V (???ADC), 2.0V to 3.6V (digital and SAR ADC)
- 5.5V Tolerant Input (digital pins only)
- On-Chip 2.5V Regulator Target Applications:
- Energy Metering
- Power Measurement and Monitoring
- Portable Instrumentation
- Medical Monitoring