The PIC16F818/819 belongs to the Mid-Range familyof the PICmicro® devices. The devices differ from each
other in the amount of Flash program memory, data
memory and data EEPROM (see Table 1-1). A block
diagram of the devices is shown in Figure 1-1. These
devices contain features that are new to the PIC16
product line:
• Internal RC oscillator with eight selectable
frequencies, including 31.25 kHz, 125 kHz,
250 kHz, 500 kHz, 1 MHz, 2 MHz, 4 MHz and
8 MHz. The INTRC can be configured as the
system clock via the configuration bits. Refer to
Section 4.5 “Internal Oscillator Block” and
Section 12.1 “Configuration Bits” for further
details.
• The Timer1 module current consumption has
been greatly reduced from 20 μA (previous PIC16
devices) to 1.8 μA typical (32 kHz at 2V), which is
ideal for real-time clock applications. Refer to
Section 6.0 “Timer0 Module” for further details.
• The amount of oscillator selections has increased.
The RC and INTRC modes can be selected with
an I/O pin configured as an I/O or a clock output
(FOSC/4). An external clock can be configured
with an I/O pin. Refer to Section 4.0 “Oscillator
Configurations” for further details.
Special Microcontroller Features:
• 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
• 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)