PIC16F570
28-Pin, 8-Bit Flash Microcontroller
Processor Features
• Interrupt Capability
• PIC16F570 Operating Speed:
- DC – 20 MHz Crystal oscillator
- DC – 200 ns Instruction cycle
• High-Endurance Program and Flash Data
Memory Cells:
- 2048 x 12 user execution memory
- 64 x 8 self-writable data memory
- 100,000 write program memory endurance
- 1,000.000 write Flash data memory
endurance
- Program and Flash data retention: >40 years
• General Purpose Registers (SRAM):
- 132 x 8 memory
• Only 36 Single-Word Instructions to Learn:
- Modified baseline CPU
- Added
RETURN
and
RETFIE
instructions
- Added
MOVLB
instruction
• All Instructions are Single-Cycle except for
Program Branches which are Two-Cycle
• Four-Level Deep Hardware Stack
• Direct, Indirect and Relative Addressing modes
for Data and Instructions
eXtreme Low-Power (XLP) Features
• Sleep Mode:
- 50 nA @ 2.0V, typical
• Watchdog Timer:
- 500 nA @ 2.0V, typical
Microcontroller Features
•
•
•
•
•
•
•
Brown-out Reset (BOR)
Power-on Reset (POR)
Device Reset Timer (DRT)
Watchdog Timer (WDT) with its own On-Chip RC
Oscillator for Reliable Operation
Programmable Code Protection (CP)
Power-Saving Sleep mode with Wake-up on
Change Feature
Selectable Oscillator Options:
- INTOSC: Precision 4 or 8 MHz internal
oscillator
- EXTRC: Low-cost external RC oscillator
- LP: Power-saving, low-frequency crystal
- XT: Standard crystal/resonator
- HS: High-speed crystal/resonator
- EC: High-speed external clock
Variety of Packaging Options:
- 28-Lead SPDIP, SOIC, SSOP, QFN, UQFN
Peripheral Features
• Device Features:
- 24 I/Os
- Individual direction control
- High-current source/sink
• 8-Bit Real-Time Clock/Counter (TMR0) with 8-Bit
Programmable Prescaler
• In-Circuit Serial Programming™ (ICSP™) via Two
External Pin Connections
• Analog Comparator (CMP):
- Two analog comparators
- Absolute and programmable references
• Analog-to-Digital Converter (ADC):
- 8-bit resolution
- Eight external input channels
- 0.6V reference input
• Operational Amplifiers (op amps):
- Two operational amplifiers
- Fully-accessible visibility
•
CMOS Technology
• Low-Power, High-Speed CMOS Flash Technology
• Fully-Static Design
• Wide Operating Voltage and Temperature Range:
- Industrial: 2.0V to 5.5V
- Extended: 2.0V to 5.5V
• Operating Current:
- 175 uA @ 2V, 4 MHz, typical
- 13 uA @ 2V, 32 kHz, typical
• Standby Current:
- 100 nA @ 2V, typical
2013-2016 Microchip Technology Inc.
DS40001684F-page 1
PIC16F570
TABLE 1:
PIC16F527 AND PIC16F570 FAMILY TYPES
Interrupt-on-Change
Pins
Weak Pull-up Pins
4
8
Data Sheet Index
8 MHz Int. Osc.
Stack Levels
8-Bit Timers
Comparator
Data EE (B)
I/O Pins
(1)
8-Bit ADC
Channels
Interrupts
SRAM (B)
Op Amp
Device
Flash
BOR
PIC16F527
PIC16F570
(1)
(2)
18
25
1 KW
2 KW
64
64
68
132
8
8
2
2
2
2
1
1
Y
Y
4
4
Y
Y
Y
Y
4
8
Note 1:
One pin is input-only.
Data Sheet Index:
(Unshaded devices are described in this document.)
1:
DS40001652
PIC16F527 Data Sheet, 20-Pin, 8-bit Flash Microcontroller.
PIC16F570 Data Sheet, 28-Pin, 8-bit Flash Microcontroller.
2:
DS40001684
Pin Diagrams
FIGURE 1:
28-PIN SPDIP, SSOP, SOIC
MCLR/V
PP
RA0
RA1
RA2
RA3
RA4
RA5
V
SS
RA7
RA6
RC0
RC1
RC2
RC3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
RB7/ICSPDAT
RB6/ICSPCLK
RB5
RB4
RB3
RB2
RB1
RB0
V
DD
V
SS
RC7
RC6
RC5
RC4
PIC16F570
23
22
21
20
19
18
17
16
15
FIGURE 2:
28-PIN QFN, UQFN
RA1
RA0
MCLR/V
PP
RB7/ICSPDAT
RB6/ICSPCLK
RB5
RB4
28
27
26
25
24
23
22
RC0
RC1
RC2
RC3
RC4
RC5
RC6
8
9
10
11
12
13
14
RA2
RA3
RA4
RA5
V
SS
RA7
RA6
1
2
3
4
5
6
7
PIC16F570
21
20
19
18
17
16
15
RB3
RB2
RB1
RB0
V
DD
V
SS
RC7
DS40001684F-page 2
2013-2016 Microchip Technology Inc.
XLP
Y
Y
PIC16F570
TABLE 2:
28-PIN ALLOCATION TABLE
28-Pin SPDIP, SSOP, SOIC
Interrupt-on-Change
28-Pin QFN, UQFN
Comparator
Reference
Op Amp
Pull-up
Timers
MCLR
RA0
RA1
RA2
RA3
RA4
RA5
RA6
RA7
RB0
RB1
RB2
RB3
RB4
RB5
RB6
RB7
RC0
RC1
RC2
RC3
RC4
RC5
RC6
RC7
V
DD
Vss
1
2
3
4
5
6
7
10
9
21
22
23
24
25
26
27
28
11
12
13
14
15
16
17
18
20
8,
19
26
27
28
1
2
3
4
7
6
18
19
20
21
22
23
24
25
8
9
10
11
12
13
14
15
17
5,
16
—
AN0
AN1
AN2
AN3
AN4
AN5
—
—
—
—
—
—
—
—
—
—
—
AN6
—
—
—
—
AN7
—
—
—
—
—
—
CV
REF
1
—
—
—
—
—
—
—
—
—
—
—
—
CV
REF
2
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
T0CKI
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
N
N
N
N
N
N
N
N
N
Y
Y
Y
Y
Y
Y
Y
Y
N
N
N
N
N
N
N
N
—
—
Y
N
N
N
N
N
N
N
N
Y
Y
Y
Y
Y
Y
Y
Y
N
N
N
N
N
N
N
N
—
—
MCLR
V
PP
—
—
—
—
—
—
OSC2
CLKOUT
OSC1
CLKIN
—
—
—
—
—
—
ICSPCLK
ICSPDAT
—
—
—
—
—
—
—
—
V
DD
V
SS
C1IN+
—
C2IN+
—
—
—
—
—
—
—
C1OUT
C2OUT
—
—
C1IN-
—
—
—
—
—
—
—
C2IN-
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
—
OP1
OP1-
OP1+
OP2+
OP2-
OP2
—
—
—
2013-2016 Microchip Technology Inc.
DS40001684F-page 3
Basic
ADC
I/O
PIC16F570
Table of Contents
1.0
General Description.....................................................................................................................................................................
5
2.0
PIC16F570 Device Varieties......................................................................................
.................................................................. 6
3.0
Architectural Overview
................................................................................................................................................................ 7
4.0
Memory Organization
................................................................................................................................................................ 12
5.0
Self-Writable Flash Data Memory Control
................................................................................................................................. 23
6.0
I/O Port
...................................................................................................................................................................................... 27
7.0
Timer0 Module and TMR0 Register
.......................................................................................................................................... 32
8.0
Special Features of the CPU
..................................................................................................................................................... 37
9.0
Analog-to-Digital (A/D) Converter..............................................................................................................................................
54
10.0
Comparator(s)
........................................................................................................................................................................... 59
11.0
Comparator Voltage Reference Module
.................................................................................................................................... 64
12.0
Operational Amplifier (OPA) Module
......................................................................................................................................... 66
13.0
Instruction Set Summary
........................................................................................................................................................... 68
14.0
Development Support................................................................................................................................................................
76
15.0
Electrical Characteristics
........................................................................................................................................................... 80
16.0
DC and AC Characteristics Graphs and Charts
........................................................................................................................ 97
17.0
Packaging Information.............................................................................................................................................................
111
Appendix............................................................................................................................................................................................ 125
The Microchip Website......................................................................................................................................................................
126
Customer Change Notification Service
............................................................................................................................................. 126
Customer Support
............................................................................................................................................................................. 126
Product Identification System............................................................................................................................................................
127
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.
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 Website 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., DS30000000A is version A of document DS30000000).
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 Website;
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 website at
www.microchip.com
to receive the most current information on all of our products.
DS40001684F-page 4
2013-2016 Microchip Technology Inc.
PIC16F570
1.0
GENERAL DESCRIPTION
1.1
Applications
The PIC16F570 device from Microchip Technology is a
low-cost, high-performance, 8-bit, fully-static, Flash-
based CMOS microcontroller. It employs a RISC
architecture with only 36 single-word/single-cycle
instructions. All instructions are single cycle except for
program branches, which take two cycles. The
PIC16F570 device delivers performance an order of
magnitude higher than its competitors in the same price
category. The 12-bit wide instructions are highly
symmetrical, resulting in a typical 2:1 code
compression over other 8-bit microcontrollers in its
class. The easy-to-use and easy to remember
instruction set reduces development time significantly.
The PIC16F570 product is equipped with special
features that reduce system cost and power
requirements. The Power-on Reset (POR), Brown-out
Reset (BOR) and Device Reset Timer (DRT) eliminate
the need for external Reset circuitry. There are several
oscillator configurations to choose from, including
INTRC Internal Oscillator mode and the power-saving
LP (Low-Power) Oscillator mode. Power-Saving Sleep
mode, Watchdog Timer and code protection features
improve system cost, power and reliability.
The PIC16F570 device is available in the cost-effective
Flash programmable version, which is suitable for
production in any volume. The customer can take full
advantage of Microchip’s price leadership in Flash
programmable microcontrollers, while benefiting from
the Flash programmable flexibility.
The PIC16F570 product is supported by a full-featured
macro assembler, a software simulator, an in-circuit
emulator, a ‘C’ compiler, a low-cost development
programmer and a full-featured programmer. All the
tools are supported on IBM
®
PC and compatible
machines.
The PIC16F570 device fits in applications ranging from
personal care appliances and security systems to low-
power remote transmitters/receivers. The Flash
technology makes customizing application programs
(transmitter codes, appliance settings, receiver
frequencies, etc.) extremely fast and convenient. The
small footprint packages, for through hole or surface
mounting, make these microcontrollers perfect for
applications with space limitations. Low cost, low
power, high performance, ease of use and I/O flexibility
make the PIC16F570 device very versatile, even in
areas where no microcontroller use has been
considered before (e.g., timer functions, logic and
PLDs in larger systems and co-processor
applications).
TABLE 1-1:
Clock
Memory
FEATURES AND MEMORY OF PIC16F570
Maximum Frequency of Operation (MHz)
Flash Program Memory
SRAM Data Memory (bytes)
Flash Data Memory (bytes)
Timer Module(s)
Wake-up from Sleep on Pin Change
I/O Pins
Input Pins
Internal Pull-ups
20
2048
132
64
TMR0
Yes
24
1
Yes
TM
Peripherals
Features
In-Circuit Serial Programming
Number of Instructions
Packages
Interrupts
Yes
36
28-pin SPDIP, SOIC, SSOP, QFN, UQFN
Yes
2013-2016 Microchip Technology Inc.
DS40001684F-page 5