PIC16(L)F183XX Full-Featured, Low Pin Count Microcontrollers with XLP Product Brief Description PIC16(L)F183XX 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 * Only 49 Instructions * Operating Speed: - DC - 32 MHz clock input - 125 ns minimum instruction cycle * Interrupt Capability * 16-Level Deep Hardware Stack * Up to Four 8-Bit Timers * Up to Three 16-Bit Timers * Low-Current Power-on Reset (POR) * Configurable Power-up Timer (PWRTE) * Brown-out Reset (BOR) with Fast Recovery * Low-Power BOR (LPBOR) Option * Extended Watchdog Timer (WDT) with Dedicated On-Chip Oscillator for Reliable Operation * Programmable Code Protection * Doze mode: Ability to run the CPU core slower than the system clock used by the internal peripherals * Idle mode: Ability to put the CPU core to sleep while internal peripherals continue operating from the system clock * Sleep mode: Lowest Power Consumption * Peripheral Module Disable: Peripheral power disable hardware module to minimize power consumption of unused peripherals Memory * * * * Up to 14KB Program Flash Memory (PFM) Up to 1KB Data SRAM Memory 256B of EEPROM Data Flash Memory (DFM) Direct, Indirect and Relative Addressing modes Operating Characteristics * Operating Voltage Range: - 1.8V to 3.6V (PIC16LF183XX) - 2.3V to 5.5V (PIC16F183XX) * Temperature Range: - Industrial: -40C to 85C - Extended: -40C to 125C eXtreme Low-Power (XLP) Features * * * * Sleep mode: 50 nA @ 1.8V, typical Watchdog Timer: 500 nA @ 1.8V, typical Secondary Oscillator: 500 nA @ 32 kHz Operating Current: - 8 uA @ 32 kHz, 1.8V, typical - 32 uA/MHz @ 1.8V, typical 2014 Microchip Technology Inc. Digital Peripherals * Configurable Logic Cell (CLC): - Up to four CLCs - Integrated combinational and sequential logic * Complementary Waveform Generator (CWG): - Rising and falling edge dead-band control - Full-bridge, half-bridge, 1-channel drive - Up to two CWGs - Multiple signal sources * Up to Four Capture/Compare/PWM (CCP) modules * PWM: Two 10-bit Pulse-Width Modulators * Numerically Controlled Oscillator (NCO): - Precision linear frequency generator (@50% duty cycle) with 0.0001% step size of source input clock - Input Clock: 0 Hz < FNCO < 32 MHz - Resolution: FNCO/220 * Serial Communications: - SPI, I2CTM, EUSART - RS-232, RS-485, LIN compatible * Data Signal Modulator (DSM): - Modulates a carrier signal with digital data to create custom carrier synchronized output waveforms. DS40001744B-page 1 PIC16(L)F183XX * Peripheral Pin Select (PPS): - I/O pin remapping of digital peripherals * Up to 18 I/O Pins: - Individually programmable pull-ups - Slew rate control - Interrupt-on-change with edge-select Analog Peripherals Clocking Structure * High-Precision Internal Oscillator: - Selectable frequency range up to 32 MHz * x2/x4 PLL with Internal and External Sources * Low-Power Internal 32 kHz Oscillator (LFINTOSC) * External 32 kHz Crystal Oscillator (SOCS) * External High-Speed Crystal Oscillators * 10-Bit Analog-to-Digital Converter (ADC): - Up to 17 external channels - Conversion available during Sleep * Comparator: - Up to two comparators - Low and High-Speed modes - Fixed Voltage Reference at inverting/noninverting 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 DS40001744B-page 2 2014 Microchip Technology Inc. 2 1 Y Y Y Y I/E 1 2 1 Y Y Y Y I/E PIC16(L)F18324 (B) 4 7 256 512 12 15 1 2 2 1 4/3 4 2 1 1 1 4 1 Y Y Y Y I/E PIC16(L)F18325 (C) 8 14 256 1K 12 15 1 2 2 1 4/3 4 2 1 1 2 4 1 Y Y Y Y I/E PIC16(L)F18344 (B) 4 7 256 512 18 21 1 2 2 1 4/3 4 2 1 1 1 4 1 Y Y Y Y I/E PIC16(L)F18345 (C) 8 14 256 1K 18 21 1 2 2 1 4/3 4 2 1 1 2 4 1 Y Y Y Y I/E Note 1: 2: Debug(2) 1 1 Idle & Doze 1 1 PMD 1 2 XLP 2 2 PPS 2 2/1 DSM 2/1 1 CLC 1 1 MSSP (I2CTM/SPI) 1 2 EUSART 1 1 NCO 1 15 PWM 9 12 CCP 6 256 Timers (8/16-bit) 256 256 Clock Ref 256 3.5 CWG Data SRAM (bytes) 3.5 2 Comparators Data Memory (bytes) 2 (A) 5-bit DAC Program Memory Flash (K bytes) (A) PIC16(L)F18323 10-bit ADC (ch) Program Flash Memory (K words) PIC16(L)F18313 Device I/Os(1) Data Sheet Index 2014 Microchip Technology Inc. PIC16(L)F183XX Family Types TABLE 1: One pin is input-only. Debugging Methods: (I) - Integrated on Chip; E - using Emulation Header. Data Sheet Index: (Unshaded devices are described in this document.) Note A: Future Release PIC16(L)F18313/18323 Data Sheet, Full-Featured, Low Pin Count Microcontrollers with XLP B: Future Release PIC16(L)F18324/18344 Data Sheet, Full-Featured, Low Pin Count Microcontrollers with XLP C: Future Release PIC16(L)F18325/18345 Data Sheet, Full-Featured, Low Pin Count Microcontrollers with XLP Note: For other small form-factor package availability and marking information, please visit http://www.microchip.com/packaging or contact your local sales office. PIC16(L)F183XX DS40001744B-page 3 PIC16(L)F183XX TABLE 2: PACKAGES Packages PIC16(L)F18313 PDIP SOIC DFN/UDFN X X X TSSOP QFN/UQFN SSOP PIC16(L)F18323 X X X X PIC16(L)F18324 X X X X PIC16(L)F18325 X X X PIC16(L)F18344 X X X X PIC16(L)F18345 X X X X Note: X Pin details are subject to change. DS40001744B-page 4 2014 Microchip Technology Inc. PIC16(L)F183XX PIN DIAGRAMS VDD RA5 RA4 VPP/MCLR/RA3 Note: PIC16(L)F18313 Pin Diagram - 8-Pin PDIP, SOIC, DFN/UDFN 1 2 3 4 8 7 6 5 VSS RA0/ICSPDAT RA1/ICSPCLK RA2 See Table 3 for location of all peripheral functions. Note: PIC16(L)F18325 1 2 3 4 5 6 7 PIC16(L)F18324 VDD RA5 RA4 VPP/MCLR/RA3 RC5 RC4 RC3 PIC16(L)F18323 Pin Diagram - 14-Pin PDIP, SOIC, TSSOP 14 13 12 11 10 9 8 VSS RA0/ICSPDAT RA1/ICSPCLK RA2 RC0 RC1 RC2 See Table 4, Table 5 and Table 6 for location of all peripheral functions. NC VSS VDD NC Pin Diagram - 16-Pin QFN/UQFN 16 15 14 13 RA5 RA4 RA3/MCLR/VPP RC5 1 2 3 4 12 PIC16(L)F18323 11 PIC16(L)F18324 10 PIC16(L)F18325 9 RA0/ICSPDAT RA1/ICSPCLK RA2 RC0 RC4 RC3 RC2 RC1 5 6 7 8 Note 1: 2: See Table 4, Table 5 and Table 6 for location of all peripheral functions. It is recommended that the exposed bottom pad be connected to VSS. 2014 Microchip Technology Inc. DS40001744B-page 5 PIC16(L)F183XX Pin Diagram - 20-Pin PDIP, SOIC, SSOP 20 VSS RA5 2 RA4 3 19 RA0/ICSPDAT 18 RA1/ICSPCLK 17 RA2 16 RC0 15 RC1 14 RC2 MCLR/VPP/RA3 4 RC5 5 RC4 6 RC3 7 RC6 8 Note: PIC16(L)F18344 PIC16(L)F18345 VDD 1 13 RB4 RC7 9 12 RB5 RB7 10 11 RB6 See Table 7 and Table 8 for location of all peripheral functions. RA4 RA5 VDD Vss RA0/ICSPDAT Pin Diagram - 20-Pin QFN/UQFN (4x4) RA3/MCLR/VPP RC5 RC4 RC3 RC6 1 2 3 4 5 P PI IC1 C 6( 1 6 L) (L F1 ) F 83 18 4 34 4 5 20 19 18 17 16 15 14 13 12 11 RA1/ICSPCLK RA2 RC0 RC1 RC2 RC7 RB7 RB6 RB5 RB4 6 7 8 9 10 Note 1: 2: See Table 7 and Table 8 for location of all peripheral functions. It is recommended that the exposed bottom pad be connected to VSS. DS40001744B-page 6 2014 Microchip Technology Inc. DSM Timers CCP PWM CWG MSSP EUSART C1IN0+ -- DAC1OUT MDCIN1(1) -- -- -- -- -- TX(1) CK(1) RA1 6 ANA1 VREF+ C1IN0- -- DAC1REF+ MDMIN(1) -- -- -- -- RA2 5 ANA2 VREF- -- -- DAC1REF- -- T0CKI(1) -- -- CWG1(1) SDA(1,3,4) SDO(1) RA3 4 -- -- -- -- -- -- -- -- -- -- RA4 3 ANA4 -- C1IN1- -- -- -- T1G(1) SOSCO -- -- RA5 2 ANA5 -- -- -- -- MDCIN2(1) T1CKI(1) SOSCIN SOSCI CCP1(1) CCP2(1) VDD 1 -- -- -- -- -- -- -- -- VSS Note 1: 2: 3: 4: CLCIN3(1) -- IOCA0 Y ICDDAT/ ICSPDAT CLCIN2(1) -- IOCA1 Y ICDCLK/ ICSPCLK -- -- -- INT(1) IOCA2 Y -- SS(1) -- CLCIN0(1) -- IOCA3 Y MCLR VPP -- -- -- -- -- IOCA4 Y CLKOUT OSC2 -- -- -- -- CLCIN1(1) -- IOCA5 Y CLKIN OSC1 -- -- -- -- -- -- -- -- VDD SCK(1) RX(1) SCL(1,3,4) DT(1,3) 8 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- VSS -- -- -- C1OUT NCO -- DSM TMR0 CCP1 PWM5 CWG1A SDA(3) CK CLC1OUT CLKR -- -- -- -- -- -- -- -- -- -- -- CCP2 PWM6 CWG1B SCL(3) DT(3) CLC2OUT -- -- -- -- -- -- -- -- -- -- -- -- -- -- CWG1C SDO TX -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- CWG1D SCK -- -- -- -- -- -- DS40001744B-page 7 Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to the other pins (e.g., RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. PIC16(L)F183XX OUT(2) Basic DAC -- Pull-up NCO ANA0 Interrupt Comparator 7 CLKR Reference RA0 CLC ADC 8-PIN ALLOCATION TABLE (PIC16(L)F18313) 8-Pin PDIP/SOIC/DFN/UDFN TABLE 3: I/O(2) 2014 Microchip Technology Inc. PIN ALLOCATION TABLES RA4 3 RA5 2014 Microchip Technology Inc. Basic 3 Pull-up 4 Interrupt RA3 CLKR ANA2 CLC 10 EUSART 11 MSSP RA2 CWG ANA1 VREF+ PWM 11 CCP 12 Timers RA1 DSM ANA0 DAC ADC 12 NCO 16-Pin QFN/UQFN 13 Comparator 14/16-Pin PDIP/SOIC/TSSOP RA0 Reference I/O(2) 14/16-PIN ALLOCATION TABLE (PIC16(L)F18323) -- C1IN0+ -- DAC1OUT -- -- -- -- -- -- -- -- -- IOCA0 Y ICDDAT/ ICSPDAT C1IN0C2IN0- -- DAC1REF+ -- -- -- -- -- -- -- -- -- IOCA1 Y ICDCLK/ ICSPCLK VREF- -- -- DAC1REF- -- T0CKI(1) -- -- CWG1(1) -- -- -- -- INT(1) IOCA2 Y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- IOCA3 Y MCLR VPP 2 ANA4 -- -- -- -- -- T1G(1) SOSCO -- -- -- -- -- -- -- IOCA4 Y CLKOUT OSC2 2 1 ANA5 -- -- -- -- -- T1CKI(1) SOSCIN SOSCI -- -- -- -- -- CLCIN3(1) -- IOCA5 Y CLKIN OSC1 RC0 10 9 ANC0 -- C2IN0+ -- -- -- -- -- -- -- SCK(1) SCL(1,3,4) -- -- -- IOCC0 Y -- RC1 9 8 ANC1 -- C1IN1C2IN1- -- -- -- -- -- -- -- SDI(1) SDA(1,3,4) -- CLCIN2(1) -- IOCC1 Y -- RC2 8 7 ANC2 -- C1IN2C2IN2- -- -- MDCIN1(1) -- -- -- -- -- -- -- -- IOCC2 Y -- RC3 7 6 ANC3 -- C1IN3C2IN3- -- -- MDMIN(1) -- CCP2(1) -- -- SS(1) -- CLCIN0(1) -- IOCC3 Y -- RC4 6 5 ANC4 -- -- -- -- -- -- -- -- -- -- TX(1) CK(1) CLCIN1(1) -- IOCC4 Y -- RC5 5 4 ANC5 -- -- -- -- MDCIN2(1) -- CCP1(1) -- -- -- RX(1) DT(1,3) -- -- IOCC5 Y -- VDD 1 16 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- VDD VSS 14 13 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- VSS Note 1: 2: 3: 4: Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to other pins (e.g. RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. PIC16(L)F183XX DS40001744B-page 8 TABLE 4: Note 1: 2: 3: 4: 16-Pin QFN/UQFN ADC Reference Comparator NCO DAC DSM Timers CCP PWM CWG MSSP EUSART CLC CLKR Interrupt Pull-up Basic OUT(2) 14/16-PIN ALLOCATION TABLE (PIC16(L)F18323) 14/16-Pin PDIP/SOIC/TSSOP I/O(2) 2014 Microchip Technology Inc. TABLE 4: -- -- -- -- C1OUT NCO -- DSM TMR0 CCP1 PWM5 CWG1A SDA(3) CK CLC1OUT CLKR -- -- -- -- -- -- -- C2OUT -- -- -- -- CCP2 PWM6 CWG1B SCL(3) DT(3) CLC2OUT -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- CWG1C SDO TX -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- CWG1D SCK -- -- -- -- -- -- Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to other pins (e.g. RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. PIC16(L)F183XX DS40001744B-page 9 RA4 3 RA5 2014 Microchip Technology Inc. Basic 3 Pull-up 4 Interrupt RA3 CLKR ANA2 CLC 10 EUSART 11 MSSP RA2 CWG ANA1 VREF+ PWM 11 CCP 12 Timers RA1 DSM ANA0 DAC ADC 12 NCO 16-Pin QFN/UQFN 13 Comparator 14/16-Pin PDIP/SOIC/TSSOP RA0 Reference I/O(2) 14/16-PIN ALLOCATION TABLE (PIC16(L)F18324) -- C1IN0+ -- DAC1OUT -- -- -- -- -- -- -- -- -- IOCA0 Y ICDDAT/ ICSPDAT C1IN0C2IN0- -- DAC1REF+ -- -- -- -- -- -- -- -- -- IOCA1 Y ICDCLK/ ICSPCLK VREF- -- -- DAC1REF- -- T0CKI(1) CCP3(1) -- CWG1(1) CWG2(1) -- -- -- -- INT(1) IOCA2 Y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- IOCA3 Y MCLR VPP 2 ANA4 -- -- -- -- -- T1G(1) SOSCO -- -- -- -- -- -- -- IOCA4 Y CLKOUT OSC2 2 1 ANA5 -- -- -- -- -- T1CKI(1) SOSCIN SOSCI -- -- -- -- -- CLCIN3(1) -- IOCA5 Y CLKIN OSC1 RC0 10 9 ANC0 -- C2IN0+ -- -- -- T5CKI(1) -- -- -- SCK(1) SCL(1,3,4) -- -- -- IOCC0 Y -- RC1 9 8 ANC1 -- C1IN1C2IN1- -- -- -- -- CCP4(1) -- -- SDI(1) SDA(1,3,4) -- CLCIN2(1) -- IOCC1 Y -- RC2 8 7 ANC2 -- C1IN2C2IN2- -- -- MDCIN1(1) -- -- -- -- -- -- -- -- IOCC2 Y -- RC3 7 6 ANC3 -- C1IN3C2IN3- -- -- MDMIN(1) T5G(1) CCP2(1) -- -- SS(1) -- CLCIN0(1) -- IOCC3 Y -- RC4 6 5 ANC4 -- -- -- -- -- T3G(1) -- -- -- -- TX(1) CK(1) CLCIN1(1) -- IOCC4 Y -- RC5 5 4 ANC5 -- -- -- -- MDCIN2(1) T3CKI(1) CCP1(1) -- -- -- RX(1) DT(1,3) -- -- IOCC5 Y -- VDD 1 16 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- VDD VSS 14 13 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- VSS Note 1: 2: 3: 4: Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to other pins (e.g. RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. PIC16(L)F183XX DS40001744B-page 10 TABLE 5: 16-Pin QFN/UQFN ADC Reference Comparator NCO DAC DSM Timers CCP PWM CWG MSSP EUSART CLC CLKR Interrupt Pull-up Basic 14/16-PIN ALLOCATION TABLE (PIC16(L)F18324) (CONTINUED) 14/16-Pin PDIP/SOIC/TSSOP I/O(2) 2014 Microchip Technology Inc. TABLE 5: -- -- -- -- C1OUT NCO -- DSM TMR0 CCP1 PWM5 CWG1A CWG2A SDA(3) CK CLC1OUT CLKR -- -- -- -- -- -- -- C2OUT -- -- -- -- CCP2 PWM6 CWG1B CWG2B SCL(3) DT(3) CLC2OUT -- -- -- -- -- -- -- -- -- -- -- -- -- CCP3 -- CWG1C CWG2C SDO TX CLC3OUT -- -- -- -- -- -- -- -- -- -- -- -- -- CCP4 -- CWG1D CWG2D SCK -- CLC4OUT -- -- -- -- OUT(2) Note 1: 2: 3: 4: Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to other pins (e.g. RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. PIC16(L)F183XX DS40001744B-page 11 RA4 3 RA5 2014 Microchip Technology Inc. Basic 3 Pull-up 4 Interrupt RA3 CLKR ANA2 CLC 10 EUSART 11 MSSP RA2 CWG ANA1 VREF+ PWM 11 CCP 12 Timers RA1 DSM ANA0 DAC ADC 12 NCO 16-Pin QFN/UQFN 13 Comparator 14/16-Pin PDIP/SOIC/TSSOP RA0 Reference I/O(2) 14/16-PIN ALLOCATION TABLE (PIC16(L)F18325) -- C1IN0+ -- DAC1OUT -- -- -- -- -- SS2(1) -- -- -- IOCA0 Y ICDDAT/ ICSPDAT C1IN0C2IN0- -- DAC1REF+ -- -- -- -- -- -- -- -- -- IOCA1 Y ICDCLK/ ICSPCLK VREF- -- -- DAC1REF- -- T0CKI(1) CCP3(1) -- CWG1(1) CWG2(1) -- -- -- -- INT(1) IOCA2 Y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- IOCA3 Y MCLR VPP 2 ANA4 -- -- -- -- -- T1G(1) SOSCO -- -- -- -- -- -- -- IOCA4 Y CLKOUT OSC2 2 1 ANA5 -- -- -- -- -- T1CKI(1) SOSCIN SOSCI -- -- -- -- -- CLCIN3(1) -- IOCA5 Y CLKIN OSC1 RC0 10 9 ANC0 -- C2IN0+ -- -- -- T5CKI(1) -- -- -- SCK1(1) SCL1(1,3,4) -- -- -- IOCC0 Y -- RC1 9 8 ANC1 -- C1IN1C2IN1- -- -- -- -- CCP4(1) -- -- SDI1(1) SDA1(1,3,4) -- CLCIN2(1) -- IOCC1 Y -- RC2 8 7 ANC2 -- C1IN2C2IN2- -- -- MDCIN1(1) -- -- -- -- -- -- -- -- IOCC2 Y -- RC3 7 6 ANC3 -- C1IN3C2IN3- -- -- MDMIN(1) T5G(1) CCP2(1) -- -- SS1(1) -- CLCIN0(1) -- IOCC3 Y -- RC4 6 5 ANC4 -- -- -- -- -- T3G(1) -- -- -- SCK2(1) SCL2(1,3,4) TX(1) CK(1) CLCIN1(1) -- IOCC4 Y -- RC5 5 4 ANC5 -- -- -- -- CCP1(1) -- -- SDI2(1) RX(1) SDA2(1,3,4) DT(1,3) -- -- IOCC5 Y -- MDCIN2(1) T3CKI(1) VDD 1 16 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- VDD VSS 14 13 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- VSS Note 1: 2: 3: 4: Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to other pins (e.g. RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. PIC16(L)F183XX DS40001744B-page 12 TABLE 6: 16-Pin QFN/UQFN ADC Reference Comparator NCO DAC DSM Timers CCP PWM CWG MSSP EUSART CLC CLKR Interrupt Pull-up Basic 14/16-PIN ALLOCATION TABLE (PIC16(L)F18325) (Continued) 14/16-Pin PDIP/SOIC/TSSOP I/O(2) 2014 Microchip Technology Inc. TABLE 6: -- -- -- -- C1OUT DDS -- DSM TMR0 CCP1 PWM5 CWG1A CWG2A SDA1(3) SDA2(3) CK CLC1OUT CLKR -- -- -- -- -- -- -- C2OUT -- -- -- -- CCP2 PWM6 CWG1B CWG2B SCL1(3) SCL2(3) DT(3) CLC2OUT -- -- -- -- -- -- -- -- -- -- -- -- -- CCP3 -- CWG1C CWG2C SDO1 SDO2 TX CLC3OUT -- -- -- -- -- -- -- -- -- -- -- -- -- CCP4 -- CWG1D CWG2D SCK1 SCK2 -- CLC4OUT -- -- -- -- OUT(2) Note 1: 2: 3: 4: Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to other pins (e.g. RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. PIC16(L)F183XX DS40001744B-page 13 RA4 3 RA5 2014 Microchip Technology Inc. Basic 1 Pull-up 4 Interrupt RA3 CLKR ANA2 CLC 14 EUSART 17 MSSP RA2 CWG ANA1 VREF+ PWM 15 CCP 18 Timers RA1 DSM ANA0 DAC ADC 16 NCO 20-Pin QFN/UQFN 19 Comparator 20-Pin PDIP/SOIC/SSOP RA0 Reference I/O(2) 20-PIN ALLOCATION TABLE (PIC16(L)F18344) -- C1IN0+ -- DAC1OUT -- -- -- -- -- -- -- -- -- IOCA0 Y ICDDAT/ ICSPDAT C1IN0C2IN0- -- DAC1REF+ -- -- -- -- -- -- -- -- -- IOCA1 Y ICDCLK/ ICSPCLK VREF- -- -- DAC1REF- -- T0CKI(1) CCP3(1) -- CWG1(1) CWG2(1) -- -- CLCIN0(1) -- INT(1) IOCA2 Y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- IOCA3 Y MCLR VPP 20 ANA4 -- -- -- -- -- T1G(1) T3G(1) T5G(1) SOSCO CCP4(1) -- -- -- -- -- -- IOCA4 Y CLKOUT OSC2 2 19 ANA5 -- -- -- -- -- T1CKI(1) T3CKI(1) T5CKI(1) SOSCIN SOSCI -- -- -- -- -- -- -- IOCA5 Y CLKIN OSC1 RB4 13 10 ANB4 -- -- -- -- -- -- -- -- -- SDI(1) SDA(1,3,4) -- CLCIN2(1) -- IOCB4 Y -- RB5 12 9 ANB5 -- -- -- -- -- -- -- -- -- -- RX(1) DT(1) CLCIN3(1) -- IOCB5 Y -- RB6 11 8 ANB6 -- -- -- -- -- -- -- -- -- SCK(1) SCL(1,3,4) -- -- -- IOCB6 Y -- RB7 10 7 ANB7 -- -- -- -- -- -- -- -- -- -- TX(1) CK(1) -- -- IOCB7 Y -- RC0 16 13 ANC0 -- C2IN0+ -- -- -- -- -- -- -- -- -- -- -- IOCC0 Y -- RC1 15 12 ANC1 -- C1IN1C2IN1- -- -- -- -- -- -- -- -- -- -- -- IOCC1 Y -- RC2 14 11 ANC2 -- C1IN2C2IN2- -- -- MDCIN1(1) -- -- -- -- -- -- -- -- IOCC2 Y -- Note 1: 2: 3: 4: Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to other pins (e.g., RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. PIC16(L)F183XX DS40001744B-page 14 TABLE 7: 8 5 ANC6 -- -- -- -- -- -- -- RC7 9 6 ANC7 -- -- -- -- -- -- -- VDD 1 18 -- -- -- -- -- -- -- -- VSS 20 17 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- C1OUT NCO -- DSM TMR0 CCP1 PWM5 CWG1A CWG2A SDO DT(3) -- -- -- -- C2OUT -- -- -- -- CCP2 PWM6 CWG1B CWG2B SCK CK -- -- -- -- -- -- -- -- -- CCP3 -- CWG1C CWG2C SCL(3) -- -- -- -- -- -- -- -- -- CCP4 -- CWG1D CWG2D SDA(3) OUT Note -- -- -- -- -- -- MDCIN2(1) Basic RC6 -- Pull-up -- Interrupt -- ANC5 CLKR ANC4 2 CLC 3 5 MDMIN(1) EUSART 6 RC5 -- MSSP RC4 -- CWG C1IN3C2IN3- PWM -- CCP Comparator ANC3 Timers Reference 4 DSM ADC 7 DAC 20-Pin QFN/UQFN RC3 NCO 20-Pin PDIP/SOIC/SSOP 20-PIN ALLOCATION TABLE (PIC16(L)F18344) (Continued) I/O(2) 2014 Microchip Technology Inc. TABLE 7: -- CCP2(1) -- -- -- -- CLCIN1(1) -- IOCC3 Y -- -- -- -- -- -- -- -- -- IOCC4 Y -- -- CCP1(1) -- -- -- -- -- -- IOCC5 Y -- -- -- SS(1) -- -- -- IOCC6 Y -- -- -- -- -- -- -- IOCC7 Y -- -- -- -- -- -- -- -- -- VDD -- -- -- -- VSS CLC1OUT CLKR -- -- -- CLC2OUT -- -- -- -- TX CLC3OUT -- -- -- -- -- CLC4OUT -- -- -- -- (2) Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to other pins (e.g., RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. DS40001744B-page 15 PIC16(L)F183XX 1: 2: 3: 4: RA4 3 RA5 2014 Microchip Technology Inc. Basic 1 Pull-up 4 Interrupt RA3 CLKR ANA2 CLC 14 EUSART 17 MSSP RA2 CWG ANA1 VREF+ PWM 15 CCP 18 Timers RA1 DSM ANA0 DAC ADC 16 NCO 20-Pin QFN/UQFN 19 Comparator 20-Pin PDIP/SOIC/SSOP RA0 Reference I/O(2) 20-PIN ALLOCATION TABLE (PIC16(L)F18345) -- C1IN0+ -- DAC1OUT -- -- -- -- -- -- -- -- -- IOCA0 Y ICDDAT/ ICSPDAT C1IN0C2IN0- -- DAC1REF+ -- -- -- -- -- SS2(1) -- -- -- IOCA1 Y ICDCLK/ ICSPCLK VREF- -- -- DAC1REF- -- T0CKI(1) CCP3(1) -- CWG1(1) CWG2(1) -- -- CLCIN0(1) -- INT(1) IOCA2 Y -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- IOCA3 Y MCLR VPP 20 ANA4 -- -- -- -- -- T1G(1) T3G(1) T5G(1) SOSCO CCP4(1) -- -- -- -- -- -- IOCA4 Y CLKOUT OSC2 2 19 ANA5 -- -- -- -- -- T1CKI(1) T3CKI(1) T5CKI(1) SOSCIN SOSCI -- -- -- -- -- -- -- IOCA5 Y CLKIN OSC1 RB4 13 10 ANB4 -- -- -- -- -- -- -- -- -- SDI1(1) SDA1(1,3,4) -- CLCIN2(1) -- IOCB4 Y -- RB5 12 9 ANB5 -- -- -- -- -- -- -- -- -- SDI2(1) SDA2(1,3,4) RX(1) DT(1) CLCIN3(1) -- IOCB5 Y -- RB6 11 8 ANB6 -- -- -- -- -- -- -- -- -- SCK1(1) SCL1(1,3,4) -- -- -- IOCB6 Y -- RB7 10 7 ANB7 -- -- -- -- -- -- -- -- -- SCK2(1) SCL2(1,3,4) TX(1) CK(1) -- -- IOCB7 Y -- RC0 16 13 ANC0 -- C2IN0+ -- -- -- -- -- -- -- -- -- -- -- IOCC0 Y -- RC1 15 12 ANC1 -- C1IN1C2IN1- -- -- -- -- -- -- -- -- -- -- -- IOCC1 Y -- RC2 14 11 ANC2 -- C1IN2C2IN2- -- -- MDCIN1(1) -- -- -- -- -- -- -- -- IOCC2 Y -- Note 1: 2: 3: 4: Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to other pins (e.g., RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. PIC16(L)F183XX DS40001744B-page 16 TABLE 8: 8 5 ANC6 -- -- -- -- -- -- -- RC7 9 6 ANC7 -- -- -- -- -- -- -- VDD 1 18 -- -- -- -- -- -- -- -- VSS 20 17 -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- C1OUT NCO -- DSM TMR0 CCP1 PWM5 CWG1A CWG2A SDO1 SDO2 DT(3) -- -- -- -- C2OUT -- -- -- -- CCP2 PWM6 CWG1B CWG2B SCK1 SCK2 CK -- -- -- -- -- -- -- -- -- CCP3 -- CWG1C CWG2C SCL1(3) SCL2(3) -- -- -- -- -- -- -- -- -- CCP4 -- CWG1D CWG2D SDA1(3) SDA2(3) OUT Note -- -- -- -- -- -- MDCIN2(1) Basic RC6 -- Pull-up -- Interrupt -- ANC5 CLKR ANC4 2 CLC 3 5 MDMIN(1) EUSART 6 RC5 -- MSSP RC4 -- CWG C1IN3C2IN3- PWM -- CCP Comparator ANC3 Timers Reference 4 DSM ADC 7 DAC 20-Pin QFN/UQFN RC3 NCO 20-Pin PDIP/SOIC/SSOP 20-PIN ALLOCATION TABLE (PIC16(L)F18345) I/O(2) 2014 Microchip Technology Inc. TABLE 8: -- CCP2(1) -- -- -- -- CLCIN1(1) -- IOCC3 Y -- -- -- -- -- -- -- -- -- IOCC4 Y -- -- CCP1(1) -- -- -- -- -- -- IOCC5 Y -- -- -- SS(1) -- -- -- IOCC6 Y -- -- -- -- -- -- -- IOCC7 Y -- -- -- -- -- -- -- -- -- VDD -- -- -- -- VSS CLC1OUT CLKR -- -- -- CLC2OUT -- -- -- -- TX CLC3OUT -- -- -- -- -- CLC4OUT -- -- -- -- (2) Default peripheral input. Input can be moved to any other pin with the PPS input selection registers. All pin outputs default to PORT latch data. Any pin can be selected as a digital peripheral output with the PPS output selection registers. These peripheral functions are bidirectional. The output pin selections must be the same as the input pin selections. These pins are configured for I2CTM logic levels; clock and data signals may be assigned to any of these pins. Assignments to other pins (e.g., RA5) will operate, but logic levels will be standard TTL/ST as selected by the INLVL register. DS40001744B-page 17 PIC16(L)F183XX 1: 2: 3: 4: Note the following details of the code protection feature on Microchip devices: * Microchip products meet the specification contained in their particular Microchip Data Sheet. * Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the intended manner and under normal conditions. * There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip's Data Sheets. Most likely, the person doing so is engaged in theft of intellectual property. * Microchip is willing to work with the customer who is concerned about the integrity of their code. * Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not mean that we are guaranteeing the product as "unbreakable." Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our products. Attempts to break Microchip's code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act. Information contained in this publication regarding device applications and the like is provided only for your convenience and may be superseded by updates. It is your responsibility to ensure that your application meets with your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR WARRANTIES OF ANY KIND WHETHER EXPRESS OR IMPLIED, WRITTEN OR ORAL, STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION, INCLUDING BUT NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY OR FITNESS FOR PURPOSE. Microchip disclaims all liability arising from this information and its use. Use of Microchip devices in life support and/or safety applications is entirely at the buyer's risk, and the buyer agrees to defend, indemnify and hold harmless Microchip from any and all damages, claims, suits, or expenses resulting from such use. No licenses are conveyed, implicitly or otherwise, under any Microchip intellectual property rights. Trademarks The Microchip name and logo, the Microchip logo, dsPIC, FlashFlex, flexPWR, JukeBlox, KEELOQ, KEELOQ logo, Kleer, LANCheck, MediaLB, MOST, MOST logo, MPLAB, OptoLyzer, PIC, PICSTART, PIC32 logo, RightTouch, SpyNIC, SST, SST Logo, SuperFlash and UNI/O are registered trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. The Embedded Control Solutions Company and mTouch are registered trademarks of Microchip Technology Incorporated in the U.S.A. Analog-for-the-Digital Age, BodyCom, chipKIT, chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net, ECAN, In-Circuit Serial Programming, ICSP, Inter-Chip Connectivity, KleerNet, KleerNet logo, MiWi, MPASM, MPF, MPLAB Certified logo, MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation, PICDEM, PICDEM.net, PICkit, PICtail, RightTouch logo, REAL ICE, SQI, Serial Quad I/O, Total Endurance, TSHARC, USBCheck, VariSense, ViewSpan, WiperLock, Wireless DNA, and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries. GestIC is a registered trademarks of Microchip Technology Germany II GmbH & Co. KG, a subsidiary of Microchip Technology Inc., in other countries. All other trademarks mentioned herein are property of their respective companies. (c) 2014, Microchip Technology Incorporated, Printed in the U.S.A., All Rights Reserved. ISBN: 978-1-63276-629-8 QUALITY MANAGEMENT SYSTEM CERTIFIED BY DNV == ISO/TS 16949 == DS40001744B-page 18 Microchip received ISO/TS-16949:2009 certification for its worldwide headquarters, design and wafer fabrication facilities in Chandler and Tempe, Arizona; Gresham, Oregon and design centers in California and India. The Company's quality system processes and procedures are for its PIC(R) MCUs and dsPIC(R) DSCs, KEELOQ(R) code hopping devices, Serial EEPROMs, microperipherals, nonvolatile memory and analog products. In addition, Microchip's quality system for the design and manufacture of development systems is ISO 9001:2000 certified. 2014 Microchip Technology Inc. Worldwide Sales and Service AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE Corporate Office 2355 West Chandler Blvd. Chandler, AZ 85224-6199 Tel: 480-792-7200 Fax: 480-792-7277 Technical Support: http://www.microchip.com/ support Web Address: www.microchip.com Asia Pacific Office Suites 3707-14, 37th Floor Tower 6, The Gateway Harbour City, Kowloon Hong Kong Tel: 852-2943-5100 Fax: 852-2401-3431 India - Bangalore Tel: 91-80-3090-4444 Fax: 91-80-3090-4123 Austria - Wels Tel: 43-7242-2244-39 Fax: 43-7242-2244-393 Denmark - Copenhagen Tel: 45-4450-2828 Fax: 45-4485-2829 Australia - Sydney Tel: 61-2-9868-6733 Fax: 61-2-9868-6755 Atlanta Duluth, GA Tel: 678-957-9614 Fax: 678-957-1455 China - Beijing Tel: 86-10-8569-7000 Fax: 86-10-8528-2104 Austin, TX Tel: 512-257-3370 China - Chengdu Tel: 86-28-8665-5511 Fax: 86-28-8665-7889 Boston Westborough, MA Tel: 774-760-0087 Fax: 774-760-0088 Chicago Itasca, IL Tel: 630-285-0071 Fax: 630-285-0075 Cleveland Independence, OH Tel: 216-447-0464 Fax: 216-447-0643 Dallas Addison, TX Tel: 972-818-7423 Fax: 972-818-2924 Detroit Novi, MI Tel: 248-848-4000 Houston, TX Tel: 281-894-5983 Indianapolis Noblesville, IN Tel: 317-773-8323 Fax: 317-773-5453 Los Angeles Mission Viejo, CA Tel: 949-462-9523 Fax: 949-462-9608 New York, NY Tel: 631-435-6000 San Jose, CA Tel: 408-735-9110 Canada - Toronto Tel: 905-673-0699 Fax: 905-673-6509 China - Chongqing Tel: 86-23-8980-9588 Fax: 86-23-8980-9500 China - Hangzhou Tel: 86-571-8792-8115 Fax: 86-571-8792-8116 China - Hong Kong SAR Tel: 852-2943-5100 Fax: 852-2401-3431 China - Nanjing Tel: 86-25-8473-2460 Fax: 86-25-8473-2470 China - Qingdao Tel: 86-532-8502-7355 Fax: 86-532-8502-7205 China - Shanghai Tel: 86-21-5407-5533 Fax: 86-21-5407-5066 China - Shenyang Tel: 86-24-2334-2829 Fax: 86-24-2334-2393 China - Shenzhen Tel: 86-755-8864-2200 Fax: 86-755-8203-1760 China - Wuhan Tel: 86-27-5980-5300 Fax: 86-27-5980-5118 China - Xian Tel: 86-29-8833-7252 Fax: 86-29-8833-7256 India - New Delhi Tel: 91-11-4160-8631 Fax: 91-11-4160-8632 India - Pune Tel: 91-20-3019-1500 Japan - Osaka Tel: 81-6-6152-7160 Fax: 81-6-6152-9310 Japan - Tokyo Tel: 81-3-6880- 3770 Fax: 81-3-6880-3771 Korea - Daegu Tel: 82-53-744-4301 Fax: 82-53-744-4302 Korea - Seoul Tel: 82-2-554-7200 Fax: 82-2-558-5932 or 82-2-558-5934 France - Paris Tel: 33-1-69-53-63-20 Fax: 33-1-69-30-90-79 Germany - Dusseldorf Tel: 49-2129-3766400 Germany - Munich Tel: 49-89-627-144-0 Fax: 49-89-627-144-44 Germany - Pforzheim Tel: 49-7231-424750 Italy - Milan Tel: 39-0331-742611 Fax: 39-0331-466781 Italy - Venice Tel: 39-049-7625286 Malaysia - Kuala Lumpur Tel: 60-3-6201-9857 Fax: 60-3-6201-9859 Netherlands - Drunen Tel: 31-416-690399 Fax: 31-416-690340 Malaysia - Penang Tel: 60-4-227-8870 Fax: 60-4-227-4068 Poland - Warsaw Tel: 48-22-3325737 Philippines - Manila Tel: 63-2-634-9065 Fax: 63-2-634-9069 Singapore Tel: 65-6334-8870 Fax: 65-6334-8850 Taiwan - Hsin Chu Tel: 886-3-5778-366 Fax: 886-3-5770-955 Spain - Madrid Tel: 34-91-708-08-90 Fax: 34-91-708-08-91 Sweden - Stockholm Tel: 46-8-5090-4654 UK - Wokingham Tel: 44-118-921-5800 Fax: 44-118-921-5820 Taiwan - Kaohsiung Tel: 886-7-213-7830 Taiwan - Taipei Tel: 886-2-2508-8600 Fax: 886-2-2508-0102 Thailand - Bangkok Tel: 66-2-694-1351 Fax: 66-2-694-1350 China - Xiamen Tel: 86-592-2388138 Fax: 86-592-2388130 China - Zhuhai Tel: 86-756-3210040 Fax: 86-756-3210049 2014 Microchip Technology Inc. 03/25/14 DS40001744B-page 19 Mouser Electronics Authorized Distributor Click to View Pricing, Inventory, Delivery & Lifecycle Information: Microchip: PIC16F18345-I/ML PIC16F18344T-I/ML PIC16F18345T-I/SO PIC16F18344-I/SO PIC16F18344T-I/SO PIC16F18325-I/ST PIC16F18344-E/SS PIC16F18345-E/ML PIC16F18324-I/ST PIC16F18325-E/ST PIC16F18325I/ML PIC16F18324-I/ML PIC16F18344-E/ML PIC16F18325T-I/ST PIC16F18345-I/SO PIC16F18345T-I/SS PIC16F18345T-I/ML PIC16F18324-I/P PIC16F18324-E/ML PIC16F18324-E/ST PIC16F18324T-I/SL PIC16F18324E/P PIC16F18324T-I/ST PIC16F18325-E/SL PIC16F18344-I/P PIC16F18325-E/P PIC16F18325T-I/SL PIC16F18344-I/ML PIC16F18344T-I/SS PIC16F18345-E/P PIC16F18345-E/SO PIC16F18345-I/P PIC16F18344E/SO PIC16F18324T-I/ML PIC16F18344-E/P PIC16F18344-I/SS PIC16F18324-E/SL PIC16F18325T-I/ML PIC16F18345-E/SS PIC16F18325-E/ML PIC16F18325-I/P PIC16F18324-I/SL PIC16F18325-I/SL PIC16F18345-I/SS