PIC16F818/819
18/20-Pin Enhanced Flash Microcontrollers
with nanoWatt Technology
Low-Power Features:
Pin Diagram
• Power-Managed modes:
18-Pin PDIP, SOIC
- Primary Run: XT, RC oscillator,
87 A, 1 MHz, 2V
1
2
3
4
5
6
7
8
9
RA2/AN2/VREF-
RA3/AN3/VREF+
RA4/AN4/T0CKI
RA5/MCLR/VPP
VSS
18
17
16
15
14
13
12
11
10
RA1/AN1
RA0/AN0
- INTRC: 7 A, 31.25 kHz, 2V
- Sleep: 0.2 A, 2V
• Timer1 oscillator: 1.8 A, 32 kHz, 2V
• Watchdog Timer: 0.7 A, 2V
• Wide operating voltage range:
- Industrial: 2.0V to 5.5V
RA7/OSC1/CLKI
RA6/OSC2/CLKO
VDD
RB7/T1OSI/PGD
RB6/T1OSO/T1CKI/PGC
RB5/SS
RB0/INT
RB1/SDI/SDA
RB2/SDO/CCP1
RB3/CCP1/PGM
RB4/SCK/SCL
Oscillators:
Special Microcontroller Features:
• Three Crystal modes:
- LP, XT, HS: up to 20 MHz
• Two External RC modes
• One External Clock mode:
- ECIO: up to 20 MHz
• 100,000 erase/write cycles Enhanced Flash
program memory typical
• 1,000,000 typical erase/write cycles EEPROM
data memory typical
• EEPROM Data Retention: > 40 years
• In-Circuit Serial ProgrammingTM (ICSPTM) via two pins
• Processor read/write access to program memory
• Low-Voltage Programming
• Internal oscillator block:
- 8 user selectable frequencies: 31 kHz, 125 kHz,
250 kHz, 500 kHz, 1 MHz, 2 MHz, 4 MHz, 8 MHz
• In-Circuit Debugging via two pins
Peripheral Features:
• 16 I/O pins with individual direction control
• High sink/source current: 25 mA
• Timer0: 8-bit timer/counter with 8-bit prescaler
• Timer1: 16-bit timer/counter with prescaler, can be
incremented during Sleep via external crystal/clock
• Timer2: 8-bit timer/counter with 8-bit period
register, prescaler and postscaler
• Capture, Compare, PWM (CCP) module:
- Capture is 16-bit, max. resolution is 12.5 ns
- Compare is 16-bit, max. resolution is 200 ns
- PWM max. resolution is 10-bit
• 10-bit, 5-channel Analog-to-Digital converter
• Synchronous Serial Port (SSP) with
SPI (Master/Slave) and I2C™ (Slave)
Program Memory
Data Memory
SRAM EEPROM
SSP
10-bit
A/D (ch)
CCP
(PWM)
Timers
8/16-bit
Device
I/O Pins
Flash
# Single-Word
Instructions
Slave
SPI
2
(Bytes)
(Bytes)
(Bytes)
I C™
PIC16F818
PIC16F819
1792
3584
1024
2048
128
256
128
256
16
16
5
5
1
1
Y
Y
Y
Y
2/1
2/1
2001-2013 Microchip Technology Inc.
DS39598F-page 1