© 2007 Microchip Technology Inc. DS41250F
PIC16F913/914/916/917/946
Data Sheet
28/40/44/64-Pin Flash-Based,
8-Bit CMOS Microcontrollers with
LCD Driver and nanoWatt Technology
DS41250F-page ii © 2007 Microchip Technology Inc.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION,
INCLUDING BUT NOT LIMITED TO ITS CONDITION,
QUALITY, PERFORMANCE, MERCHANTABILITY OR
FITNESS FOR PURPOSE. Microchip disclaims all liability
arising from this information and its use. Use of Microchip
devices in life support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, KEELOQ, KEELOQ logo, microID, MPLAB, PIC,
PICmicro, PICSTART, PRO MATE, PowerSmart, rfPIC, and
SmartShunt are registered trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries.
AmpLab, FilterLab, Linear Active Thermistor, Migratable
Memory, MXDEV, MXLAB, PS logo, SEEVAL, SmartSensor
and The Embedded Control Solutions Company are
registered trademarks of Microchip Technology Incorporated
in the U.S.A.
Analog-for-the-Digital Age, Application Maestro, CodeGuard,
dsPICDEM, dsPICDEM.net, dsPICworks, ECAN,
ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, Mindi, MiWi,
MPASM, MPLAB Certified logo, MPLIB, MPLINK, PICkit,
PICDEM, PICDEM.net, PICLAB, PICtail, PowerCal,
PowerInfo, PowerMate, PowerTool, REAL ICE, rfLAB,
rfPICDEM, Select Mode, Smart Serial, SmartTel, Total
Endurance, UNI/O, WiperLock and ZENA are trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
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.
© 2007, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Note the following details of the code protection feature on Microchip devices:
Microchip products meet the specification contained in their particular Microchip Data Sheet.
Microchip believes that its family of products is one of the most secure families 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
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is 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
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Microchip received ISO/TS-16949:2002 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
© 2007 Microchip Technology Inc. DS41250F-page 1
PIC16F913/914/916/917/946
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
Program Memory Read (PMR) capability
Interrupt capability
8-level deep hardware stack
Direct, Indirect and Relative Addressing modes
Special Microcontroller Features:
Precision Internal Oscillator:
- Factory calibrated to ±1%, typical
- Software selectable frequency range of
8 MHz to 125 kHz
- Software tunable
- Two-Speed Start-up mode
- External Oscillator fail detect for critical
applications
- Clock mode switching during operation for
power savings
Software selectable 31 kHz internal oscillator
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
nominal 268 seconds with full prescaler) with
software enable
Multiplexed Master Clear with pull-up/input 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:
- <100 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:
Liquid Crystal Display module:
- Up to 60/96/168 pixel drive capability on
28/40/64-pin devices, respectively
- Four commons
Up to 24/35/53 I/O pins and 1 input-only pin:
- High-current source/sink for direct LED drive
- Interrupt-on-change pin
- Individually programmable weak pull-ups
In-Circuit Serial Programming™ (ICSP™) via two
pins
Analog comparator module with:
- Two analog comparators
- Programmable on-chip voltage reference
(CVREF) module (% of VDD)
- Comparator inputs and outputs externally
accessible
A/D Converter:
- 10-bit resolution and up to 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 as Timer1
oscillator if INTOSCIO or LP mode is
selected
Timer2: 8-bit timer/counter with 8-bit period
register, prescaler and postscaler
Addressable Universal Synchronous
Asynchronous Receiver Transmitter (AUSART)
Up to 2 Capture, Compare, PWM modules:
- 16-bit Capture, max. resolution 12.5 ns
- 16-bit Compare, max. resolution 200 ns
- 10-bit PWM, max. frequency 20 kHz
Synchronous Serial Port (SSP) with I2C
28/40/44/64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with
LCD Driver and nanoWatt Technology
PIC16F913/914/916/917/946
DS41250F-page 2 © 2007 Microchip Technology Inc.
Pin Diagrams – PIC16F914/917, 40-Pin
Device
Program
Memory Data Memory
I/O 10-bit A/D
(ch)
LCD
(segment
drivers)
CCP Timers
8/16-bit
Flash
(words/bytes)
SRAM
(bytes)
EEPROM
(bytes)
PIC16F913 4K/7K 256 256 24 5 16(1) 12/1
PIC16F914 4K/7K 256 256 35 8 24 2 2/1
PIC16F916 8K/14K 352 256 24 5 16(1) 12/1
PIC16F917 8K/14K 352 256 35 8 24 2 2/1
PIC16F946 8K/14K 336 256 53 8 42 2 2/1
Note 1: COM3 and SEG15 share the same physical pin on the PIC16F913/916, therefore SEG15 is not available
when using 1/4 multiplex displays.
40-pin PDIP
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
40
39
38
37
36
35
34
33
32
31
30
29
28
27
26
25
24
23
22
21
PIC16F914/917
RE3/MCLR/VPP
RA0/AN0/C1-/SEG12
RA1/AN1/C2-/SEG7
RA2/AN2/C2+/VREF-/COM2
RA3/AN3/C1+/VREF+/SEG15
RA4/C1OUT/T0CKI/SEG4
RA5/AN4/C2OUT/SS/SEG5
RE0/AN5/SEG21
RE1/AN6/SEG22
RE2/AN7/SEG23
VDD
VSS
RA7/OSC1/CLKIN/T1OSI
RA6/OSC2/CLKOUT/T1OSO
RC0/VLCD1
RC1/VLCD2
RC2/VLCD3
RC3/SEG6
RD0/COM3
RD1
RB7/ICSPDAT/ICDDAT/SEG13
RB6/ICSPCLK/ICDCK/SEG14
RB5/COM1
RB4/COM0
RB3/SEG3
RB2/SEG2
RB1/SEG1
RB0/INT/SEG0
VDD
VSS
RD7/SEG20
RD6/SEG19
RD5/SEG18
RD4/SEG17
RC7/RX/DT/SDI/SDA/SEG8
RC6/TX/CK/SCK/SCL/SEG9
RC5/T1CKI/CCP1/SEG10
RC4/T1G/SDO/SEG11
RD3/SEG16
RD2/CCP2
© 2007 Microchip Technology Inc. DS41250F-page 3
PIC16F913/914/916/917/946
TABLE 1: PIC16F914/917 40-PIN SUMMARY
I/O Pin A/D LCD Comparators Timers CCP AUSART SSP Interrupt Pull-Up Basic
RA0 2AN0 SEG12 C1-
RA1 3 AN1 SEG7 C2-
RA2 4AN2/VREF- COM2 C2+
RA3 5 AN3/VREF+SEG15 C1+
RA4 6SEG4 C1OUT T0CKI
RA5 7 AN4 SEG5 C2OUT SS ——
RA6 14 T1OSO OSC2/CLKOUT
RA7 13 T1OSI OSC1/CLKIN
RB0 33 SEG0 INT Y
RB1 34 SEG1 Y
RB2 35 SEG2 Y
RB3 36 SEG3 Y
RB4 37 COM0 IOC Y
RB5 38 COM1 IOC Y
RB6 39 SEG14 IOC YICSPCLK/ICDCK
RB7 40 SEG13 IOC Y ICSPDAT/ICDDAT
RC0 15 VLCD1
RC1 16 VLCD2
RC2 17 VLCD3
RC3 18 SEG6
RC4 23 SEG11 T1G SDO
RC5 24 SEG10 T1CKI CCP1
RC6 25 SEG9 TX/CK SCK/SCL
RC7 26 SEG8 RX/DT SDI/SDA
RD0 19 COM3
RD1 20
RD2 21 CCP2
RD3 22 SEG16
RD4 27 SEG17
RD5 28 SEG18
RD6 29 SEG19
RD7 30 SEG20
RE0 8AN5 SEG21
RE1 9 AN6 SEG22
RE2 10 AN7 SEG23
RE3 1 Y(1) MCLR/VPP
11 VDD
—32 VDD
12 VSS
—31 VSS
Note 1: Pull-up enabled only with external MCLR configuration.
PIC16F913/914/916/917/946
DS41250F-page 4 © 2007 Microchip Technology Inc.
Pin Diagrams – PIC16F913/916, 28-Pin
28-pin PDIP, SOIC, SSOP
28-pin QFN
10
11
2
3
4
5
6
1
8
7
9
12
13
14 15
16
17
18
19
20
23
24
25
26
27
28
22
21
PIC16F913/916
RE3/MCLR/VPP
RA0/AN0/C1-/SEG12
RA1/AN1/C2-/SEG7
RA2/AN2/C2+/VREF-/COM2
RA3/AN3/C1+/VREF+/COM3/SEG15
RA4/C1OUT/T0CKI/SEG4
RA5/AN4/C2OUT/SS/SEG5
VSS
RA7/OSC1/CLKIN/T1OSI
RA6/OSC2/CLKOUT/T1OSO
RC0/VLCD1
RC1/VLCD2
RC2/VLCD3
RC3/SEG6
RB7/ICSPDAT/ICDDAT/SEG13
RB6/ICSPCLK/ICDCK/SEG14
RB5/COM1
RB4/COM0
RB3/SEG3
RB2/SEG2
RB1/SEG1
RB0/INT/SEG0
VDD
VSS
RC7/RX/DT/SDI/SDA/SEG8
RC6/TX/CK/SCK/SCL/SEG9
RC5/T1CKI/CCP1/SEG10
RC4/T1G/SDO/SEG11
16
2
7
1
3
6
5
4
15
21
19
20
17
18
22
28
26
27
23
24
25
14
8
10
9
13
12
11
PIC16F913/916
RA1/AN1/C2-/SEG7
RA0/AN0/C1-/SEG12
RE3/MCLR/VPP
RB7/ICSPDAT/ICDDAT/SEG13
RB6/ICSPCLK/ICDCK/SEG14
RB5/COM1
RB4/COM0
RC0/VLCD1
RC1/VLCD2
RC2/VLCD3
RC3/SEG6
RC4/T1G/SDO/SEG11
RC5/T1CKI/CCP1/SEG10
RC6/TX/CK/SCK/SCL/SEG9
RA2/AN2/C2+/VREF-/COM2
RA3/AN3/C1+/VREF+/COM3/SEG15
RA4/C1OUT/T0CKI/SEG4
RA5/AN4/C2OUT/SS/SEG5
VSS
RA7/OSC1/CLKIN/T1OSI
RA6/OSC2/CLKOUT/T1OSO
RB3/SEG3
RB2/SEG2
RB1/SEG1
RB0/INT/SEG0
VDD
VSS
RC7/RX/DT/SDI/SDA/SEG8
© 2007 Microchip Technology Inc. DS41250F-page 5
PIC16F913/914/916/917/946
TABLE 2: PIC16F913/916 28-PIN (PDIP, SOIC, SSOP) SUMMARY
I/O Pin A/D LCD Comparators Timers CCP AUSART SSP Interrupt Pull-Up Basic
RA0 2AN0 SEG12 C1-
RA1 3 AN1 SEG7 C2-
RA2 4AN2/VREF- COM2 C2+
RA3 5 AN3/VREF+SEG15/
COM3
C1+
RA4 6 SEG4 C1OUT T0CKI
RA5 7 SEG5 C2OUT SS ——
RA6 10 T1OSO OSC2/CLKOUT
RA7 9 T1OSI OSC1/CLKIN
RB0 21 SEG0 INT Y
RB1 22 SEG1 Y
RB2 23 SEG2 Y
RB3 24 SEG3 Y
RB4 25 COM0 IOC Y
RB5 26 COM1 IOC Y
RB6 27 SEG14 IOC YICSPCLK/ICDCK
RB7 28 SEG13 IOC Y ICSPDAT/ICDDAT
RC0 11 VLCD1
RC1 12 VLCD2
RC2 13 VLCD3
RC3 14 SEG6
RC4 15 SEG11 T1G SDO
RC5 16 SEG10 T1CKI CCP1
RC6 17 SEG9 TX/CK SCK/SCL
RC7 18 SEG8 RX/DT SDI/SDA
RE3 1 Y(1) MCLR/VPP
20——— VDD
8 VSS
19——— VSS
Note 1: Pull-up enabled only with external MCLR configuration.
PIC16F913/914/916/917/946
DS41250F-page 6 © 2007 Microchip Technology Inc.
TABLE 3: PIC16F913/916 28-PIN (QFN) SUMMARY
I/O Pin A/D LCD Comparators Timers CCP AUSART SSP Interrupt Pull-Up Basic
RA0 27 AN0 SEG12 C1-
RA1 28 AN1 SEG7 C2-
RA2 1AN2/VREF- COM2 C2+
RA3 2 AN3/VREF+ SEG15/
COM3
C1+
RA4 3 SEG4 C1OUT T0CKI
RA5 4 AN4 SEG5 C2OUT SS ——
RA6 7 T1OSO OSC2/CLKOUT
RA7 6 T1OSI OSC1/CLKIN
RB0 18 SEG0 INT Y
RB1 19 SEG1 Y
RB2 20 SEG2 Y
RB3 21 SEG3 Y
RB4 22 COM0 IOC Y
RB5 23 COM1 IOC Y
RB6 24 SEG14 IOC YICSPCLK/ICDCK
RB7 25 SEG13 IOC Y ICSPDAT/ICDDAT
RC0 8 VLCD1
RC1 9 VLCD2
RC2 10 VLCD3
RC3 11 SEG6
RC4 12 SEG11 T1G SDO
RC5 13 SEG10 T1CKI CCP1
RC6 14 SEG9 TX/CK SCK/SCL
RC7 15 SEG8 RX/DT SDI/SDA
RE3 26 Y(1) MCLR/VPP
17———VDD
5 VSS
16——— VSS
Note 1: Pull-up enabled only with external MCLR configuration.
© 2007 Microchip Technology Inc. DS41250F-page 7
PIC16F913/914/916/917/946
Pin Diagrams – PIC16F914/917, 44-Pin
44-pin TQFP
10
11
2
3
6
1
18
19
20
21
22
12
13
14
15
38
8
7
44
43
42
41
40
39
16
17
29
30
31
32
33
23
24
25
26
27
28
36
34
35
9
37
5
4
PIC16F914/917
NC
RC0/VLCD1
RA6/OSC2/CLKOUT/T1OSO
RA7/OSC1/CLKIN/T1OSI
VSS
VDD
RE2/AN7/SEG23
RE1/AN6/SEG22
RE0/AN5/SEG21
RA5/AN4/C2OUT/SS/SEG5
RA4/C1OUT/T0CKI/SEG4
RC7/RX/DT/SDI/SDA/SEG8
RD4/SEG17
RD5/SEG18
RD6/SEG19
RD7/SEG20
VSS
VDD
RB0/SEG0/INT
RB1/SEG1
RB2/SEG2
RB3/SEG3
NC
NC
RB4/COM0
RB5/COM1
RB6/ICSPCLK/ICDCK/SEG14
RB7/ICSPDAT/ICDDAT/SEG13
RE3/MCLR/VPP
RA0/C1-/AN0/SEG12
RA1/C2-/AN1/SEG7
RA2/AN2/C2+/VREF-/COM2
RA3/AN3/VREF+/C1+/SEG15
RC6/TX/CK/SCK/SCL/SEG9
RC5/T1CKI/CCP1/SEG10
RC4/T1G/SDO/SEG11
RD3/SEG16
RD2/CCP2
RD1
RD0/COM3
RC3/SEG6
RC2/VLCD3
RC1/VLCD2
NC
44-pin QFN
10
11
2
3
6
1
18
19
20
21
22
12
13
14
15
38
8
7
44
43
42
41
40
39
16
17
29
30
31
32
33
23
24
25
26
27
28
36
34
35
9
37
5
4
PIC16F914/917
RA6/OSC2/CLKOUT/T1OSO
RA7/OSC1/CLKIN/T1OSI
VSS
VSS
NC
VDD
RE2/AN7/SEG23
RE1/AN6/SEG22
RE0/AN5/SEG21
RA5/AN4/C2OUT/SS/SEG5
RA4/C1OUT/T0CKI/SEG4
RC7/RX/DT/SDI/SDA/SEG8
RD4/SEG17
RD5/SEG18
RD6/SEG19
RD7/SEG20
VSS
VDD
VDD
RB0/INT/SEG0
RB1/SEG1
RB2/SEG2
RB3/SEG3
NC
RB4/COM0
RB5/COM1
RB6/ICSPCLK/ICDCK/SEG14
RB7/ICSPDAT/ICDDAT/SEG13
RE3/MCLR/VPP
RA0/AN0/C1-/SEG12
RA1/AN1/C2-/SEG7
RA2/AN2/C2+/VREF-/COM2
RA3/AN3/C1+/VREF+/SEG15
RC6/TX/CK/SCK/SCL/SEG9
RC5/T1CKI/CCP1/SEG10
RC4/T1G/SDO/SEG11
RD3/SEG16
RD2/CCP2
RD1
RD0/COM3
RC3/SEG6
RC2/VLCD3
RC1/VLCD2
RC0/VLDC1
PIC16F913/914/916/917/946
DS41250F-page 8 © 2007 Microchip Technology Inc.
TABLE 4: PIC16F914/917 44-PIN (TQFP) SUMMARY
I/O Pin A/D LCD Comparators Timers CCP AUSART SSP Interrupt Pull-Up Basic
RA0 19 AN0 SEG12 C1-
RA1 20 AN1 SEG7 C2-
RA2 21 AN2/VREF- COM2 C2+
RA3 22 AN3/VREF+ SEG15 C1+
RA4 23 SEG4 C1OUT T0CKI
RA5 24 AN4 SEG5 C2OUT SS ——
RA6 31 T1OSO OSC2/CLKOUT
RA7 30 T1OSI OSC1/CLKIN
RB0 8 SEG0 INT Y
RB1 9 SEG1 Y
RB2 10 SEG2 Y
RB3 11 SEG3 Y
RB4 14 COM0 IOC Y
RB5 15 COM1 IOC Y
RB6 16 SEG14 IOC YICSPCLK/ICDCK
RB7 17 SEG13 IOC Y ICSPDAT/ICDDAT
RC0 32 VLCD1
RC1 35 VLCD2
RC2 36 VLCD3
RC3 37 SEG6
RC4 42 SEG11 T1G SDO
RC5 43 SEG10 T1CKI CCP1
RC6 44 SEG9 TX/CK SCK/SCL
RC7 1 SEG8 RX/DT SDI/SDA
RD0 38 COM3
RD1 39
RD2 40 CCP2
RD3 41 SEG16
RD4 2 SEG17
RD5 3 SEG18
RD6 4 SEG19
RD7 5 SEG20
RE0 25 AN5 SEG21
RE1 26 AN6 SEG22
RE2 27 AN7 SEG23
RE318———Y
(1) MCLR/VPP
7 VDD
28———VDD
6 VSS
29——— VSS
12 NC
13——— NC
33 NC
34——— NC
Note 1: Pull-up enabled only with external MCLR configuration.
© 2007 Microchip Technology Inc. DS41250F-page 9
PIC16F913/914/916/917/946
TABLE 5: PIC16F914/917 44-PIN (QFN) SUMMARY
I/O Pin A/D LCD Comparators Timers CCP AUSART SSP Interrupt Pull-Up Basic
RA0 19 AN0 SEG12 C1-
RA1 20 AN1 SEG7 C2-
RA2 21 AN2/VREF- COM2 C2+
RA3 22 AN3/VREF+ SEG15 C1+
RA4 23 SEG4 C1OUT T0CKI
RA5 24 AN4 SEG5 C2OUT SS ——
RA6 33 T1OSO OSC2/CLKOUT
RA7 32 T1OSI OSC1/CLKIN
RB0 9 SEG0 INT Y
RB1 10 SEG1 Y
RB2 11 SEG2 Y
RB3 12 SEG3 Y
RB4 14 COM0 IOC Y
RB5 15 COM1 IOC Y
RB6 16 SEG14 IOC YICSPCLK/ICDCK
RB7 17 SEG13 IOC Y ICSPDAT/ICDDAT
RC0 34 VLCD1
RC1 35 VLCD2
RC2 36 VLCD3
RC3 37 SEG6
RC4 42 SEG11 T1G SDO
RC5 43 SEG10 T1CKI CCP1
RC6 44 SEG9 TX/CK SCK/SCL
RC7 1 SEG8 RX/DT SDI/SDA
RD0 38 COM3
RD1 39
RD2 40 CCP2
RD3 41 SEG16
RD4 2 SEG17
RD5 3 SEG18
RD6 4 SEG19
RD7 5 SEG20
RE0 25 AN5 SEG21
RE1 26 AN6 SEG22
RE2 27 AN7 SEG23
RE318———Y
(1) MCLR/VPP
7 VDD
8——— VDD
28 VDD
6——— VSS
30 VSS
13——— NC
29 NC
Note 1: Pull-up enabled only with external MCLR configuration.
PIC16F913/914/916/917/946
DS41250F-page 10 © 2007 Microchip Technology Inc.
Pin Diagram – PIC16F946
1
2
3
4
5
6
7
8
9
10
11
12
13
14
38
37
36
35
34
33
50 49
17 18 19 20 21 22 23 24 25 26
RD6/SEG19
RD5/SEG18
RD4/SEG17
RC7/RX/DT/SDI/SDA/SEG8
RC6/TX/CK/SCK/SCL/SEG9
RC5/T1CKI/CCP1/SEG10
RC4/T1G/SDO/SEG11
VDD
VSS
RD3/SEG16
RD2/CCP2
RD1
RD0/COM3
RC3/SEG6
RC2/VLCD3
RC1/VLCD2
RD7/SEG20
RG5/SEG41
RG4/SEG40
RG3/SEG39
RG2/SEG38
RG1/SEG37
RG0/SEG36
VSS
VDD
RF1/SEG33
RF0/SEG32
RB0/INT/SEG0
RB1/SEG1
RB2/SEG2
RC0/VLCD1
RA6/OSC2/CLKOUT/T1OSO
RA7/OSC1/CLKIN/T1OSI
VSS
VDD
RE2/AN7/SEG23
RE1/AN6/SEG22
RE0/AN5/SEG21
RA4/C1OUT/T0CKI/SEG4
RA3/AN3/C1+/VREF+/SEG15
RA5/AN4/C2OUT/SS/SEG5
RA2/AN2/C2+/VREF-/COM2
RA0/AN0/C1-/SEG12
RE3/MCLR/VPP
RE4/SEG24
RB4/COM0
RB3/SEG3
AVDD
AVSS
RB5/COM1
RB6/ICSPCLK/ICDCK/SEG14
RB7/ICSPDAT/ICDDAT/SEG13
RF7/SEG31
VSS
VDD
RF5/SEG29
RF6/SEG30
RF4/SEG28
RE7/SEG27
RE5/SEG25
RE6/SEG26
RA1/AN1/C2-/SEG7
15
16
31
40
39
27 28 29 30 32
48
47
46
45
44
43
42
41
54 53 52 5158 57 56 5560 5964 63 62 61
64-pin TQFP
RF2/SEG34
RF3/SEG35
PIC16F946
© 2007 Microchip Technology Inc. DS41250F-page 11
PIC16F913/914/916/917/946
TABLE 6: PIC16F946 64-PIN (TQFP) SUMMARY
I/O Pin A/D LCD Comparators Timers CCP AUSART SSP Interrupt Pull-Up Basic
RA0 27 AN0 SEG12 C1-
RA1 28 AN1 SEG7 C2-
RA2 29 AN2/VREF-COM2 C2+
RA3 30 AN3/VREF+ SEG15 C1+
RA4 31 SEG4 C1OUT T0CKI
RA5 32 AN4 C2OUT SS ——
RA6 40 SEG5 T1OSO OSC2/CLKOUT
RA7 39 T1OSI OSC1/CLKIN
RB0 15 SEG0 INT Y
RB1 16 SEG1 Y
RB2 17 SEG2 Y
RB3 18 SEG3 Y
RB4 21 COM0 IOC Y
RB5 22 COM1 IOC Y
RB6 23 SEG14 IOC YICSPCLK/ICDCK
RB7 24 SEG13 IOC Y ICSPDAT/ICDDAT
RC0 49 VLCD1
RC1 50 VLCD2
RC2 51 VLCD3
RC3 52 SEG6
RC4 59 SEG11 T1G SDO
RC5 60 SEG10 T1CKI CCP1
RC6 61 SEG9 TX/CK SCK/SCL
RC7 62 SEG8 RX/DT SDI/SDA
RD0 53 COM3
RD1 54
RD2 55 CCP2
RD3 58 SEG16
RD4 63 SEG17
RD5 64 SEG18
RD6 1 SEG19
RD7 2 SEG20
RE0 33 AN5 SEG21
RE1 34 AN6 SEG22
RE2 35 AN7 SEG23
RE3 36 Y(1) MCLR/VPP
RE4 37 SEG24
RE5 42 SEG25
RE6 43 SEG26
RE7 44 SEG27
RF0 11 SEG32
RF1 12 SEG33
RF2 13 SEG34
Note 1: Pull-up enabled only with external MCLR configuration.
PIC16F913/914/916/917/946
DS41250F-page 12 © 2007 Microchip Technology Inc.
RF3 14 SEG35
RF4 45 SEG28
RF5 46 SEG29
RF6 47 SEG30
RF7 48 SEG31
RG0 3 SEG36
RG1 4 SEG37
RG2 5 SEG38
RG3 6 SEG39
RG4 7 SEG40
RG5 8 SEG41
26 AVDD
—25 AVSS
10 VDD
—19 VDD
38 VDD
—57 VDD
9 VSS
—20 VSS
41 VSS
—56 VSS
TABLE 6: PIC16F946 64-PIN (TQFP) SUMMARY (CONTINUED)
I/O Pin A/D LCD Comparators Timers CCP AUSART SSP Interrupt Pull-Up Basic
Note 1: Pull-up enabled only with external MCLR configuration.
© 2007 Microchip Technology Inc. DS41250F-page 13
PIC16F913/914/916/917/946
Table of Contents
1.0 Device Overview ........................................................................................................................................................................ 15
2.0 Memory Organization ................................................................................................................................................................. 23
3.0 I/O Ports ..................................................................................................................................................................................... 43
4.0 Oscillator Module (With Fail-Safe Clock Monitor)....................................................................................................................... 87
5.0 Timer0 Module ........................................................................................................................................................................... 99
6.0 Timer1 Module with Gate Control............................................................................................................................................. 102
7.0 Timer2 Module ......................................................................................................................................................................... 107
8.0 Comparator Module.................................................................................................................................................................. 109
9.0 Addressable Universal Synchronous Asynchronous Receiver Transmitter (AUSART) ........................................................... 121
10.0 Liquid Crystal Display (LCD) Driver Module............................................................................................................................. 143
11.0 Programmable Low-Voltage Detect (PLVD) Module................................................................................................................ 171
12.0 Analog-to-Digital Converter (ADC) Module .............................................................................................................................. 175
13.0 Data EEPROM and Flash Program Memory Control ............................................................................................................... 187
14.0 SSP Module Overview ............................................................................................................................................................. 193
15.0 Capture/Compare/PWM (CCP) Module ................................................................................................................................... 211
16.0 Special Features of the CPU.................................................................................................................................................... 219
17.0 Instruction Set Summary.......................................................................................................................................................... 241
18.0 Development Support............................................................................................................................................................... 251
19.0 Electrical Specifications............................................................................................................................................................ 255
20.0 DC and AC Characteristics Graphs and Tables....................................................................................................................... 283
21.0 Packaging Information.............................................................................................................................................................. 305
Appendix A: Data Sheet Revision History.......................................................................................................................................... 315
Appendix B: Migrating From Other PIC® Devices.............................................................................................................................. 315
Appendix C: Conversion Considerations ........................................................................................................................................... 316
Index .................................................................................................................................................................................................. 317
The Microchip Web Site..................................................................................................................................................................... 325
Customer Change Notification Service .............................................................................................................................................. 325
Customer Support .............................................................................................................................................................................. 325
Reader Response .............................................................................................................................................................................. 327
Product Identification System ............................................................................................................................................................ 328
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.
PIC16F913/914/916/917/946
DS41250F-page 14 © 2007 Microchip Technology Inc.
NOTES: