PIC16(L)F1526/7
64-Pin Flash Microcontrollers with XLP Technology
High-Performance RISC CPU
• C Compiler Optimized Architecture
• Only 49 Instructions
• Operating Speed:
- DC – 20 MHz clock input @ 2.5V
- DC – 16 MHz clock input @ 1.8V
- DC – 200 ns instruction cycle
• Interrupt Capability with Automatic Context
Saving
• 16-Level Deep Hardware Stack with Optional
Overflow/Underflow Reset
• Direct, Indirect and Relative Addressing modes:
- Two full 16-bit File Select Registers (FSRs)
- FSRs can read program and data memory
Extreme Low-Power Management
PIC16LF1526/7 with XLP
• Sleep mode: 20 nA @ 1.8V, typical
• Watchdog Timer: 300 nA @ 1.8V, typical
• Secondary Oscillator: 600 nA @ 32 kHz, 1.8V,
typical
Analog Features
• Analog-to-Digital Converter (ADC):
- 10-bit resolution
- 30 external channels
- Two internal channels
- Fixed Voltage Reference (FVR) channel
- Temperature Indicator channel
- Auto acquisition capability
- Conversion available during Sleep
- Dedicated ADC RC oscillator
- Fixed Voltage Reference (FVR) as ADC
positive reference
• Voltage Reference module:
- Fixed Voltage Reference (FVR) with 1.024V,
2.048V and 4.096V output levels
- Low-Power Sleep mode
- Low-Power BOR (LPBOR)
Memory
• Up to 28 Kbytes Linear Program Memory
Addressing
• Up to 1536 Bytes Linear Data Memory
Addressing
• High-Endurance Flash Data Memory (HEF)
- 128B of nonvolatile data storage
- 100K erase/write cycles
Flexible Oscillator Structure
• 16 MHz Internal Oscillator Block:
- Software selectable frequency range from
16 MHz to 31 kHz
• 31 kHz Low-Power Internal Oscillator
• External Oscillator Block with:
- Four crystal/resonator modes up to 20 MHz
- Three external clock modes up to 20 MHz
• Fail-Safe Clock Monitor
- Allows safe shutdown if peripheral clock stops
• Two-Speed Oscillator Start-up
• Oscillator Start-up Timer (OST)
Peripheral Features
• 53 I/O Pins and One Input-only Pin:
- High current sink/source 25 mA/25 mA
- Individually programmable weak pull-ups
- Individually programmable
interrupt-on-change (IOC) pins
• Timer0: 8-Bit Timer/Counter with 8-Bit
Programmable Prescaler
• Enhanced Timer1, 3, 5:
- 16-bit timer/counter with prescaler
- External Gate Input mode
- Low-power 32 kHz secondary oscillator driver
• Timer2, 4, 6, 8, 10: 8-Bit Timer/Counter with 8-Bit
Period Register, Prescaler and Postscaler
• Ten Capture/Compare/PWM (CCP) modules:
- 16-bit Capture, 200 ns (max. resolution)
- 16-bit Compare, 200 ns (max. resolution)
- 10-bit PWM, 20 kHz @ 10 bits
(max. frequency)
• Two Master Synchronous Serial Ports (MSSPs)
with SPI and I
2
C
TM
with:
- 7-bit address masking
- SMBus/PMBus
TM
compatibility
- Auto-wake-up on start
• Two Enhanced Universal Synchronous
Asynchronous Receiver Transmitters (EUSART):
- RS-232, RS-485 and LIN compatible
- Auto-Baud Detect
Special Microcontroller Features
• Operating Voltage Range:
- 1.8V to 3.6V (PIC16LF1526/7)
- 2.3V to 5.5V (PIC16F1526/7)
• Self-Programmable under Software Control
• Power-on Reset (POR)
• Power-up Timer (PWRT)
• Programmable Low-Power Brown-Out Reset
(LPBOR)
• Extended Watch-Dog Timer (WDT):
- Programmable period from 1 ms to 256s
• Programmable Code Protection
• In-Circuit Serial Programming™ (ICSP™) via two
pins
• In-Circuit Debug (ICD) via Two Pins
• Enhanced Low-Voltage Programming (LVP)
• Power-Saving Sleep mode
2011-2015 Microchip Technology Inc.
DS40001458D-page 1
PIC16(L)F1526/7
PIC16(L)F151X/152X Family Types
High-Endurance Flash (bytes)
ADC
Advanced Control
MSSP (I
2
C/SPI)
Program Memory
Flash (words)
Data Sheet Index
Data SRAM
(bytes)
Timers
(8/16-bit)
EUSART
10-bit (ch)
Debug
(1)
I
I
I
I
I
I
I
I
I/O’s
(2)
CCP
Device
PIC16(L)F1512
(1)
2048
128
128
25
17
Y
2/1
1
1
PIC16(L)F1513
(1)
4096
256
128
25
17
Y
2/1
1
1
PIC16(L)F1516
(2)
8192
512
128
25
17
N
2/1
1
1
PIC16(L)F1517
(2)
8192
512
128
36
28
N
2/1
1
1
PIC16(L)F1518
(2)
16384
1024 128
25
17
N
2/1
1
1
PIC16(L)F1519
(2)
16384
1024 128
36
28
N
2/1
1
1
PIC16(L)F1526
(3)
8192
768
128
54
30
N
6/3
2
2
PIC16(L)F1527
(3)
16384
1536 128
54
30
N
6/3
2
2
Note 1:
I - Debugging, Integrated on Chip; H - Debugging, available using Debug Header.
2:
One pin is input-only.
Data Sheet Index:
(Unshaded devices are described in this document.)
1:
DS41624
PIC16(L)F1512/13 Data Sheet, 28-Pin Flash, 8-bit Microcontrollers.
2:
DS41452
PIC16(L)F1516/7/8/9 Data Sheet, 28/40/44-Pin Flash, 8-bit MCUs.
3:
DS41458
PIC16(L)F1526/7 Data Sheet, 64-Pin Flash, 8-bit MCUs.
Note:
For other small form-factor package availability and marking information, please visit
http://www.microchip.com/packaging
or contact your local sales office.
2
2
2
2
2
2
10
10
Y
Y
Y
Y
Y
Y
Y
Y
DS40001458D-page 2
2011-2015 Microchip Technology Inc.
XLP
PIC16(L)F1526/7
FIGURE 1:
64-PIN TQFP (10MM X 10MM) PACKAGE DIAGRAM FOR PIC16(L)F1526/7
RD0
V
DD
V
SS
RD1
RD2
RD3
RD4
RD5
RD6
RD7
RE2
RE3
RE4
RE5
RE6
RE7
RE1
RE0
RG0
RG1
RG2
RG3
V
PP
/MCLR/RG5
RG4
V
SS
V
DD
RF7
RF6
RF5
RF4
RF3
RF2
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
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)F1526
PIC16(L)F1527
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:
See
Table 1
for list of pin peripheral function.
2011-2015 Microchip Technology Inc.
DS40001458D-page 3
PIC16(L)F1526/7
FIGURE 2:
64-PIN QFN (9MM X 9MM) PACKAGE DIAGRAM FOR PIC16(L)F1526/7
RD0
V
DD
V
SS
RD1
RD2
RD3
RD4
RD5
RD6
RD7
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
2011-2015 Microchip Technology Inc.
RE2
RE3
RE4
RE5
RE6
RE7
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
Note 1:
DS40001458D-page 4
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
PIC16(L)F1526
PIC16(L)F1527
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
See
Table 1
for list of pin peripheral function.
PIC16(L)F1526/7
TABLE 1:
64-Pin TQFP, QFN
64-PIN DEVICE ALLOCATION TABLE (PIC16(L)F1526/7)
Interrupt
USART
Pull-up
Timers
RA0
RA1
RA2
RA3
RA4
RA5
RA6
RA7
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
RC0
RC1
RC2
RC3
RC4
RC5
RC6
RC7
RD0
RD1
RD2
RD3
RD4
RD5
RD6
24
23
22
21
28
27
40
39
48
47
46
45
44
43
42
37
30
29
33
34
35
36
31
32
58
55
54
53
52
51
50
AN0
AN1
AN2
AN3
—
AN4
—
—
AN17
AN18
AN19
AN20
AN21
AN22
—
—
—
—
—
—
—
—
—
—
AN23
AN24
AN25
AN26
—
—
—
—
—
—
—
T0CKI
T3G
—
—
—
—
—
—
T3CKI
(1)
T1G/T3CKI
—
—
SOSCO/T1CKI
SOSCI
—
—
—
—
—
—
—
T5CKI
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
CCP2
CCP1
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
TX1/CK1
RX1/DT1
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
SCK1/SCL1
SDI1/SDA1
SDO1
—
—
—
—
—
—
SDO2
SDI2, SDA2
SCK2, SCL2
—
—
—
—
—
—
—
—
INT/
IOC
IOC
IOC
IOC
IOC
IOC
IOC
IOC
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
Y
Y
Y
Y
Y
Y
Y
Y
—
—
—
—
—
—
—
—
Y
Y
Y
Y
Y
Y
Y
—
—
—
V
REF
+
—
—
OSC2/CLKOUT
OSC1/CLKIN
—
—
—
—
—
—
ICSPCLK/ICDCLK
ICSPDAT/ICDDAT
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
RD7
49
—
—
—
—
SS2
—
Y
—
RE0
2
AN27
—
—
—
—
Y
—
RE1
1
AN28
—
—
—
—
—
Y
—
RE2
64
AN29
—
CCP10
—
—
—
Y
—
RE3
63
—
—
CCP9
—
—
—
Y
—
RE4
62
—
—
CCP8
—
—
—
Y
—
RE5
61
—
—
CCP7
—
—
—
Y
—
RE6
60
—
—
CCP6
—
—
—
Y
—
Note 1:
Alternate pin function selected with the APFCON (Register
12-1)
register.
2:
Weak pull-up is always enabled when MCLR is enabled, otherwise the pull-up is under user control.
2011-2015 Microchip Technology Inc.
DS40001458D-page 5
Basic
ADC
CCP
SSP
I/O