PIC18F8722 Family
Data Sheet
64/80-Pin, 1-Mbit,
Enhanced Flash Microcontrollers
with 10-Bit A/D and nanoWatt Technology
©
2008 Microchip Technology Inc.
DS39646C
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.
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, K
EE
L
OQ
, K
EE
L
OQ
logo, MPLAB, PIC, PICmicro,
PICSTART, rfPIC, SmartShunt and UNI/O are registered
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
FilterLab, Linear Active Thermistor, MXDEV, MXLAB,
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, dsSPEAK, ECAN,
ECONOMONITOR, FanSense, In-Circuit Serial
Programming, ICSP, ICEPIC, Mindi, MiWi, MPASM, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM,
PICDEM.net, PICtail, PIC
32
logo, PowerCal, PowerInfo,
PowerMate, PowerTool, REAL ICE, rfLAB, Select Mode, Total
Endurance, 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.
© 2008, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
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.
DS39646C-page ii
©
2008 Microchip Technology Inc.
PIC18F8722 FAMILY
64/80-Pin, 1-Mbit, Enhanced Flash Microcontrollers with
10-Bit A/D and nanoWatt Technology
Power Management Features:
•
•
•
•
•
•
•
•
•
•
Run: CPU On, Peripherals On
Idle: CPU Off, Peripherals On
Sleep: CPU Off, Peripherals Off
Ultra Low 50 nA Input Leakage
Run mode Currents Down to 25
μA
Typical
Idle mode Currents Down to 6.8
μA
Typical
Sleep mode Current Down to 120 nA Typical
Timer1 Oscillator: 900 nA, 32 kHz, 2V
Watchdog Timer: 1.6
μA,
2V Typical
Two-Speed Oscillator Start-up
Peripheral Highlights (Continued):
• Up to 2 Capture/Compare/PWM (CCP) modules,
one with Auto-Shutdown (28-pin devices)
• Master Synchronous Serial Port (MSSP) module
Supporting 3-Wire SPI (all 4 modes) and I
2
C™
Master and Slave modes
• Enhanced Addressable USART module:
- Supports RS-485, RS-232 and LIN/J2602
- RS-232 operation using internal oscillator
block (no external crystal required)
• 10-Bit, up to 13-Channel Analog-to-Digital (A/D)
Converter module:
- Conversion available during Sleep
• Dual Analog Comparators with Input Multiplexing
• Programmable 16-Level High/Low-Voltage
Detection (HLVD) module
Flexible Oscillator Structure:
• Four Crystal modes, up to 40 MHz
• 4x Phase Lock Loop (PLL) – Available for Crystal
and Internal Oscillators
• Internal Oscillator Block:
- Fast wake from Sleep and Idle, 1
μs
typical
- Provides a complete range of clock speeds
from 31 kHz to 32 MHz when used with PLL
- User-tunable to compensate for frequency drift
• Secondary oscillator using Timer1 @ 32 kHz
• Fail-Safe Clock Monitor:
- Allows for safe shutdown if peripheral clock stops
Special Microcontroller Features:
• C Compiler Optimized Architecture
• 100,000 Erase/Write Cycle Enhanced Flash
Program Memory Typical
• 1,000,000 Erase/Write Cycle Data EEPROM
Memory Typical
• Flash/Data EEPROM Retention: 100 Years Typical
• Self-Programmable under Software Control
• Priority Levels for Interrupts
• 8 x 8 Single-Cycle Hardware Multiplier
• Extended Watchdog Timer (WDT):
- Programmable period from 4 ms to 131s
• Single-Supply 5V In-Circuit Serial Programming™
(ICSP™) via Two Pins
• In-Circuit Debug (ICD) via Two Pins
• Wide Operating Voltage Range: 2.0V to 5.5V
• Programmable Brown-out Reset (BOR) with
Software Enable Option
Comparators
EUSART
Timers
8/16-Bit
2/3
2/3
2/3
2/3
2/3
2/3
2/3
2/3
MSSP
I/O
10-Bit CCP/
A/D ECCP
(ch) (PWM)
12
12
12
12
16
16
16
16
2/3
2/3
2/3
2/3
2/3
2/3
2/3
2/3
2
2
2
2
2
2
2
2
SPI
Y
Y
Y
Y
Y
Y
Y
Y
Master
I
2
C™
Y
Y
Y
Y
Y
Y
Y
Y
External Bus
N
N
N
N
Y
Y
Y
Y
Peripheral Highlights:
•
•
•
•
High-Current Sink/Source 25 mA/25 mA
Three Programmable External Interrupts
Four Input Change Interrupts
Enhanced Capture/Compare/PWM (ECCP)
module (40/44-pin devices only):
- One, two or four PWM outputs
- Programmable dead time
- Auto-shutdown and auto-restart
Program Memory
Device
Data Memory
Flash # Single-Word SRAM EEPROM
(bytes) Instructions (bytes) (bytes)
48K
64K
96K
128K
48K
64K
96K
128K
24576
32768
49152
65536
24576
32768
49152
65536
3936
3936
3936
3936
3936
3936
3936
3936
1024
1024
1024
1024
1024
1024
1024
1024
PIC18F6527
PIC18F6622
PIC18F6627
PIC18F6722
PIC18F8527
PIC18F8622
PIC18F8627
PIC18F8722
54
54
54
54
70
70
70
70
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
2
©
2008 Microchip Technology Inc.
DS39646C-page 1
PIC18F8722 FAMILY
Pin Diagrams
64-Pin TQFP
RE7/ECCP2
(1)
/P2A
(1)
RD6/PSP6/SCK2/SCL2
RD5/PSP5/SDI2/SDA2
RD4/PSP4/SDO2
RE3/P3C
RE5/P1C
RE4/P3B
RE6/P1B
64 63 62 61 60 59 58 57 56 55 54 53 52 51 50 49
RE1/WR/P2C
RE0/RD/P2D
RG0/ECCP3/P3A
RG1/TX2/CK2
RG2/RX2/DT2
RG3/CCP4/P3D
RG5/MCLR/V
PP
RG4/CCP5/P1D
V
SS
V
DD
RF7/SS1
RF6/AN11
RF5/AN10/CV
REF
RF4/AN9
RF3/AN8
RF2/AN7/C1OUT
RB0/INT0
RB1/INT1
RB2/INT2
RB3/INT3
RB4/KBI0
RB5/KBI1/PGM
RB6/KBI2/PGC
V
SS
OSC2/CLKO/RA6
OSC1/CLKI/RA7
V
DD
RB7/KBI3/PGD
RC5/SDO1
RC4/SDI1/SDA1
RC3/SCK1/SCL1
RC2/ECCP1/P1A
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
RD7/PSP7/SS2
48
47
46
45
44
43
42
41
40
39
38
37
36
35
34
33
RC7/RX1/DT1
RE2/CS/P2B
RD0/PSP0
RD1/PSP1
RD2/PSP2
PIC18F6527
PIC18F6622
PIC18F6627
PIC18F6722
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
RA2/AN2/V
REF
-
RF0/AN5
RD3/PSP3
V
DD
V
SS
RA4/T0CKI
RC1/T1OSI/ECCP2
(1)
/P2A
(1)
Note 1:
The ECCP2/P2A pin placement is determined by the CCP2MX Configuration bit.
RC0/T1OSO/T13CKI
AV
SS
RA3/AN3/V
REF
+
RA5/AN4/HLVDIN
RF1/AN6/C2OUT
RC6/TX1/CK1
RA1/AN1
RA0/AN0
AV
DD
V
SS
V
DD
DS39646C-page 2
©
2008 Microchip Technology Inc.
PIC18F8722 FAMILY
Pin Diagrams (Continued)
80-Pin TQFP
RH2/A18
RH3/A19
RE1/AD9/WR/P2C
RE0/AD8/RD/P2D
RG0/ECCP3/P3A
RG1/TX2/CK2
RG2/RX2/DT2
RG3/CCP4/P3D
RG5/MCLR/V
PP
RG4/CCP5/P1D
V
SS
V
DD
RF7/SS1
RF6/AN11
RF5/AN10/CV
REF
RF4/AN9
RF3/AN8
RF2/AN7/C1OUT
RH7/AN15/P1B
(2)
RH6/AN14/P1C
(2)
RH1/A17
RH0/A16
RE2/AD10/CS/P2B
RE3/AD11/P3C
(2)
RE4/AD12/P3B
(2)
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
60
59
58
57
56
55
54
53
52
51
50
49
48
47
46
45
44
43
42
41
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
RJ2/WRL
RJ3/WRH
RB0/INT0
RB1/INT1
RB2/INT2
RB3/INT3/ECCP2
(1)
/P2A
(1)
RB4/KBI0
RB5/KBI1/PGM
RB6/KBI2/PGC
V
SS
OSC2/CLKO/RA6
OSC1/CLKI/RA7
V
DD
RB7/KBI3/PGD
RC5/SDO1
RC4/SDI1/SDA1
RC3/SCK1/SCL1
RC2/ECCP1/P1A
RJ7/UB
RJ6/LB
RF1/AN6/C2OUT
RF0/AN5
AV
DD
AV
SS
RA3/AN3/V
REF
+
RA2/AN2/V
REF
-
Note 1:
2:
The ECCP2/P2A pin placement is determined by the CCP2MX Configuration bit and Processor mode settings.
P1B, P1C, P3B and P3C pin placement is determined by the ECCPMX Configuration bit.
©
2008 Microchip Technology Inc.
RA5/AN4/HLVDIN
RA4/T0CKI
RC1/T1OSI/ECCP2
(1)
/P2A
(1)
RC0/T1OSO/T13CKI
RC6/TX1/CK1
RC7/RX1/DT1
RH5/AN13/P3B
(2)
RH4/AN12/P3C
(2)
RA1/AN1
RA0/AN0
V
SS
V
DD
RJ4/BA0
RJ5/CE
RE5/AD13/P1C
(2)
RE6/AD14/P1B
(2)
RE7/AD15/ECCP2
(1)
/P2A
(1)
RD0/AD0/PSP0
V
DD
V
SS
RD1/AD1/PSP1
RD2/AD2/PSP2
RD3/AD3/PSP3
RD4/AD4/PSP4/SDO2
RD5/AD5/PSP5/SDI2/SDA2
RD6/AD6/PSP6/SCK2/SCL2
RD7/AD7/PSP7/SS2
RJ0/ALE
RJ1/OE
PIC18F8527
PIC18F8622
PIC18F8627
PIC18F8722
DS39646C-page 3