PIC16C717/770/771
18/20-Pin, 8-Bit CMOS Microcontrollers with 10/12-Bit A/D
Microcontroller Core Features:
• High-performance RISC CPU
• Only 35 single word instructions to learn
• All single cycle instructions except for program
branches which are two cycle
• Operating speed: DC - 20 MHz clock input
DC - 200 ns instruction cycle
Device
PIC16C717
PIC16C770
PIC16C771
A/D
A/D
Program
Data Pins Resolution Channels
x14
x8
2K
2K
4K
256 18, 20
256
256
20
20
10 bits
12 bits
12 bits
6
6
6
Memory
Pin Diagram
20-Pin PDIP, SOIC, SSOP
RA0/AN0
RA1/AN1/LVDIN
RA4/T0CKI
RA5/MCLR/V
PP
V
SS
A
VSS
RA2/AN2/V
REF
-/VRL
RA3/AN3/V
REF
+/VRH
RB0/AN4/INT
RB1/AN5/SS
1
2
3
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
RB3/CCP1/P1A
RB2/SCK/SCL
RA7/OSC1/CLKIN
RA6/OSC2/CLKOUT
V
DD
A
VDD
RB7/T1OSI/P1D
RB6/T1OSO/T1CKI/P1C
RB5/SDO/P1B
RB4/SDI/SDA
PIC16C770/771
• Interrupt capability (up to 10 internal/external
interrupt sources)
• Eight level deep hardware stack
• Direct, indirect and relative addressing modes
• Power-on Reset (POR)
• Power-up Timer (PWRT) and
Oscillator Start-up Timer (OST)
• Watchdog Timer (WDT) with its own on-chip RC
oscillator for reliable operation
• Selectable oscillator options:
- INTRC - Internal RC, dual speed (4 MHz and
37 kHz nominal) dynamically switchable for
power savings
- ER - External resistor, dual speed (user
selectable frequency and 37 kHz
nominal)
dynamically switchable for power savings
- EC - External clock
- HS - High speed crystal/resonator
- XT - Crystal/resonator
- LP - Low power crystal
• Low power, high speed CMOS EPROM
technology
• In-Circuit Serial Programming™(ICSP™
• Wide operating voltage range: 2.5V to 5.5V
• 15 I/O pins with individual control for:
- Direction (15 pins)
- Digital/Analog input (6 pins)
- PORTB interrupt on change (8 pins)
- PORTB weak pull-up (8 pins)
- High voltage open drain (1 pin)
• Commercial and Industrial temperature ranges
• Low power consumption:
- < 2 mA @ 4V, 4 MHz
- 11
A
typical @ 2.5V, 37 kHz
- < 1
A
typical standby current
Peripheral Features:
• 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
• Enhanced Capture, Compare, PWM (ECCP)
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
- Enhanced PWM:
- Single, Half-Bridge and Full-Bridge Output
modes
- Digitally programmable deadband delay
• Analog-to-Digital converter:
- PIC16C770/771 12-bit resolution
- PIC16C717 10-bit resolution
• On-chip absolute bandgap voltage reference
generator
• Programmable Brown-out Reset (PBOR)
circuitry
• Programmable Low-Voltage Detection (PLVD)
circuitry
• Master Synchronous Serial Port (MSSP) with two
modes of operation:
- 3-wire SPI™ (supports all 4 SPI modes)
- I
2
C™ compatible including Master mode
support
• Program Memory Read (PMR) capability for look-
up table, character string storage and checksum
calculation purposes
1999-2013 Microchip Technology Inc.
DS41120C-page 1
PIC16C717/770/771
Pin Diagrams
18-Pin PDIP, SOIC
RA0/AN0
RA1/AN1/LVDIN
RA4/T0CKI
RA5/MCLR/V
PP
V
SS
RA2/AN2/V
REF
-/VRL
RA3/AN3/V
REF
+/VRH
RB0/AN4/INT
RB1/AN5/SS
1
2
3
4
5
6
7
8
9
PIC16C717
18
17
16
15
14
13
12
11
10
RB3/CCP1/P1A
RB2/SCK/SCL
RA7/OSC1/CLKIN
RA6/OSC2/CLKOUT
V
DD
RB7/T1OSI/P1D
RB6/T1OSO/T1CKI/P1C
RB5/SDO/P1B
RB4/SDI/SDA
20-Pin SSOP
RA0/AN0
RA1/AN1/LVDIN
RA4/T0CKI
RA5/MCLR/V
PP
V
SS(1)
V
SS(1)
RA2/AN2/V
REF
-/VRL
RA3/AN3/V
REF
+/VRH
RB0/AN4/INT
RB1/AN5/SS
1
2
3
PIC16C717
4
5
6
7
8
9
10
20
19
18
17
16
15
14
13
12
11
RB3/CCP1/P1A
RB2/SCK/SCL
RA7/OSC1/CLKIN
RA6/OSC2/CLKOUT
V
DD(2)
V
DD(2)
RB7/T1OSI/P1D
RB6/T1OSO/T1CKI/P1C
RB5/SDO/P1B
RB4/SDI/SDA
Note 1:
V
SS
pins 5 and 6 must be tied together.
2:
V
DD
pins 15 and 16 must be tied together.
Key Features
PICmicro Mid-Range MCU Family
Reference Manual, (DS33023)
TM
PIC16C717
DC - 20 MHz
POR, BOR, MCLR,
WDT (PWRT, OST)
2K
256
10
Ports A,B
3
1
MSSP
PIC16C770
DC - 20 MHz
POR, BOR, MCLR,
WDT (PWRT, OST)
2K
256
10
Ports A,B
3
1
MSSP
6 input channels
PIC16C771
DC - 20 MHz
POR, BOR, MCLR,
WDT (PWRT, OST)
4K
256
10
Ports A,B
3
1
MSSP
6 input channels
Operating Frequency
RESETS (and Delays)
Program Memory (14-bit words)
Data Memory (bytes)
Interrupts
I/O Ports
Timers
Enhanced Capture/Compare/PWM (ECCP)
modules
Serial Communications
12-bit Analog-to-Digital Module
10-bit Analog-to-Digital Module
Instruction Set
–
6 input channels
35 Instructions
–
35 Instructions
–
35 Instructions
DS41120C-page 2
1999-2013 Microchip Technology Inc.
PIC16C717/770/771
Table of Contents
1.0 Device Overview ...................................................................................................................................................... 5
2.0 Memory Organization............................................................................................................................................... 9
3.0 I/O Ports ................................................................................................................................................................. 25
4.0 Program Memory Read (PMR) .............................................................................................................................. 41
5.0 Timer0 Module ....................................................................................................................................................... 45
6.0 Timer1 Module ....................................................................................................................................................... 47
7.0 Timer2 Module ....................................................................................................................................................... 51
8.0 Enhanced Capture/Compare/PWM (ECCP) Modules............................................................................................ 53
9.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................. 65
10.0 Voltage Reference Module and Low-voltage Detect.......................................................................................... 101
11.0 Analog-to-Digital Converter (A/D) Module.......................................................................................................... 105
12.0 Special Features of the CPU ............................................................................................................................. 117
13.0 Instruction Set Summary.................................................................................................................................... 133
14.0 Development Support ........................................................................................................................................ 141
15.0 Electrical Characteristics.................................................................................................................................... 147
16.0 DC and AC Characteristics Graphs and Tables................................................................................................. 179
17.0 Packaging Information ....................................................................................................................................... 197
APPENDIX A: Revision History ............................................................................................................................... 207
APPENDIX B: Device Differences ............................................................................................................................ 208
Index .......................................................................................................................................................................... 209
On-Line Support.......................................................................................................................................................... 215
Reader Response ....................................................................................................................................................... 216
PIC16C717/770/771 Product Identification System .................................................................................................... 217
TO OUR VALUED CUSTOMERS
It is our intention to provide our valued customers with the best documentation possible to ensure successful use of your Microchip
products. To this end, we will continue to improve our publications to better suit your needs. Our publications will be refined and
enhanced as new volumes and updates are introduced.
If you have any questions or comments regarding this publication, please contact the Marketing Communications Department via
E-mail at
docerrors@mail.microchip.com
or fax the
Reader Response Form
in the back of this data sheet to (480) 792-4150.
We welcome your feedback.
Most Current Data Sheet
To obtain the most up-to-date version of this data sheet, please register at our Worldwide Web site at:
http://www.microchip.com
You can determine the version of a data sheet by examining its literature number found on the bottom outside corner of any page.
The last character of the literature number is the version number, (e.g., DS30000A is version A of document DS30000).
Errata
An errata sheet, describing minor operational differences from the data sheet and recommended workarounds, may exist for current
devices. As device/documentation issues become known to us, we will publish an errata sheet. The errata will specify the revision
of silicon and revision of document to which it applies.
To determine if an errata sheet exists for a particular device, please check with one of the following:
• Microchip’s Worldwide Web site; http://www.microchip.com
• Your local Microchip sales office (see last page)
• The Microchip Corporate Literature Center; U.S. FAX: (480) 792-7277
When contacting a sales office or the literature center, please specify which device, revision of silicon and data sheet (include liter-
ature number) you are using.
Customer Notification System
Register on our web site at
www.microchip.com/cn
to receive the most current information on all of our products.
1999-2013 Microchip Technology Inc.
DS41120C-page 3
PIC16C717/770/771
NOTES:
DS41120C-page 4
1999-2013 Microchip Technology Inc.
PIC16C717/770/771
1.0
DEVICE OVERVIEW
This document contains device-specific information.
Additional information may be found in the PICmicro
TM
Mid-Range MCU Family Reference Manual,
(DS33023), which may be obtained from your local
Microchip Sales Representative or downloaded from
the Microchip website. The Reference Manual should
be considered a complementary document to this data
sheet, and is highly recommended reading for a better
understanding of the device architecture and operation
of the peripheral modules.
There are three devices (PIC16C717, PIC16C770 and
PIC16C771) covered by this data sheet. The
PIC16C717 device comes in 18/20-pin packages and
the PIC16C770/771 devices come in 20-pin packages.
The following two figures are device block diagrams of
the PIC16C717 and the PIC16C770/771.
FIGURE 1-1:
PIC16C717 BLOCK DIAGRAM
13
EPROM
Program
Memory
2K x 14
8 Level Stack
(13-bit)
Program Memory
Read (PMR)
Program Counter
Data Bus
8
PORTA
RA0/AN0
RA1/AN1/LVDIN
RA2/AN2/V
REF
-/VRL
RA3/AN3/V
REF
+/VRH
RA4/T0CKI
RA5/MCLR/V
PP
RA6/OSC2/CLKOUT
RA7/OSC1/CLKIN
RAM
File
Registers
256 x 8
9
Addr MUX
RAM
Addr
(1)
Program
Bus
14
Instruction reg
Direct Addr
7
PORTB
Indirect
Addr
RB0/AN4/INT
RB1/AN5/SS
RB2/SCK/SCL
RB3/CCP1/P1A
RB4/SDI/SDA
RB5/SDO/P1B
RB6/T1OSO/T1CKI/P1C
RB7/T1OSI/P1D
8
FSR reg
Internal
4 MHz, 37 kHz
and ER mode
Instruction
Decode &
Control
Timing
Generation
V
DD
, V
SS
8
STATUS reg
3
Power-up
Timer
Oscillator
Start-up Timer
Power-on
Reset
Watchdog
Timer
Brown-out
Reset
ALU
8
W reg
MUX
OSC1/CLKIN
OSC2/CLKOUT
10-bit
ADC
Bandgap
Reference
Low-voltage
Detect
Timer0
Timer1
Timer2
Enhanced CCP
(ECCP)
Master
Synchronous
Serial Port (MSSP)
Note 1:
Higher order bits are from the STATUS register.
1999-2013 Microchip Technology Inc.
DS41120C-page 5