PIC16F1788/9 28-Pin 8-Bit Advanced Analog Flash Microcontroller High-Performance RISC CPU: Extreme Low-Power Management PIC16LF1788/9 with XLP: Only 49 Instructions Sleep mode: 50 nA 1.8V, typical Operating Speed: Watchdog Timer: 500 nA 1.8V, typical - DC 32 MHz clock input Timer1 Oscillator: 500 nA 32 kHz - DC 125 ns instruction cycle Operating Current: Interrupt Capability with Automatic Context Saving -8 A 32 kHz, 1.8V, typical 16-Level Deep Hardware Stack with optional -32 A/MHz 1.8V, typical Overflow/Underflow Reset Analog Peripheral Features: Direct, Indirect and Relative Addressing modes: Analog-to-Digital Converter (ADC): Two full 16-bit File Select Registers (FSRs) - Fully differential 12-bit converter - FSRs can read program and data memory - Up to 75 ksps conversion rate Memory Features: - 11 single-ended channels - 5 differential channels Up to 16 KW Flash Program Memory: - Positive and negative reference selection - Self-programmable under software control One 8-Bit and Three 5-Bit Digital-to-Analog - Programmable code protection Converters (DAC): - Programmable write protection - Output available externally 256 Bytes of Data EEPROM - Positive and negative reference selection Up to 2048 Bytes of RAM - Internal connections to comparators, op amps, Fixed Voltage Reference (FVR) and ADC High-Performance PWM Controller: Four High-Speed Comparators: Four Programmable Switch Mode Controller - 50 ns response time VDD = 5V (PSMC) modules: - Rail-to-rail inputs - Digital and/or analog feedback control of - Software selectable hysteresis PWM frequency and pulse begin/end times - Internal connection to op amps, FVR and DAC - 16-bit Period, Duty Cycle and Phase Up to Three Operational Amplifiers: - 16 ns clock resolution - Rail-to-rail inputs/outputs - Supports Single PWM, Complementary, Push-Pull and 3-phase modes of operation - High/Low selectable Gain Bandwidth Product - Dead-band control with 8-bit counter - Internal connection to DAC and FVR - Auto-shutdown and restart Fixed Voltage Reference (FVR): - Leading and falling edge blanking - 1.024V, 2.048V and 4.096V output levels -Burst mode - Internal connection to ADC, comparators and DAC I/O Features: Up to 36 I/O Pins and 1 Input-only Pin: High Current Sink/Source for LED Drivers Individually Programmable Interrupt-on-Change Pins Individually Programmable Weak Pull-Ups Individual Input Level Selection Individually Programmable Slew Rate Control Individually Programmable Open-Drain Outputs 2013-2015 Microchip Technology Inc. DS40001675C-page 1PIC16(L)F1788/9 Digital Peripheral Features: General Microcontroller Features: Timer0: 8-Bit Timer/Counter with 8-Bit Power-Saving Sleep mode Programmable Prescaler Power-on Reset (POR) Enhanced Timer1: Power-up Timer (PWRT) - 16-bit timer/counter with prescaler Oscillator Start-up Timer (OST) - External Gate Input mode Brown-out Reset (BOR) with Selectable Trip Point - Dedicated low-power 32 kHz oscillator driver Extended Watchdog Timer (WDT) Timer2: 8-Bit Timer/Counter with 8-Bit Period TM TM In-Circuit Serial Programming (ICSP ) Register, Prescaler and Postscaler In-Circuit Debug (ICD) Two Capture/Compare/PWM modules (CCP): Enhanced Low-Voltage Programming (LVP) - 16-bit capture, maximum resolution 12.5 ns Operating Voltage Range: - 16-bit compare, max resolution 31.25 ns - 1.8V to 3.6V (PIC16LF1788/9) - 10-bit PWM, max frequency 32 kHz - 2.3V to 5.5V (PIC16F1788/9) Master Synchronous Serial Port (SSP) with SPI 2 and I C with: - 7-bit address masking TM - SMBus/PMBus compatibility Enhanced Universal Synchronous Asynchronous Receiver Transmitter (EUSART): - RS-232, RS-485 and LIN compatible - Auto-baud detect - Auto-wake-up on start Oscillator Features: Operate up to 32 MHz from Precision Internal Oscillator: - Factory calibrated to 1%, typical - Software selectable frequency range from 32 MHz to 31 kHz 31 kHz Low-Power Internal Oscillator 32.768 kHz Timer1 Oscillator: - Available as system clock - Low-power RTC External Oscillator Block with: - 4 crystal/resonator modes up to 32 MHz using 4x PLL - 3 external clock modes up to 32 MHz 4x Phase-Locked Loop (PLL) Fail-Safe Clock Monitor: - Detect and recover from external oscillator failure Two-Speed Start-up: - Minimize latency between code execution and external oscillator start-up DS40001675C-page 2 2013-2015 Microchip Technology Inc.