PIC16(L)F18325/18345 Full-Featured, Low Pin Count Microcontrollers with XLP Description PIC16(L)F18325/18345 microcontrollers feature Analog, Core Independent Peripherals and Communication Peripherals, combined with eXtreme Low Power (XLP) for a wide range of general purpose and low-power applications. The Peripheral Pin Select (PPS) functionality enables pin mapping when using the digital peripherals (CLC, CWG, CCP, PWM and communications) to add flexibility to the application design. Core Features Power-Saving Functionality C Compiler Optimized RISC Architecture IDLE mode: ability to put the CPU core to Sleep Only 49 Instructions while internal peripherals continue operating from Operating Speed: the system clock - DC 32 MHz clock input DOZE mode: ability to run the CPU core slower - 125 ns minimum instruction cycle than the system clock used by the internal periph- Interrupt Capability erals 16-Level Deep Hardware Stack SLEEP mode: Lowest Power Consumption Up to Four 8-bit Timers Peripheral Module Disable (PMD): peripheral Up to Three 16-bit Timers power disable hardware module to minimize Low-Current Power-on Reset (POR) power consumption of unused peripherals Configurable Power-up Timer (PWRTE) Brown-out Reset (BOR) with Fast Recovery Digital Peripherals Low-Power BOR (LPBOR) Option Configurable Logic Cell (CLC): Extended Watchdog Timer (WDT) with Dedicated - Four CLCs On-Chip Oscillator for Reliable Operation - Integrated combinational and sequential logic Programmable Code Protection Complementary Waveform Generator (CWG): - Two CWGs Memory - Rising and falling edge dead-band control 14 Kbytes Program Flash Memory - Full-bridge, half-bridge, 1-channel drive 1 KB Data SRAM Memory - Multiple signal sources 256B of EEPROM Capture/Compare/PWM (CCP) modules: Direct, Indirect and Relative Addressing Modes - Four CCPs - 16-bit resolution for Capture/Compare modes Operating Characteristics - 10-bit resolution for PWM mode Pulse-Width Modulators (PWM) Operating Voltage Range: -Two 10-bit PWMs - 1.8V to 3.6V (PIC16LF18325/18345) Numerically Controlled Oscillator (NCO): - 2.3V to 5.5V (PIC16F18325/18345) - Precision linear frequency generator ( 50% Temperature Range: duty cycle) with 0.0001% step size of source - Industrial: -40C to 85C input clock - Extended: -40C to 125C - Input Clock: 0 Hz < F < 32 MHz NCO 20 - Resolution: F /2 NCO eXtreme Low-Power (XLP) Features Serial Communications: Sleep mode: 40 nA 1.8V, typical - EUSART Watchdog Timer: 250 nA 1.8V, typical - RS-232, RS-485, LIN compatible Secondary Oscillator: 300 nA 32 kHz - Auto-Baud Detect, auto-wake-up on start Operating Current: - Master Synchronous Serial Port (MSSP) -8 A 32 kHz, 1.8V, typical - SPI 2 -37 A/MHz 1.8V, typical C, SMBus, PMBus compatible -I Data Signal Modulator (DSM): - Modulates a carrier signal with digital data to create custom carrier synchronized output waveforms 2015 Microchip Technology Inc. Preliminary DS40001795B-page 1PIC16(L)F18325/18345 Up to 18 I/O Pins: Flexible Oscillator Structure - Individually programmable pull-ups High-Precision Internal Oscillator: - Slew rate control - Software-selectable frequency range up to 32 - Interrupt-on-change with edge-select MHz - Input level selection control (ST or TTL) - 2% at nominal 4 MHz calibration point - Digital open-drain enable 4x PLL with External Sources Peripheral Pin Select (PPS): Low-Power Internal 31 kHz Oscillator - I/O pin remapping of digital peripherals (LFINTOSC) Timer modules: External Low-Power 32 kHz Crystal Oscillator -Timer0: (SOSC) - 8/16-bit timer/counter External Oscillator Block with: - Synchronous or asynchronous operation - Three Crystal/Resonator modes up to - Programmable prescaler/postscaler 20 MHz - Time base for capture/compare function - Timer1/3/5 with gate control: - Three External Clock modes up to 20 MHz - 16-bit timer/counter - Fail-Safe Clock Monitor - Programmable internal or external clock - Allows for safe shutdown if peripheral clock sources stops - Multiple gate sources - Oscillator Start-up Timer (OST) - Multiple gate modes - Ensures stability of crystal oscillator - Time base for capture/compare function sources - Timer2/4/6: - 8-bit timers - Programmable prescaler/postscaler - Time base for PWM function Analog Peripherals 10-bit Analog-to-Digital Converter (ADC): - 17 external channels - Conversion available during Sleep Comparator: - Two comparators - Fixed Voltage Reference at non-inverting input(s) - Comparator outputs externally accessible 5-bit Digital-to-Analog Converter (DAC): - 5-bit resolution, rail-to-rail - Positive Reference Selection - Unbuffered I/O pin output - Internal connections to ADCs and comparators Voltage Reference: - Fixed Voltage Reference with 1.024V, 2.048V and 4.096V output levels DS40001795B-page 2 Preliminary 2015 Microchip Technology Inc.