PIC16C712/716
8-Bit CMOS Microcontrollers with A/D Converter
and Capture/Compare/PWM
Devices included in this Data Sheet:
• PIC16C712
• PIC16C716
Pin Diagrams
18-pin PDIP, SOIC, Windowed CERDIP
RA2/AN2
RA3/AN3/V
REF
RA4/T0CKI
MCLR/V
PP
V
SS
RB0/INT
RB1/T1OSO/T1CKI
RB2/T1OSI
RB3/CCP1
1
2
4
5
6
7
8
9
18
17
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
PIC16C712
PIC16C716
Program
Memory
1K
2K
Data Memory
128
128
PIC16C716
PIC16C712
3
16
15
14
13
12
11
10
RA1/AN1
RA0/AN0
OSC1/CLKIN
OSC2/CLKOUT
V
DD
RB7
RB6
RB5
RB4
20-pin SSOP
RA2/AN2
RA3/AN3/V
REF
RA4/T0CKI
MCLR/V
PP
V
SS
V
SS
RB0/INT
RB1/T1OSO/T1CKI
RB2/T1OSI
RB3/CCP1
1
2
20
19
• Interrupt capability
(up to 7 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
• Brown-out detection circuitry for
Brown-out Reset (BOR)
• Programmable code-protection
• Power-saving Sleep mode
• Selectable oscillator options
• Low-power, high-speed CMOS EPROM
technology
• Fully static design
•
In-Circuit Serial Programming(ICSP™)
• Wide operating voltage range: 2.5V to 5.5V
• High Sink/Source Current 25/25 mA
•
Commercial, Industrial and
Extended
temperature
ranges
• Low-power consumption:
- < 2 mA @ 5V, 4 MHz
- 22.5
A,
typical @ 3V, 32 kHz
- < 1
A,
typical standby current
PIC16C716
PIC16C712
3
4
5
6
7
8
9
10
18
17
16
15
14
13
12
11
RA1/AN1
RA0/AN0
OSC1/CLKIN
OSC2/CLKOUT
V
DD
V
DD
RB7
RB6
RB5
RB4
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
• Capture, Compare, PWM module
• Capture is 16-bit, max. resolution is 12.5 ns,
Compare is 16-bit, max. resolution is 200 ns,
PWM maximum resolution is 10-bit
• 8-bit multi-channel Analog-to-Digital converter
1999-2013 Microchip Technology Inc.
DS41106C-page 1
PIC16C712/716
Key Features
PIC
®
Mid-Range Reference Manual (DS33023)
Operating Frequency
Resets (and Delays)
Program Memory (14-bit words)
Data Memory (bytes)
Interrupts
I/O Ports
Timers
Capture/Compare/PWM modules
8-bit Analog-to-Digital Module
PIC16C712
DC – 20 MHz
POR, BOR (PWRT, OST)
1K
128
7
Ports A,B
3
1
4 input channels
PIC16C716
DC – 20 MHz
POR, BOR (PWRT, OST)
2K
128
7
Ports A,B
3
1
4 input channels
PIC16C7XX FAMILY OF DEVICES
PIC16C710
Clock
Maximum Frequency
of Operation (MHz)
EPROM Program
Memory
(x14 words)
Data Memory (bytes)
Timer Module(s)
20
512
PIC16C71
20
1K
PIC16C711
20
1K
PIC16C712
20
1K
PIC16C715
20
2K
PIC16C716
20
2K
PIC16C72A PIC16C73B
20
2K
20
4K
Memory
36
TMR0
36
TMR0
68
TMR0
128
TMR0
TMR1
TMR2
1
—
4
7
13
2.5-5.5
Yes
Yes
128
TMR0
128
TMR0
TMR1
TMR2
1
—
4
7
13
2.5-5.5
Yes
Yes
128
TMR0
TMR1
TMR2
1
SPI/I
2
C
5
8
22
2.5-5.5
Yes
Yes
192
TMR0
TMR1
TMR2
2
SPI/I
2
C,
USART
5
11
22
2.5-5.5
Yes
Yes
Capture/Compare/
Peripherals
PWM Module(s)
Serial Port(s)
(SPI™/I
2
C™, USART)
A/D Converter (8-bit)
Channels
Interrupt Sources
I/O Pins
Voltage Range (Volts)
Features
In-Circuit Serial
Programming™
Brown-out Reset
Packages
—
—
4
4
13
2.5-6.0
Yes
Yes
—
—
4
4
13
3.0-6.0
Yes
—
—
—
4
4
13
2.5-6.0
Yes
Yes
—
—
4
4
13
2.5-5.5
Yes
Yes
18-pin DIP, 18-pin DIP, 18-pin DIP, 18-pin DIP, 18-pin DIP, 18-pin DIP, 28-pin SDIP, 28-pin SDIP,
SOIC;
SOIC
SOIC;
SOIC;
SOIC;
SOIC;
SOIC, SSOP SOIC
20-pin SSOP
20-pin SSOP 20-pin SSOP 20-pin SSOP 20-pin SSOP
DS41106C-page 2
1999-2013 Microchip Technology Inc.
PIC16C712/716
Table of Contents
1.0 Device Overview .......................................................................................................................................................................... 5
2.0 Memory Organization ................................................................................................................................................................... 9
3.0 I/O Ports ..................................................................................................................................................................................... 21
4.0 Timer0 Module ........................................................................................................................................................................... 29
5.0 Timer1 Module ........................................................................................................................................................................... 31
6.0 Timer2 Module ........................................................................................................................................................................... 36
7.0 Capture/Compare/PWM (CCP) Module(s) ................................................................................................................................. 39
8.0 Analog-to-Digital Converter (A/D) Module.................................................................................................................................. 45
9.0 Special Features of the CPU...................................................................................................................................................... 51
10.0 Instruction Set Summary ............................................................................................................................................................ 67
11.0 Development Support................................................................................................................................................................. 69
12.0 Electrical Characteristics ............................................................................................................................................................ 73
13.0 Packaging Information................................................................................................................................................................ 89
Revision History .................................................................................................................................................................................. 95
Conversion Considerations ................................................................................................................................................................. 95
Migration from Base-line to Mid-Range Devices ................................................................................................................................. 95
Index ................................................................................................................................................................................................... 97
On-Line Support................................................................................................................................................................................. 101
Reader Response .............................................................................................................................................................................. 102
PIC16C712/716 Product Identification System .................................................................................................................................. 103
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@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)
When contacting a sales office, please specify which device, revision of silicon and data sheet (include literature number) you are
using.
Customer Notification System
Register on our web site at
www.microchip.com
to receive the most current information on all of our products.
1999-2013 Microchip Technology Inc.
DS41106C-page 3
PIC16C712/716
NOTES:
DS41106C-page 4
1999-2013 Microchip Technology Inc.
PIC16C712/716
1.0
DEVICE OVERVIEW
There are two devices (PIC16C712, PIC16C716)
covered by this data sheet.
Figure 1-1 is the block diagram for both devices. The
pinouts are listed in Table 1-1.
This document contains device-specific information.
Additional information may be found in the PIC
®
Mid-
Range Reference Manual, (DS33023), which may be
obtained from your local Microchip Sales Representa-
tive or downloaded from the Microchip web site. The
Reference Manual should be considered a comple-
mentary document to this data sheet, and is highly rec-
ommended reading for a better understanding of the
device architecture and operation of the peripheral
modules.
FIGURE 1-1:
PIC16C712/716 BLOCK DIAGRAM
13
EPROM
1K X 14
or
2K x 14
Program
Memory
Program Counter
Data Bus
8
PORTA
RA0/AN0
RA1/AN1
RA2/AN2
RA3/AN3/V
REF
RA4/T0CKI
8 Level Stack
(13-bit)
Program
Bus
RAM
128 x 8
File
Registers
RAM Addr
(1)
9
PORTB
14
Instruction Reg
Direct Addr
7
Addr MUX
8
Indirect
Addr
FSR Reg
STATUS Reg
8
3
Power-up
Timer
Instruction
Decode &
Control
OSC1/CLKIN
OSC2/CLKOUT
Timing
Generation
Oscillator
Start-up Timer
Power-on
Reset
Watchdog
Timer
Brown-out
Reset
8
W Reg
ALU
RB0/INT
RB1/T1OSO/T1CKI
RB2/T1OSI
RB3/CCP1
RB4
RB5
RB6
RB7
MUX
MCLR
V
DD
,
V
SS
Timer0
Timer1
Timer2
CCP1
A/D
Note 1:
Higher order bits are from the STATUS register.
1999-2013 Microchip Technology Inc.
DS41106C-page 5