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, K
EE
L
OQ
®
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.
DS41326E-page 2
2010 Microchip Technology Inc.
PIC16F526
14-Pin, 8-Bit Flash Microcontroller
High-Performance RISC CPU:
• Only 33 Single-Word Instructions
• All Single-Cycle Instructions except for Program
Branches which are Two-Cycle
• Two-Level Deep Hardware Stack
• Direct, Indirect and Relative Addressing modes
for Data and Instructions
• Operating Speed:
- DC – 20 MHz crystal oscillator
- DC – 200 ns instruction cycle
• On-chip Flash Program Memory:
- 1024 x 12
• General Purpose Registers (SRAM):
- 67 x 8
• Flash Data Memory:
- 64 x 8
Low-Power Features/CMOS Technology:
• Standby current:
- 100 nA @ 2.0V, typical
• Operating current:
- 11
A
@ 32 kHz, 2.0V, typical
- 175
A
@ 4 MHz, 2.0V, typical
• Watchdog Timer current:
- 1
A
@ 2.0V, typical
- 7
A
@ 5.0V, typical
• High Endurance Program and Flash Data Memory
cells:
- 100,000 write Program Memory endurance
- 1,000,000 write Flash Data Memory endurance
- Program and Flash Data retention: >40 years
• Fully Static Design
• Wide Operating Voltage Range: 2.0V to 5.5V:
- Wide temperature range
- Industrial: -40C to +85C
- Extended: -40C to +125C
Special Microcontroller Features:
• 8 MHz Precision Internal Oscillator:
- Factory calibrated to ±1%
• In-Circuit Serial Programming™ (ICSP™)
• In-Circuit Debugging (ICD) Support
• Power-On Reset (POR)
• Device Reset Timer (DRT)
• Watchdog Timer (WDT) with Dedicated On-Chip
RC Oscillator for Reliable Operation
• Programmable Code Protection
• Multiplexed MCLR Input Pin
• Internal Weak Pull-ups on I/O Pins
• Power-Saving Sleep mode
• Wake-Up from Sleep on Pin Change
• Selectable Oscillator Options:
- INTRC: 4 MHz or 8 MHz precision Internal
RC oscillator
- EXTRC: External low-cost RC oscillator
- XT:
Standard crystal/resonator
- HS:
High-speed crystal/resonator
- LP:
Power-saving, low-frequency crystal
- EC:
High-speed external clock input
Program
Memory
Flash (words)
PIC16F526
1024
Peripheral Features:
• 12 I/O Pins:
- 11 I/O pins with individual direction control
- 1 input-only pin
- High current sink/source for direct LED drive
- Wake-up on change
- Weak pull-ups
• 8-bit Real-time Clock/Counter (TMR0) with 8-bit
Programmable Prescaler
• Two Analog Comparators:
- Comparator inputs and output accessible
externally
- One comparator with 0.6V fixed on-chip
absolute voltage reference (V
REF
)
- One comparator with programmable on-chip
voltage reference (V
REF
)
• Analog-to-Digital (A/D) Converter:
- 8-bit resolution
- 3-channel external programmable inputs
- 1-channel internal input to internal absolute
0.6 voltage reference
Data Memory
SRAM (bytes)
67
Flash
(bytes)
64
I/O
Comparators
Timers 8-bit
Device
8-bit A/D
Channels
3
12
2
1
2010 Microchip Technology Inc.
DS41326E-page 3
PIC16F526
FIGURE 1-1:
14-PIN PDIP, SOIC, TSSOP DIAGRAM
V
DD
RB5/OSC1/CLKIN
RB4/OSC2/CLKOUT
RB3/MCLR/V
PP
RC5/T0CKI
RC4/C2OUT
RC3
1
PIC16F526
2
3
4
5
6
7
14
13
12
11
10
9
8
V
SS
RB0/C1IN+/AN0/ICSPDAT
RB1/C1IN-/AN1/ICSPCLK
RB2/C1OUT/AN2
RC0/C2IN+
RC1/C2IN-
RC2/CV
REF
FIGURE 1-2:
16-PIN QFN DIAGRAM
V
DD
PIC16F526
RB5/OSC1/CLKIN
RB4/OSC2/CLKOUT
RB3/MCLR/V
PP
RC5/T0CKI
1
16 15 14 13
12
11
10
9
7
8
GND
NC
NC
RB0/C1IN+/AN0/ICSPDAT
RB1/C1IN-/AN1/ICSPCLK
RB2/C1OUT/AN2
RC0/C2IN+
2
3
4
5
6
RC4/C2OUT
RC2/CV
REF
RC3
RC1/C2IN-
DS41326E-page 4
2010 Microchip Technology Inc.
PIC16F526
Table of Contents
1.0 General Description..................................................................................................................................................................... 7
5.0 Flash Data Memory Control ...................................................................................................................................................... 23
6.0 I/O Port ...................................................................................................................................................................................... 27
7.0 Timer0 Module and TMR0 Register .......................................................................................................................................... 37
8.0 Special Features of the CPU..................................................................................................................................................... 43
11.0 Comparator Voltage Reference Module.................................................................................................................................... 69
12.0 Instruction Set Summary ........................................................................................................................................................... 71
13.0 Development Support................................................................................................................................................................ 79
15.0 DC and AC Characteristics Graphs and Charts ........................................................................................................................ 97
The Microchip Web Site .................................................................................................................................................................... 115
Customer Change Notification Service ............................................................................................................................................. 115
Customer Support ............................................................................................................................................................................. 115
Index .................................................................................................................................................................................................. 117