PIC16(L)F1704/8 14/20-Pin 8-Bit Advanced Analog Flash Microcontrollers High-Performance RISC CPU Special Microcontroller Features C Compiler Optimized Architecture Operating Voltage Range: Only 49 Instructions - 1.8V-3.6V (PIC16LF1704/8) Up to 14 Kbytes Linear Program Memory - 2.3V-5.5V (PIC16F1704/8) Addressing Temperature Range: Operating Speed: - Industrial: -40C to 85C - DC 32 MHz - Extended: -40C to 125C - DC 125 ns instruction cycle Power-on Reset (POR) Interrupt Capability with Automatic Context Low Power Brown-Out Reset (LPBOR) Saving Extended Watch-Dog Timer (WDT): 16-Level Deep Hardware Stack with Optional - Programmable period from 1 ms to 256s Overflow/Underflow Reset Programmable Code Protection Direct, Indirect and Relative Addressing modes: In-Circuit Serial Programming (ICSP) via - Two full 16-bit File Select Registers (FSRs) Two Pins - FSRs can read program and data memory In-Circuit Debug (ICD) via Two Pins High-Endurance Flash Data Memory (HEF) Enhanced Low-Voltage Programming (LVP) - 128 bytes of nonvolatile data storage Power-Saving Sleep mode - 100k erase/write cycles Digital Peripheral Features Flexible Oscillator Structure Up to 17 I/O Pins and one Input-only Pin: 16 MHz Internal Oscillator Block: - High current sink/source for LED drivers - Accurate to 1%, typical - Individually programmable weak pull-ups - Software selectable frequency range from - Interrupt-on-change pin option with edge selectable option 16 MHz to 250 kHz - PLL multiplier to 32 MHz Timer0: 8-Bit Timer/Counter with 8-Bit 31 kHz Low-Power Internal Oscillator Programmable Prescaler External Oscillator Block with: Enhanced Timer1: - Three crystal/resonator modes up to 20 MHz - 16-bit timer/counter with prescaler - Three external clock modes up to 20 MHz - External Gate Input mode Fail-Safe Clock Monitor: - Dedicated low-power 32 kHz oscillator driver - Allows for safe shutdown if peripheral clock Timer2: stops - Up to three (TMR2/4/6) Two-Speed Oscillator Start-up - 8-Bit Timer/Counter Oscillator Start-up Timer (OST) - 8-Bit Period Register - Prescaler and Postscaler Capture, Compare, PWM (CCP) Module eXtreme Low-Power (XLP) Features Master Synchronous Serial Port (SSP) with SPI 2 Sleep mode: 50 nA 1.8V, typical and I C with: Watchdog Timer: 500 nA 1.8V, typical - 7-bit address masking TM - SMBus/PMBus compatibility Secondary Oscillator: 500 nA 32 kHz Enhanced Universal Synchronous Asynchronous Operating Current: Receiver Transmitter (EUSART): - 8 A 32 kHz, 1.8V, typical - RS-232, RS-485 and LIN compatible - 32 A/MHz 1.8V, typical - Auto-Baud Detect - Auto-wake-up on Start 2013-2015 Microchip Technology Inc. DS40001715D-page 1PIC16(L)F1704/8 Digital Peripheral Features (Continued) Analog Peripheral Features Complementary Output Generator (COG): Operational Amplifiers: - Push-Pull, Full Bridge, and Steering modes - Up to two configurable op amps - Dedicated Rise/Fall Input Triggers - Selectable internal and external channels - Dedicated Deadtime Delay Counters - High/Low selectable Gain Bandwidth Product - Dedicated Phase Delay Counters Two High-Speed Comparators: - Dedicated Blanking Delay Counters - 60 ns response time - Concurrent Auto-Shutdown Selection - Low-power/High-power mode Two Pulse Width Modulation (PWM) modules: - Comparator outputs externally accessible - 10-bit Duty-Cycle Control - Software hysteresis enable Three Configurable Logic Cell (CLC) modules: Analog-to-Digital Converter (ADC) module - Generate a selected function of up to four - 10-bit resolution, 12 channels inputs - Auto conversion start capability - Combinational and State Logic - Conversion available during Sleep - External or Internal input/output pins 8-Bit Digital-to-Analog Converter (DAC): - Operation in Sleep - Output available externally Peripheral Pin Select (PPS): - Positive and negative reference selection - Digital outputs mapped to any GPIO pin - Internal connections to comparators, - Digital inputs from any GPIO pin op amps, Fixed Voltage Reference (FVR) - CLC input multiplexing and ADC Zero-Cross Detection Circuit: - Constant Voltage Output - Current Source/Sink - Interrupt on Edge Detect Voltage Reference module: - Fixed Voltage Reference (FVR) with 1.024V, 2.048V and 4.096V output levels PIC16(L)F170x Family Types Device PIC16(L)F1703 (3) 2048 256 128 12 8 0 0 2 1 2/1 2 0 0 0 1 0 Y I/E Y PIC16(L)F1704 (1) 4096 512 128 12 8 1 2 2 1 4/1 221113 Y I/E Y PIC16(L)F1705 (2) 8192 1024 128 12 8 1 2 2 1 4/1 2 2 1 1 1 3 Y I/E Y PIC16(L)F1707 (3) 2048 256 128 18 12 0 0 2 1 2/1 2 0 0 0 1 0 Y I/E Y PIC16(L)F1708 (1) 4096 512 128 18 12 1 2 2 1 4/1 221113 Y I/E Y PIC16(L)F1709 (2) 8192 1024 128 18 12 1 2 2 1 4/1 2 2 1 1 1 3 Y I/E Y Note 1: Debugging Methods: (I) Integrated on Chip (H) using Debug Header E using Emulation Header. 2: One pin is input-only. Data Sheet Index: (Unshaded devices are described in this document.) 1: DS40001715 PIC16(L)F1704/8 Data Sheet, 14/20-Pin Flash, 8-bit Microcontrollers. 2: DS40001729 PIC16(L)F1705/9 Data Sheet, 14/20-Pin Flash, 8-bit Microcontrollers. 3: DS40001722 PIC16(L)F1703/7 Data Sheet, 14/20-Pin Flash, 8-bit Microcontrollers Note: For other small form-factor package availability and marking information, please visit