PIC16(L)F18313/18323 Full-Featured, Low Pin Count Microcontrollers with XLP Description PIC16(L)F18313/18323 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 48 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 Power-up Timer (PWRT) Brown-out Reset (BOR) Digital Peripherals Low-Power BOR (LPBOR) Option Configurable Logic Cell (CLC): Extended Watchdog Timer (WDT) with Dedicated - Two CLCs On-Chip Oscillator for Reliable Operation - Integrated combinational and sequential logic Programmable Code Protection Complementary Waveform Generator (CWG): - Rising and falling edge dead-band control Memory - Full-bridge, half-bridge, 1-channel drive 3.5 Kbytes Program Flash Memory - Multiple signal sources 256B Data SRAM Memory Capture/Compare/PWM (CCP) modules: 256B of EEPROM -Two CCPs Direct, Indirect and Relative Addressing Modes - 16-bit resolution for Capture/Compare modes - 10-bit resolution for PWM mode Operating Characteristics Pulse-Width Modulators (PWM) - Two 10-bit PWMs Operating Voltage Range: Numerically Controlled Oscillator (NCO): - 1.8V to 3.6V (PIC16LF18313/18323) - Precision linear frequency generator ( 50% - 2.3V to 5.5V (PIC16F18313/18323) duty cycle) with 0.0001% step size of source Temperature Range: input clock - Industrial: -40C to 85C - Input Clock: 0 Hz < F < 32 MHz NCO - Extended: -40C to 125C 20 - Resolution: F /2 NCO Serial Communications: eXtreme Low-Power (XLP) Features - EUSART Sleep mode: 40 nA 1.8V, typical - RS-232, RS-485, LIN compatible Watchdog Timer: 250 nA 1.8V, typical - Auto-Baud Detect, auto-wake-up on start Secondary Oscillator: 300 nA 32 kHz - Master Synchronous Serial Port (MSSP) Operating Current: - SPI 2 -8 A 32 kHz, 1.8V, typical -I C, SMBus, PMBus compatible - 37 A/MHz 1.8V, typical Data Signal Modulator (DSM): - Modulates a carrier signal with digital data to create custom carrier synchronized output waveforms 2015-2017 Microchip Technology Inc. DS40001799D-page 1PIC16(L)F18313/18323 Up to 12 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 - Time base for capture/compare function 20 MHz - Timer1 with gate control: - Three External Clock modes up to 32 MHz - 16-bit timer/counter - Fail-Safe Clock Monitor - Programmable internal or external clock - Detects clock source failure sources - Oscillator Start-up Timer (OST) - Multiple gate sources - Ensures stability of crystal oscillator - Multiple gate modes sources - Time base for capture/compare function - Timer2: - 8-bit timers - Programmable prescaler/postscaler - Time base for PWM function Analog Peripherals 10-bit Analog-to-Digital Converter (ADC): - Up to 11 external channels - Conversion available during Sleep Comparator: - Up to 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 DS40001799D-page 2 2015-2017 Microchip Technology Inc.