PIC16(L)F1946/47
64-Pin Flash-Based, 8-Bit CMOS Microcontrollers with
LCD Driver and XLP Technology
High-Performance RISC CPU
• Only 49 Instructions to Learn:
- All single-cycle instructions except branches
• Operating Speed:
- DC – 32 MHz oscillator/clock input
- DC – 125 ns instruction cycle
• Up to 16K x 14 Words of Flash Program Memory
• Up to 1024 Bytes of Data Memory (RAM)
• Interrupt Capability with Automatic Context
Saving
• 16-Level Deep Hardware Stack
• Direct, Indirect and Relative Addressing modes
• Processor Read Access to Program Memory
PIC16LF1946/47 Low-Power Features
• Standby Current:
- 60 nA @ 1.8V, typical
• Operating Current:
- 7.0
A
@ 32 kHz, 1.8V, typical
- 35
A/MHz,
1.8V, typical
• Timer1 Oscillator Current:
- 600 nA @ 32 kHz, 1.8V, typical
• Low-Power Watchdog Timer Current:
- 500 nA @ 1.8V, typical
Peripheral Features
• 54 I/O Pins (One Input-only pin):
- High-current source/sink for direct LED drive
- Individually programmable Interrupt-on-pin
change pins
- Individually programmable weak pull-ups
• Integrated LCD Controller:
- Up to 184 segments
- Variable clock input
- Contrast control
- Internal voltage reference selections
• Capacitive Sensing (CSM) Module (mTouch
®
):
- 17 selectable channels
• A/D Converter:
- 10-bit resolution and 17 channels
- Selectable 1.024/2.048/4.096V voltage
reference
• Timer0: 8-Bit Timer/Counter with 8-Bit
Programmable Prescaler
• Enhanced Timer1:
- Dedicated low-power 32 kHz oscillator driver
- 16-bit timer/counter with prescaler
- External Gate Input mode with toggle and
single shot modes
- Interrupt-on-gate completion
• Timer2, 4, 6: 8-Bit Timer/Counter with 8-Bit Period
Register, Prescaler and Postscaler
• Two Capture, Compare, PWM Modules (CCP):
- 16-bit Capture, max. resolution 125 ns
- 16-bit Compare, max. resolution 125 ns
- 10-bit PWM, max. frequency 31.25 kHz
• Three Enhanced Capture, Compare, PWM
Modules (ECCP):
- Three PWM time-base options
- Auto-shutdown and auto-restart
- PWM steering
- Programmable dead-band delay
Special Microcontroller Features
• Precision Internal Oscillator:
- Factory-calibrated to ±1%, typical
- Software-selectable frequency range from
32 MHz to 31 kHz
• Power-Saving Sleep mode
• Power-on Reset (POR)
• Power-up Timer (PWRT) and Oscillator Start-up
Timer (OST)
• Brown-out Reset (BOR):
- Selectable between two trip points
- Disable in Sleep option
• 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
• Wide Operating Voltage Range:
- 1.8V-5.5V (PIC16F1946/47)
- 1.8V-3.6V (PIC16LF1946/47)
2010-2016 Microchip Technology Inc.
DS40001414E-page 1
PIC16(L)F1946/47
Peripheral Features (Continued)
• Two Master Synchronous Serial Ports (MSSPs)
with SPI and I
2
C with:
- 7-bit address masking
- SMBus/PMBus
TM
compatibility
- Auto-wake-up on start
• Two Enhanced Universal Synchronous:
Asynchronous Receiver Transmitters (EUSARTs)
- RS-232, RS-485 and LIN compatible
- Auto-Baud Detect
• SR Latch (555 Timer):
- Multiple Set/Reset input options
- Emulates 555 Timer applications
• Three Comparators:
- Rail-to-rail inputs/outputs
- Power mode control
- Software enable hysteresis
• Voltage Reference Module:
- Fixed Voltage Reference (FVR) with 1.024V,
2.048V and 4.096V output levels
- 5-bit rail-to-rail resistive DAC with positive
and negative reference selection
PIC16(L)F193X/194X Family Types
LCD (Com/Seg/Total)
Program Memory
Flash (words)
Data Sheet Index
10-bit ADC (ch)
MSSP (I
2
C/SPI)
CapSense (ch)
Data EEPROM
(bytes)
Comparators
Data SRAM
(bytes)
Timers
(8/16-bit)
EUSART
Debug
(1)
I/Os
(2)
ECCP
CCP
Device
PIC16(L)F1933 (1) 4096
256
256 25 11
8
2
4/1
1
1
3
2 4/16/60
(3)
I/H
Y
PIC16(L)F1934 (2) 4096
256
256 36 14 16
2
4/1
1
1
3
2
4/24/96
I/H Y
(3)
I/H
PIC16(L)F1936 (2) 8192
256
512 25 11
8
2
4/1
1
1
3
2 4/16/60
Y
PIC16(L)F1937 (2) 8192
256
512 36 14 16
2
4/1
1
1
3
2
4/24/96
I/H Y
(3)
I/H
PIC16(L)F1938 (3) 16384 256 1024 25 11
8
2
4/1
1
1
3
2 4/16/60
Y
PIC16(L)F1939 (3) 16384 256 1024 36 14 16
2
4/1
1
1
3
2
4/24/96
I/H Y
PIC16(L)F1946 (4) 8192
256
512 54 17 17
3
4/1
2
2
3
2
4/46/184
I
Y
PIC16(L)F1947 (4) 16384 256 1024 54 17 17
3
4/1
2
2
3
2
4/46/184
I
Y
Note 1:
I – Debugging, Integrated on Chip; H – Debugging, Requires Debug Header.
2:
One pin is input-only.
3:
COM3 and SEG15 share the same physical pin, therefore SEG15 is not available when using 1/4 multiplex
displays.
Data Sheet Index:
(Unshaded devices are described in this document.)
PIC16(L)F1933 Data Sheet, 28-Pin Flash, 8-bit Microcontrollers.
1:
DS41575
2:
DS41364
PIC16(L)F1934/6/7 Data Sheet, 28/40/44-Pin Flash, 8-bit Microcontrollers.
3:
DS40001574
PIC16(L)F1938/9 Data Sheet, 28/40/44-Pin Flash, 8-bit Microcontrollers.
4:
DS41414
PIC16(L)F1946/1947 Data Sheet, 64-Pin Flash, 8-bit Microcontrollers.
DS40001414E-page 2
2010-2016 Microchip Technology Inc.
XLP
PIC16(L)F1946/47
Pin Diagram – 64-Pin TQFP/QFN
(
PIC16(L)F1946/47)
64-pin TQFP, QFN
RE2
RE3
RE4
RE5
RE6
RE7
RD0
V
DD
V
SS
RD1
RD2
RD3
RD4
RD5
RD6
RD7
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
RE1
RE0
RG0
RG1
RG2
RG3
V
PP
/MCLR/RG5
RG4
V
SS
V
DD
RF7
RF6
RF5
RF4
RF3
RF2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
RB0
RB1
RB2
RB3
RB4
RB5
RB6
V
SS
RA6
RA7
V
DD
RB7
RC5
RC4
RC3
RC2
PIC16(L)F1946/47
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
RF1
RF0
AV
DD
AV
SS
RA3
RA2
RA1
RA0
V
SS
V
DD
RA5
RA4
RC1
RC0
RC6
RC7
Note 1:
2:
3:
Pin location selected by APFCON register setting. Default location.
Pin function can be moved using the APFCON register. Alternate location.
QFN package orientation is the same. No leads are present on the QFN package.
Note:
AV
DD
and AV
SS
are dedicated power connection pins for the on-board analog circuits of the PIC
®
microcontroller. The separate power pins help eliminate digital switching noise interference with the analog
circuitry inside the device, especially on larger devices with more I/O pins and larger switching currents on
the V
DD
/V
SS
pins. Customers typically connect these to the appropriate V
DD
or V
SS
connections on the
PCB, unless there is a lot of noise on the external power rails. In those situations, they will add additional
noise filtering components (like capacitors) on the AV
DD
/AV
SS
pins to help ensure good solid supply to the
analog modules inside the device.
2010-2016 Microchip Technology Inc.
DS40001414E-page 3
PIC16(L)F1946/47
TABLE 1:
64-Pin TQFP, QFN
ANSEL
64-PIN SUMMARY(PIC16(L)F1946/47)
Comparator
Cap Sense
Reference
SR Latch
Interrupt
USART
Pull-up
Timers
MSSP
RA0
RA1
RA2
RA3
RA4
RA5
RA6
RA7
RB0
RB1
RB2
RB3
RB4
RB5
RB6
24
23
22
21
28
27
40
39
48
47
46
45
44
43
42
Y
Y
Y
Y
—
Y
—
—
—
—
—
—
—
—
—
AN0
AN1
AN2
AN3
—
AN4
—
—
—
—
—
—
—
—
—
—
—
V
REF
-
V
REF
+
—
—
—
—
—
—
—
—
—
—
—
CPS0
CPS1
CPS2
CPS3
—
CPS4
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
SRI
—
—
—
—
—
—
—
—
—
—
T0CKI
—
—
—
—
—
—
—
—
T1G
—
—
—
—
—
—
—
—
—
FLT0
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
SEG33
SEG18
SEG34
SEG35
SEG14
SEG15
SEG36
SEG37
SEG30
SEG8
SEG9
SEG10
SEG11
SEG29
SEG38
—
—
—
—
—
—
—
—
INT/
IOC
IOC
IOC
IOC
IOC
IOC
IOC
—
—
—
—
—
—
—
—
Y
Y
Y
Y
Y
Y
Y
—
—
—
—
—
—
OSC2/
CLKOUT
OSC1/
CLKIN
—
—
—
—
—
—
ICSP-
CLK/
ICDCLK
ICSP-
DAT/
ICDDAT
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
RB7
37
—
—
—
—
—
—
—
—
—
—
SEG39
IOC
Y
RC0
RC1
RC2
RC3
RC4
RC5
RC6
RC7
RD0
RD1
RD2
RD3
RD4
RD5
RD6
RD7
30
29
33
34
35
36
31
32
58
55
54
53
52
51
50
49
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
T1OSO/
T1CKI
T1OSI
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
CCP2
(1)
/
P2A
(1)
CCP1/
P1A
—
—
—
—
—
P2D
(2)
P2C
(2)
P2B
(2)
P3C
(2)
P3B
(2)
P1C
(2)
P1B
(2)
—
—
—
—
—
—
—
TX1/
CK1
RX1/
DT1
—
—
—
—
—
—
—
—
—
—
—
SCK1/
SCL1
SDI1/
SDA1
SDO1
—
—
—
—
—
—
SDO2
SDI2
SDA2
SCK2/
SCL2
SS2
SEG40
SEG32
SEG13
SEG17
SEG16
SEG12
SEG27
SEG28
SEG0
SEG1
SEG2
SEG3
SEG4
SEG5
SEG6
SEG7
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
Note 1:
2:
3:
4:
Pin functions can be moved using the APFCON register(s). Default location.
Pin function can be moved using the APFCON register. Alternate location.
Weak pull-up always enabled when MCLR is enabled, otherwise the pull-up is under user control.
See
Section 8.0 “Low Dropout (LDO) Voltage Regulator”.
DS40001414E-page 4
2010-2016 Microchip Technology Inc.
Basic
CCP
LCD
A/D
I/O
PIC16(L)F1946/47
TABLE 1:
64-Pin TQFP, QFN
ANSEL
64-PIN SUMMARY(PIC16(L)F1946/47) (Continued)
Comparator
Cap Sense
Reference
SR Latch
Interrupt
USART
Pull-up
Timers
MSSP
RE0
RE1
RE2
RE3
RE4
RE5
RE6
RE7
RF0
RF1
RF2
RF3
2
1
64
63
62
61
60
59
18
17
16
15
Y
Y
Y
—
—
—
—
—
Y
Y
Y
Y
—
—
—
—
—
—
—
—
AN16
AN6
AN7
AN8
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
CPS16
CPS6
CPS7
CPS8
—
—
—
—
—
—
—
—
C1IN0-
C2IN0-
C2OUT
C1OUT
C1IN2-
C2IN2-
C3IN2-
C2IN+
C1IN1-
C2IN1-
C1IN+
C1IN3-
C2IN3-
C3IN3-
—
C3OUT
C3IN+
C3IN0-
C3IN1-
—
—
—
—
—
—
—
—
—
—
—
SRNQ
SRQ
—
—
—
—
—
—
—
—
—
—
—
—
—
P2D
(1)
P2C
(1)
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
VLCD1
VLCD2
VLCD3
COM0
COM1
COM2
COM3
SEG31
SEG41
SEG19
SEG20
SEG21
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
V
CAP
(4)
—
—
—
P2B
(1)
P3C
(1)
P3B
(1)
P1C
(1)
P1B
(1)
CCP2
(2)
/
P2A
(2)
—
—
—
—
RF4
RF5
RF6
RF7
14
13
12
11
Y
Y
Y
Y
AN9
AN10
AN11
AN5
—
DACOUT
—
—
CPS9
CPS10
CPS11
CPS5
—
—
—
—
—
—
—
—
—
—
—
—
—
—
SS1
SEG22
SEG23
SEG24
SEG25
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
RG0
RG1
RG2
RG3
RG4
RG5
V
DD
3
4
5
6
8
7
10
26
38
57
9
25
41
56
19
20
—
Y
Y
Y
Y
—
—
—
AN15
AN14
AN13
AN12
—
—
—
—
—
—
—
—
—
—
CPS15
CPS14
CPS13
CPS12
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
CCP3
P3A
—
—
CCP4
P3D
CCP5
P1D
—
—
—
TX2/
CK2
RX2/
DT2
—
—
—
—
—
—
—
—
—
—
—
SEG42
SEG43
SEG44
SEG45
SEG26
—
—
—
—
—
—
—
—
—
—
—
—
—
—
Y
(3)
—
—
—
—
—
—
MCLR/V
PP
V
DD
V
SS
—
—
—
—
—
—
—
—
—
—
—
—
—
V
SS
AV
DD
AV
SS
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
AV
DD
AV
SS
Note 1:
2:
3:
4:
Pin functions can be moved using the APFCON register(s). Default location.
Pin function can be moved using the APFCON register. Alternate location.
Weak pull-up always enabled when MCLR is enabled, otherwise the pull-up is under user control.
See
Section 8.0 “Low Dropout (LDO) Voltage Regulator”.
2010-2016 Microchip Technology Inc.
DS40001414E-page 5
Basic
CCP
LCD
A/D
I/O