PIC16F1826/1827
18-Pin 8-Bit Flash Microcontroller Product Brief
High-Performance RISC CPU:
• Only 49 Instructions, including 14 new “C
compiler-friendly” Instructions
• Operating Speed:
- DC – 32 MHz clock input
- DC – 125 ns instruction cycle
• Interrupt Capability with Automatic Context
Saving
• 16-Level Deep Hardware Stack with Optional
Overflow/Underflow Reset
• Direct, Indirect and Relative Addressing modes:
- Two full 16-bit File Select Registers (FSRs)
- FSRs can read program and data memory
Peripheral Features:
• Up to 15 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
• Timer0: 8-Bit Timer/Counter with 8-Bit
Programmable Prescaler
• Enhanced Timer1:
- 16-bit timer/counter with prescaler
- External Gate Input mode
- Dedicated low-power 32 kHz oscillator driver
• Timer2, 4, 6: 8-Bit Timer/Counter with 8-Bit Period
Register, Prescaler and Postscaler
• Up to two Enhanced Capture, Compare, PWM
modules (ECCP):
- Software selectable time bases
- Auto-shutdown and auto-restart
- PWM steering
• Up to two Capture/Compare/PWM modules
(CCP):
- Software selectable time bases
• Up to two Master Synchronous Serial Port
(MSSP) with SPI and I
2
C
TM
with:
- 7-bit address masking
- SMBus/PMBus
TM
compatibility
• Enhanced Universal Synchronous Asynchronous
Receiver Transmitter (EUSART):
- RS-232, RS-485 and LIN compatible
- Auto-Baud Detect
- Auto-wake-up on start
• SR Latch (Integrated 555 Timer):
- Multiple Set/Reset input options
• Analog-to-Digital Converter (ADC):
- 10-bit resolution
- Up to 12 channels
• 2 Comparators:
- Rail-to-rail inputs
- Power mode control
- Software controllable hysteresis
• Voltage Reference module:
- Fixed Voltage Reference (FVR) with 1.024V,
2.048V and 4.096V output levels
- 5-bit rail-to-rail resistive DAC with positive
and negative reference selection
• mTouch™ Sensing oscillator module
- Up to 12 channels for button, sensor or slider
input
• Data Signal Modulator module
- Select modulator and carrier sources from
various module outputs
Special Microcontroller Features:
• Precision Internal Oscillator:
- Factory calibrated to ±1%, typical
- Software selectable frequency range from
32 MHz to 31 kHz
• 31 kHz Low-Power Internal Oscillator
• External Oscillator Block with:
- 4 crystal/resonator modes up to 32 MHz
using 4xPLL
- 3 external clock modes up to 32 MHz
• 4x Phase Locked Loop (PLL)
• Fail-Safe Clock Monitor
• Two-Speed Start-up
• Power-Saving Sleep mode
• Power-on Reset (POR)
• Power-up Timer (PWRT)
• Oscillator Start-up Timer (OST)
• Brown-out Reset (BOR) with Selectable Trip Point
• Extended Watch-Dog Timer (WDT)
• In-Circuit Serial Programming™ (ICSP™)
• In-Circuit Debug (ICD)
• Enhanced Low-Voltage Programming (LVP)
• Operating Voltage Range:
- 1.8V to 3.6V (PIC16LF182X)
- 1.8V to 5.5V (PIC16F182x)
• Programmable Code Protection
• Self-Programmable under Software Control
Low-Power Features:
• Standby Current (PIC16LF182X):
- 100 nA @ 1.8V, typical
• Operating Current (PIC16LF182X):
- 150
μA
@ 1 MHz, 1.8V, typical
• Low-Power Watchdog Timer Current
(PIC16LF182X):
- 1.0
μA
@ 1.8V, typical
©
2008 Microchip Technology Inc.
Advance Information
DS41363A-page 1
PIC16F1826/1827
TABLE 1:
Device
PIC16F1826/1827/PIC16LF1826/1827 FAMILY TYPES
Program
Data
Memory
SRAM
10-bit A/D
EEPROM
I/Os
Flash
(bytes)
(ch)
(bytes)
(words)
2048
2048
4096
4096
256
256
256
256
256
256
384
384
16
16
16
16
12
12
12
12
Timers
8/16-bit
EUSART
MSSP
CCP/
ECCP
0/1
0/1
2/2
2/2
Cap
Touch
Channels
12
12
12
12
PIC16F1826
PIC16LF1826
PIC16F1827
PIC16LF1827
2/1
2/1
4/1
4/1
Yes
Yes
Yes
Yes
1
1
2
2
FIGURE 1:
PDIP, SOIC,
18-PIN PDIP, SOIC PACKAGE DIAGRAM FOR PIC16F1826/PIC16LF1826
RA2/AN2/C12IN2-/C12IN+/V
REF
-/DACOUT
RA3/AN3/C12IN3-/C1IN+/V
REF
+/C1OUT/SRQ
RA4/AN4/C2OUT/TOCKI/SRNQ
RA5/MCLR/V
PP
/SS1
V
SS
RB0/INT/SRI/T1G/CCP1/P1A
RB1/AN11/RX/DT/SDA1/SDI1
RB2/AN10/MDMIN/TX/CK/RX/DT/SDO1
RB3/AN9/MDOUT/CCP1/P1A
1
2
3
4
5
6
7
8
9
PIC16F1826/PIC16LF1826
18
17
16
15
14
13
12
11
10
RA1/AN1/C12IN1-
RA0/AN0/C12IN0-
RA7/OSC1/CLKIN/P1C
RA6/OSC2/CLKOUT/CLKR/P1D/SDO1
V
DD
RB7/AN6/T1OSCO/P1D/MDCIN1/ICSPDAT
RB6/AN5/T1CKI/T1OSCI/P1C/ICSPCLK
RB5/AN7/P1B/TX/CK/SS1
RB4/AN8/SCL1/SCK1/MDCIN2
Legend:
Pin functions in bold can be assigned to one of two pin locations via software.
FIGURE 2:
PDIP, SOIC,
18-PIN PDIP, SOIC PACKAGE DIAGRAM FOR PIC16F1827/PIC16LF1827
RA2/AN2/C12IN2-/C12IN+/V
REF
-/DACOUT
RA3/AN3/C12IN3-/C1IN+/V
REF
+/C1OUT/CCP3/SRQ
RA4/AN4/C2OUT/TOCKI/CCP4/SRNQ
RA5/MCLR/V
PP
/SS1
V
SS
RB0/SRI/T1G/CCP1/P1A
RB1/AN11/RX/DT/SDA1/SDI1
RB2/AN10/MDMIN/TX/CK/RX/DT/SDA2/SDI2/SDO
RB3/AN9/MDOUT/CCP1/P1A
1
PIC16F1827/PIC16LF1827
2
3
4
5
6
7
8
9
18
17
16
15
14
13
12
11
10
RA1/AN1/C12IN1-/SS2
RA0/AN0/C12IN0-/SDO2
RA7/OSC1/CLKIN/P1C/CCP2/P2A
RA6/OSC2/CLKOUT/CLKR/P1D/P2B/SDO1
V
DD
RB7/AN6/T1OSCO/P1D/P2B/MDCIN1/ICSPDAT
RB6/AN5/T1CKI/T1OSCI/P1C/CCP2/P2A/ICSPCLK
RB5/AN7/P1B/TX/CK/SCL2/SCK2/SS1
RB4/AN8/SCL1/SCK1/MDCIN2
Legend:
Pin functions in bold can be assigned to one of two pin locations via software.
DS41363A-page 2
Advance Information
©
2008 Microchip Technology Inc.
PIC16F1826/1827
FIGURE 3:
SSOP
RA2/AN2/C12IN2-/C12IN+/V
REF
-/DACOUT
RA3/AN3/C12IN3-/C1IN+/V
REF
+/C1OUT/SRQ
RA4/AN4/C2OUT/TOCKI/SRNQ
RA5/MCLR/V
PP
/SS1
V
SS
V
SS
RB0/INT/SRI/T1G/CCP1/P1A
RB1/AN11/RX/DT/SDA1/SDI1
RB2/AN10/MDMIN/TX/CK/RX/DT/SDO1
RB3/AN9/MDOUT/CCP1/P1A
1
PIC16F1826/PIC16LF1826
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
RA1/AN1/C12IN1-
RA0/AN0/C12IN0-
RA7/OSC1/CLKIN/P1C
RA6/OSC2/CLKOUT/CLKR/P1D/SDO1
V
DD
V
DD
RB7/AN6/T1OSCO/P1D/MDCIN1/ICSPDAT
RB6/AN5/T1CKI/T1OSCI/P1C/ICSPCLK
RB5/AN7/P1B/TX/CK/SS1
RB4/AN8/SCL1/SCK1/MDCIN2
20-PIN SSOP PACKAGE DIAGRAM FOR PIC16F1826/PIC16LF1826
Legend:
Pin functions in bold can be assigned to one of two pin locations via software.
FIGURE 4:
SSOP
20-PIN SSOP PACKAGE DIAGRAM FOR PIC16F1827/PIC16LF1827
RA2/AN2/C12IN2-/C12IN+/V
REF
-/DACOUT
RA3/AN3/C12IN3-/C1IN+/V
REF
+/C1OUT/CCP3/SRQ
RA4/AN4/C2OUT/TOCKI/CCP4/SRNQ
RA5/MCLR/V
PP
/SS1
V
SS
V
SS
RB0/INT/SRI/T1G/CCP1/P1A
RB1/AN11/RX/DT/SDA1/SDI1
RB2/AN10/MDMIN/TX/CK/RX/DT/SDA2/SDI2/SDO1
RB3/AN9/MDOUT/CCP1/P1A
1
PIC16F1827/PIC16LF1827
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
RA1/AN1/C12IN1-/SS2
RA0/AN0/C12IN0-/SDO2
RA7/OSC1/CLKIN/P1C/CCP2/P2A
RA6/OSC2/CLKOUT/CLKR/P1D/P2B/SDO1
V
DD
V
DD
RB7/AN6/T1OSCO/P1D/P2B/MDCIN1/ICSPDAT
RB6/AN5/T1CKI/T1OSCI/P1C/CCP2/P2A/ICSPCLK
RB5/AN7/P1B/TX/CK/SCL2/SCK2/SS1
RB4/AN8/SCL1/SCK1/MDCIN2
Legend:
Pin functions in bold can be assigned to one of two pin locations via software.
©
2008 Microchip Technology Inc.
Advance Information
DS41363A-page 3