User Manual

© 2007 Microchip Technology Inc. DS41203D-page 1
PIC16F688
High-Performance RISC CPU:
Only 35 instructions to learn:
- All single-cycle instructions except branches
Operating speed:
- DC – 20 MHz oscillator/clock input
- DC – 200 ns instruction cycle
Interrupt capability
8-level deep hardware stack
Direct, Indirect and Relative Addressing modes
Special Microcontroller Features:
Precision Internal Oscillator:
- Factory calibrated to ±1%
- Software selectable frequency range of
8 MHz to 125 kHz
- Software tunable
- Two-Speed Start-Up mode
- Crystal fail detect for critical applications
- Clock mode switching during operation for
power savings
Power-Saving Sleep mode
Wide operating voltage range (2.0V-5.5V)
Industrial and Extended temperature range
Power-on Reset (POR)
Power-up Timer (PWRT) and Oscillator Start-up
Timer (OST)
Brown-out Reset (BOR) with software control
option
Enhanced Low-Current Watchdog Timer (WDT)
with on-chip oscillator (software selectable nomi-
nal 268 seconds with full prescaler) with software
enable
Multiplexed Master Clear with weak pull-up or
input only pin
Programmable code protection
High-Endurance Flash/EEPROM cell:
- 100,000 write Flash endurance
- 1,000,000 write EEPROM endurance
- Flash/Data EEPROM retention: > 40 years
Low-Power Features:
Standby Current:
- 50 nA @ 2.0V, typical
Operating Current:
-11μA @ 32 kHz, 2.0V, typical
-220μA @ 4 MHz, 2.0V, typical
Watchdog Timer Current:
-1μA @ 2.0V, typical
Peripheral Features:
12 I/O pins with individual direction control:
- High-current source/sink for direct LED drive
- Interrupt-on-change pin
- Individually programmable weak pull-ups
- Ultra Low-Power Wake-up
Analog Comparator module with:
- Two analog comparators
- Programmable On-chip Voltage Reference
(CV
REF) module (% of VDD)
- Comparator inputs and outputs externally
accessible
A/D Converter:
- 10-bit resolution and 8 channels
Timer0: 8-bit timer/counter with 8-bit
programmable prescaler
Enhanced Timer1:
- 16-bit timer/counter with prescaler
- External Timer1 Gate (count enable)
- Option to use OSC1 and OSC2 in LP mode as
Timer1 oscillator if INTOSC mode selected
Enhanced USART Module:
- Supports RS-485, RS-232, and LIN 1.2
- Auto-Baud Detect
- Auto-wake-up on Start bit
In-Circuit Serial Programming™ (ICSP™) via two
pins
Device
Program
Memory
Data Memory
I/O
10-bit A/D
(ch)
Comparators
Timers
8/16-bit
Flash
(words)
SRAM
(bytes)
EEPROM
(bytes)
PIC16F688 4096 256 256 12 8 2 1/1
14-Pin Flash-Based, 8-Bit CMOS Microcontrollers with nanoWatt Technology