M
PIC16C717/770/771
Data Sheet
18/20-Pin, 8-Bit CMOS Microcontrollers
with 10/12-bit A/D
2002 Microchip Technology Inc.
DS41120B
Note the following details of the code protection feature on PICmicro
®
MCUs.
•
•
•
The PICmicro family meets the specifications contained in the Microchip Data Sheet.
Microchip believes that its family of PICmicro microcontrollers is one of the most secure products of its kind on the market today,
when used in the intended manner and under normal conditions.
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our knowl-
edge, require using the PICmicro microcontroller in a manner outside the operating specifications contained in the data sheet.
The person doing so may be engaged in theft of intellectual property.
Microchip is willing to work with the customer who is concerned about the integrity of their code.
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable”.
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of
our product.
•
•
•
If you have any further questions about this matter, please contact the local sales office nearest to you.
Information contained in this publication regarding device
applications and the like is intended through suggestion only
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
No representation or warranty is given and no liability is
assumed by Microchip Technology Incorporated with respect
to the accuracy or use of such information, or infringement of
patents or other intellectual property rights arising from such
use or otherwise. Use of Microchip’s products as critical com-
ponents in life support systems is not authorized except with
express written approval by Microchip. No licenses are con-
veyed, implicitly or otherwise, under any intellectual property
rights.
Trademarks
The Microchip name and logo, the Microchip logo, FilterLab,
K
EE
L
OQ
, MPLAB, PIC, PICmicro, PICMASTER, PICSTART,
PRO MATE, SEEVAL and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
dsPIC, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, microID,
microPort, Migratable Memory, MPASM, MPLIB, MPLINK,
MPSIM, MXDEV, PICC, PICDEM, PICDEM.net, rfPIC, Select
Mode and Total Endurance are trademarks of Microchip
Technology Incorporated in the U.S.A.
Serialized Quick Term Programming (SQTP) is a service mark
of Microchip Technology Incorporated in the U.S.A.
All other trademarks mentioned herein are property of their
respective companies.
© 2002, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received QS-9000 quality system
certification for its worldwide headquarters,
design and wafer fabrication facilities in
Chandler and Tempe, Arizona in July 1999. The
Company’s quality system processes and
procedures are QS-9000 compliant for its
PICmicro
®
8-bit MCUs, K
EE
L
OQ
®
code hopping
devices, Serial EEPROMs and microperipheral
products. In addition, Microchip’s quality
system for the design and manufacture of
development systems is ISO 9001 certified.
DS41120B - page ii
2002 Microchip Technology Inc.
M
Memory
Device
PIC16C717
PIC16C770
PIC16C771
PIC16C717/770/771
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
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
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
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
2002 Microchip Technology Inc.
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
DS41120B-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
DS41120B-page 2
2002 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.
2002 Microchip Technology Inc.
DS41120B-page 3