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 t he lik e is provided only for your convenience
and may be su perseded by upda t es . It is y our 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 supp ort and/or safety ap plications is entir ely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless M icrochip from any and all dama ges, claims,
suits, or expenses re sulting from such use. No licens es are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EELOQ, KEELOQ 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
Programmin g , IC SP, ICEPIC, Mindi, MiW i , MPASM, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, PICkit, PICDEM,
PICDEM.net, PICtail, PIC
32
logo, PowerCal, PowerInfo,
PowerMate, PowerT ool, 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.
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
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.
6.0Flash Pro g ram Memory.............................................................. ................................................................................................87
8.0Data EEPR OM Mem o ry................ .................................................................. ......................................................................... 111
9.08 x 8 Hardware Multip lier.............................. ........................... ........................................ ......................................................... 117
19.0 Master Synchronous Serial Port (MSSP) Module ....................................................................................................................205
25.0 Special Features of the CPU.................................................................. ..................................................................................297
26.0 Instruction Set Summary..........................................................................................................................................................321
27.0 Development Support. .............................................................................................................................................................. 371
Appendix D: Migration From Baseline to Enhanced Devices............................................................................................................. 426
Appendix E: Migration From Mid-Range to Enhanced Devices......................................................................................................... 427
Appendix F: Migration From High-End to Enhanced Devices.................................................................. .. ........................................ 427
Index .................................................................................................................................................................................................. 429
The Microchip Web Site.................. ................................................................................................................................................... 441
Customer Change Notification Service .............................................................................................................................................. 441
PIC18F8722 Family Product Identification System............................................................................................................................443
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 c omm ents regarding t his publication, please contact the Marketing Communications Department via
E-mail at docerrors@.microchip.com or fax the Reader Response Form in the back of this data sheet to (480) 792-4150. 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 Web site 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., DS30000A is version A of document DS30000).
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 Web site; 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 web site at www.microchip.com to receive the most current information on all of our products.
This document co nta i ns dev ic e spec if i c in for m at ion fo r
the following devices:
• PIC18F6527• PIC18LF6527
• PIC18F6622• PIC18LF6622
• PIC18F6627• PIC18LF6627
• PIC18F6722• PIC18LF6722
• PIC18F8527• PIC18LF8527
• PIC18F8622• PIC18LF8622
• PIC18F8627• PIC18LF8627
• PIC18F8722• PIC18LF8722
This family offers the advantages of all PIC18 microcontrollers – namely, high computa tional performance at
an economical price – with the addition of highendurance, Enhanced Flash program memory . On top of
these features, the PIC18F8722 family introduces
design enhancements that make these microcontrollers
a logical choice for many high-performance, power
sensitive applications.
1.1New Core Features
1.1.1nanoWatt TECHNOLOGY
All of the devices in the PIC18 F8722 fami ly incorp orate
a range of features that can significantly reduce power
consumption during operation. Key items include:
• Alternate Run Modes: By clocking the controller
from the Timer1 source or the internal oscillator
block, power consumption during code execution
can be significantly redu ce d.
• Multiple Idle Modes: The controller can also run
with its CPU core disabled but the peripherals still
active. In these st ates, powe r consumpt ion can be
reduced even further.
• On-the-fly Mode Switching: The powermanaged modes a re invo ked b y user code durin g
operation, allowing the user to incorporate powersaving ideas into their application’s software
design.
• Low Consumption in Key Modules: The
power requirements for both Timer1 and the
Watchdog Timer are minimized. See
Section 28.0 “Electrical Characteristics”
for values.
1.1.2EXPANDED MEMORY
The PIC18F8722 family provides ample room for
application code and includes members with 48, 64,
96 or 128 Kbytes of code space.
• Data RAM and Data EEPROM: The PIC18F872 2
family also p rov ide s ple nty o f room for applicati on
data. The devices have 3936bytes of data RAM,
as well as 1024 bytes of data EEPROM, for long
term retention of nonvolatile data.
• Memory Endurance: The Enhanced Flash cells
for both program memory and data EEPROM are
rated to last for many thousands of erase/write
cycles, up to 100,000 for program memory and
1,000,000 for EEPROM. Data retention without
refresh is conservatively estimated to be greater
than 40 years.
1.1.3MULTIPLE OSCILLATOR OPTIONS
AND FEATURES
All of the devices in the PIC18F8722 family offer ten
different osci llator option s, all owin g users a w ide range
of choices in developing application hardware. These
include:
• Four Crystal modes, using crystals or ceramic
resonators
• Two External Clock modes, offering the option of
using two pins (oscillator input and a divide-by-4
clock output) or one pin (oscillator input, with the
second pin reassigned as general I/O)
• Two External RC Oscillator modes with the same
pin options as the External Clock modes
• An internal oscillator block which provides an
8 MHz clock and an INTRC source (approximately 31 kHz), as well as a range of 6 user
selectable cl ock fre quenc ies, be tween 125 kHz to
4 MHz, for a total of 8 clock frequencies. This
option frees the two oscillator pins for use as
additional general purpose I/O.
• A Phase Lock Loop (PLL) frequency multiplier,
available to both the high-speed crystal and internal oscillator m odes, which a llows clo ck speeds o f
up to 40 MHz. Used with the internal oscillator, the
PLL gives users a complete selection of clock
speeds, from 31 kHz to 32 MHz – all without us ing
an external crystal or clock circuit.
Besides its availability as a clock source, the internal
oscillator block provides a stable reference source that
gives the family additional features for robust operation:
• Fail-Safe Clock Monitor: This option co nst ant ly
monitors the m ai n c l oc k source against a reference
signal provide d by th e internal osci ll at or. If a cl oc k
failure occu rs , t he co nt rol le r i s s witc h ed to th e
internal oscillator block, allowing for continued
low-speed operation or a safe application shutdown.
• Two-Speed Start-up: This option allows the
internal oscillator to serve as the clock source
from Power-on Reset, or wake-up from Sleep
mode, until the primary clock source is available.
1.1.4EXTERNAL MEMORY INTERFACE
In the unlikely event that 128 Kbytes of program
memory is inadequate for an application, the
PIC18F8527/8622/8627/8722 members of the family
also implement an external memory interface. This
allows the controller’s internal program counter to
address a memory space of up to 2 Mbytes,
permitting a level of data access that few 8-bit devices
can claim.
With the addition of new operat ing mod es, the ext erna l
memory interface offers many new options, including:
• Operating the microcontrol le r entirel y from
external memory
• Using combinations of on-chip and external
memory, up to the 2-Mbyte limit
• Using external Flash memory for reprogrammable
application code or large data tables
• Using external RAM devices for storing large
amounts of variable data
1.1.5EASY MIGRATION
Regardless of the memory size, all devices share the
same rich set of peripherals, allowing for a smooth
migration path as applications grow and evolve.
The consistent pinout scheme used throughout the
entire family also aids in migrating to the next larger
device. Thi s is true when mo ving between the 64-pin
members, between the 80-pin members, or even
jumping from 64-pin to 80-pin devices.
1.2Other Special Features
• Communications: The PIC18F8722 family
incorporates a range of serial communication
peripherals, including 2 independent Enhanced
USARTs and 2 Master SSP modules capable of
both SPI and I
operation. Also, one of the general purpose I/O
ports can be reconfigured as an 8-bit Parallel
Slave Port for direct processor-to-processor
communications.
• CCP Modules: All devices in the family
incorporate two Capture/Compare/PWM (CCP)
modules and three Enhanced CCP (ECCP)
modules to maximize flexibility in control
applications. Up to four different time bases may
be used to perform severa l di f fe rent operations at
once. Each of the three ECCP modul es offer up to
four PWM outputs, allowing for a total of
12 PWMs. The ECCPs also offer many beneficial
features, including polarity selection,
Programmable Dead-Time, Auto-Shutdown and
Restart and Half-Bridge and Full-Bridge
Output modes.
• Self-Programmability: These devices can write
to their own program memory spaces under
internal software control. By using a bootloader
routine located in the protected boot block at the
top of program memory, it becomes possible to
create an application that can update itself in the
field.
• Extended Instruction Set: The PIC18F8722
family introduces an optional extension to the
PIC18 instruction set, which adds 8 new instructions and an Indexed Addressing mode. This
extension, enabled as a device configuration
option, has been specifi cally des igned to opti mize
re-entrant applica tion code original ly deve loped in
high-level language s, su ch as C.
• 10-bit A/D Converter: This module incorporates
programmable acquisition time, allowing for a
channel to be selected and a conversion to be
initiated without w ait ing for a sampling period and
thus, reduce code overhead.
• Extended Watchdog Timer (WDT): This
enhanced version in corpora tes a 16 -bit pre scale r,
allowing an exte nded time-o ut rang e that is s ta ble
across operating voltage and temperature. See
Section 28.0 “Electrical Characteristics” for
time-out periods.
Devices in the PIC18F8722 family are available in
64-pin and 80-pin packages. Block diagrams for the
two groups are shown in Figure 1-1 and Figure 1-2.
The devices are differentiated from each other in five
ways:
1.Flash program memory (48 Kbytes for
PIC18F6527/8527 devices, 64 Kbytes for
PIC18F6622/8622 devices, 96 Kbytes for
PIC18F6627/8627 devices and 128 Kbytes for
All other features fo r device s in this family are identi cal.
These are summarized in Table1-2 and Table 1-2.
The pinouts for all devices are listed in Table 1-3 and
Table 1-4.
Like all Microchip PIC18 devices, members of the
PIC18F8722 family are available as both standard and
low-voltage devices. Standard devices with Enhanced
Flash memory, designated with an “F” in the part
number (such as PIC18F6627), accommodate an
operating V
DD range of 4.2V to 5.5V. Low-voltage
parts, designated by “LF” (such as PIC18LF6627),
function over an extended VDD range of 2.0V to 5.5V.
PIC18F6722/8722).
2. A/D channels (12 for 64-pin devices, 16 for
80-pin devices).
3. I/O ports (7 bidirectional por ts on 64-pin de vices,
9 bidirectional ports on 80-pin devices).
4. External Memory Bus, configurable for 8 and
16-bit operation, is available on PIC18F8527/
8622/8627/8722 devices.
T ABLE 1-1:DEVICE FEATURES (PIC18F6527/6622/6627/6722)
FeaturesPIC18F6527PIC18F6622PIC18F6627PIC18F6722
Operating FrequencyDC – 40 MHzDC – 40 MHzDC – 40 MHzDC – 40 MHz
Program Memory (Bytes)48K64K96K128K
Program Memory (Instructions)24576327684915265536
Data Memory (Bytes)3936393639363936
Data EEPROM Memory (Bytes)1024102410241024
Interrupt Sources28282828
I/O PortsPorts A, B, C, D, E, F, G Ports A, B, C, D, E, F, G Ports A, B, C, D, E, F, G Ports A, B, C, D, E, F, G
Timers5555
Capture/Co mp a re/PWM
Modules
Enhanced Capture/Compare/
PWM Modules
Enhanced USART2222
Serial CommunicationsMSSP,
Parallel Communications (PSP)Y esY esYe sYes
10-bit Analog-to-Digit al Modul e12 Input Channels12 Input Channels12 In put Cha nnel s12 Input Chann els
Resets (and Delays)POR, BOR,
Operating FrequencyDC – 40 MHzDC – 40 MHzDC – 40 MHzDC – 40 MHz
Program Memory (Bytes)48K64K96K128K
Program Memory (Instructions)24576327684915265536
Data Memory (Bytes)3936393639363936
Data EEPROM Memo ry (Byte s)1024102410241024
Interrup t Sou r ce s29292929
I/O PortsPorts A, B, C, D, E,
F, G, H, J
Timers5555
Capture/Compare/PWM
Modules
Enhanced Capture/Comp are/
PWM Modules
Enhanced USART2222
Serial CommunicationsMSSP,
Parallel Communications
(PSP)
10-bit Analog-to-Digit al Modul e16 Input Channels16 Input Chann els16 Input Channels16 Input Channels
Resets (and Delays)POR, BOR,
Note 1: Default assignment for ECCP2 when Conf iguration bit, CCP2MX, is set.
/VPP
ST = Schmitt Trigger input with CMOS levels Analog= Analog input
I= Input O= Output
P= Power I
2: Alternate assignment for ECCP2 when Configuration bit, CCP2MX, is cleared.
39
40
7
I
I
P
I
I
CMOS
I/O
O
O
I/O
2
C™= I2C/SMBus input buffer
Master Clear (input) or programming voltage (input).
ST
ST
ST
TTL
—
—
TTL
Digital input.
Master Clear (Reset) input. This pin is an active-low
Reset to the device.
Programming voltage input.
Oscillator crystal or external clock input.
Oscillator crystal input or external clock source input.
ST buffer when configured in RC mode, CMOS
otherwise.
External clock source input. Always associated
with pin function OSC1. (See related OSC1/CLKI,
OSC2/CLKO pins.)
General purpose I/O pin.
Oscillator crystal or clock output.
Oscillator crystal output. Connects to crystal or
resonator in Crystal Oscillator mode.
In RC mode, OSC2 pin outputs CLKO, which has
1/4 the frequency of OSC1 and denotes the
instruction cycle rate.
General purpose I/O pin.
Note 1: Alternate assignment for ECCP2 when Configuration bit, CCP2MX, is cleared (all operating modes except
/VPP
ST = Schmitt Trigger input with CMOS levels Analog= Analog input
I= Input O= Output
P= Power I
Microcontroller mode).
2: Default assignment fo r ECCP2 in all operating modes (CCP2MX is set).
3: Alternate assignment for ECCP2 when CCP2MX is cleared (Microcontroller mode only).
4: Default assignment for P1B/P1C/P3B/P3C (ECCPMX is set).
5: Alternate assignment for P1B/P1C/P3B/P3C (ECCPMX is clear).
49
50
9
I
I
P
I
I
CMOS
I/O
O
O
I/O
2
C™/SMB= I2C/SMBus input buffer
Master Clear (input) or programming voltage (input).
ST
ST
ST
TTL
—
—
TTL
Digital input.
Master Clear (Reset) input. This pin is an active-low
Reset to the device.
Programming voltage input.
Oscillator crystal or external clock input.
Oscillator crystal input or external clock source input.
ST buffer when configured in RC mode, CMOS
otherwise.
External clock source input. Always associated with
pin function OSC1. (See related OSC1/CLKI,
OSC2/CLKO pins.)
General purpose I/O pin.
Oscillator crysta l or clock output.
Oscillator crystal output. Connects to crystal or
resonator in Crystal Oscillator mode.
In RC mode, OSC2 pin out put s CLKO, whi ch has 1/4 the
frequency of OSC1 and denotes the
instruction cycle rate.
General purpose I/O pin.
Note 1: Alternate assignment for ECCP2 when Configuration bit, CCP2MX, is cleared (all operating modes except
REF-
REF-
REF+
REF+
ST = Schmitt Trigger input with CMOS levels Analog= Analog input
I= Input O= Output
P= Power I
Microcontroller mode).
2: Default assignment fo r ECCP2 in all operating modes (CCP2MX is set).
3: Alternate assignment for ECCP2 when CCP2MX is cleared (Microcontroller mode only).
4: Default assignment for P1B/P1C/P3B/P3C (ECCPMX is set).
5: Alternate assignment for P1B/P1C/P3B/P3C (ECCPMX is clear).
30
29
28
27
34
33
I/O
I/O
I/O
I/O
I/OIST/ODSTDigital I/O. Open-drain when configured as output.
I/O
TTL
I
Analog
TTL
I
Analog
TTL
I
Analog
I
Analog
TTL
I
Analog
I
Analog
TTL
I
Analog
I
Analog
2
C™/SMB= I2C/SMBus input buffer
Digital I/O.
Analog input 0.
Digital I/O.
Analog input 1.
Digital I/O.
Analog input 2.
A/D reference voltage (low) input.
Digital I/O.
Analog input 3.
A/D reference voltage (high) input.
Timer0 external clock input.
Digital I/O.
Analog input 4.
High/Low-Voltage Detect inpu t.
ST = Schmitt Trigger input with CMOS levels Analog= Analog input
I= Input O= Output
P= Power I
Note 1: Alternate assignment for ECCP2 when Configuration bit, CCP2MX, is cleared (all operating modes except
Microcontroller mode).
2: Default assignment fo r ECCP2 in all operating modes (CCP2MX is set).
3: Alternate assignment for ECCP2 when CCP2MX is cleared (Microcontroller mode only).
4: Default assignment for P1B/P1C/P3B/P3C (ECCPMX is set).
5: Alternate assignment for P1B/P1C/P3B/P3C (ECCPMX is clear).
57
56
55
54
53
52
47
I/O
I/O
I/O
O
O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
TTL
I
I
I
I
I
I
I
2
ST
TTL
ST
TTL
ST
—
—
TTL
TTL
TTL
TTL
ST
TTL
TTL
ST
TTL
TTL
ST
C™/SMB= I2C/SMBus input buffer
Digital I/O.
External interrupt 1.
Digital I/O.
External interrupt 2.
Digital I/O.
External interrupt 3.
Enhanced Capture 2 input/Compare 2 output/
PWM 2 output .
ECCP2 PWM output A.
Digital I/O.
Interrupt-on-change pin.
Digital I/O.
Interrupt-on-change pin.
Low-V o lt ag e ICSP™ Prog rammi ng ena ble pin.
Digital I/O.
Interrupt-on-change pin.
In-Circuit Debugger and ICSP™ programming clock pin.
Digital I/O.
Interrupt-on-change pin.
In-Circuit Debugger and ICSP programming data pin.
ST = Schmitt Trigger input with CMOS levels Analog= Analog input
I= Input O= Output
P= Power I
Note 1: Alternate assignment for ECCP2 when Configuration bit, CCP2MX, is cleared (all operating modes except
Microcontroller mode).
2: Default assignment fo r ECCP2 in all operating modes (CCP2MX is set).
3: Alternate assignment for ECCP2 when CCP2MX is cleared (Microcontroller mode only).
4: Default assignment for P1B/P1C/P3B/P3C (ECCPMX is set).
5: Alternate assignment for P1B/P1C/P3B/P3C (ECCPMX is clear).
Digital I/O.
EUSART1 asynchronous receive.
EUSART1 synchronous data (see related TX1/CK1).
PIC18F8722 FAMILY
T ABLE 1-4:PIC18F8527/8622/8627/8722 PINOUT I/O DESCRIPTIONS (CONTINUED)
Pin Name
Pin Number
TQFP
Pin
Type
Buffer
Type
Description
PORTD is a bidirectional I/O port.
RD0/AD0/PSP0
RD0
AD0
PSP0
RD1/AD1/PSP1
RD1
AD1
PSP1
RD2/AD2/PSP2
RD2
AD2
PSP2
RD3/AD3/PSP3
RD3
AD3
PSP3
RD4/AD4/PSP4/SDO2
RD4
AD4
PSP4
SDO2
RD5/AD5/PSP5/
SDI2/SDA2
RD5
AD5
PSP5
SDI2
SDA2
RD6/AD6/PSP6/
SCK2/SCL2
RD6
AD6
PSP6
SCK2
SCL2
72
69
68
67
66
65
64
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
I/O
ST
TTL
TTL
ST
TTL
TTL
ST
TTL
TTL
ST
TTL
TTL
ST
TTL
TTL
—
ST
TTL
TTL
I
ST
2
C/SMB
I
ST
TTL
TTL
ST
2
C/SMB
I
Digital I/O.
External memory address/data 0.
Parallel Slave Port data.
Digital I/O.
External memory address/data 1.
Parallel Slave Port data.
Digital I/O.
External memory address/data 2.
Parallel Slave Port data.
Digital I/O.
External memory address/data 3.
Parallel Slave Port data.
Digital I/O.
External memory address/data 4.
Parallel Slave Port data.
SPI data out.
Digital I/O.
External memory address/data 5.
Parallel Slave Port data.
SPI data in.
2
C™ data I/O.
I
Digital I/O.
External memory address/data 6.
Parallel Slave Port data.
Synchronous serial clock input/output for SPI mode.
Synchronous serial clock input/output for I2C mode.
ST = Schmitt Trigger input with CMOS levels Analog= Analog input
I= Input O= Output
P= Power I
Note 1: Alternate assignment for ECCP2 when Configuration bit, CCP2MX, is cleared (all operating modes except
Microcontroller mode).
2: Default assignment fo r ECCP2 in all operating modes (CCP2MX is set).
3: Alternate assignment for ECCP2 when CCP2MX is cleared (Microcontroller mode only).
4: Default assignment for P1B/P1C/P3B/P3C (ECCPMX is set).
5: Alternate assignment for P1B/P1C/P3B/P3C (ECCPMX is clear).
ST = Schmitt Trigger input with CMOS levels Analog= Analog input
I= Input O= Output
P= Power I
Note 1: Alternate assignment for ECCP2 when Configuration bit, CCP2MX, is cleared (all operating modes except
Microcontroller mode).
2: Default assignment fo r ECCP2 in all operating modes (CCP2MX is set).
3: Alternate assignment for ECCP2 when CCP2MX is cleared (Microcontroller mode only).
4: Default assignment for P1B/P1C/P3B/P3C (ECCPMX is set).
5: Alternate assignment for P1B/P1C/P3B/P3C (ECCPMX is clear).
ST = Schmitt Trigger input with CMOS levels Analog= Analog input
I= Input O= Output
P= Power I
Note 1: Alternate assignment for ECCP2 when Configuration bit, CCP2MX, is cleared (all operating modes except
Microcontroller mode).
2: Default assignment fo r ECCP2 in all operating modes (CCP2MX is set).
3: Alternate assignment for ECCP2 when CCP2MX is cleared (Microcontroller mode only).
4: Default assignment for P1B/P1C/P3B/P3C (ECCPMX is set).
5: Alternate assignment for P1B/P1C/P3B/P3C (ECCPMX is clear).
RG5See RG5/ MC LR
Legend: TTL = TTL compatible input CMOS= CMOS compatible input or output
ST = Schmitt Trigger input with CMOS levels Analog= Analog input
I= Input O= Output
P= Power I
Note 1: Alternate assignment for ECCP2 when Configuration bit, CCP2MX, is cleared (all operating modes except
Microcontroller mode).
2: Default assignment fo r ECCP2 in all operating modes (CCP2MX is set).
3: Alternate assignment for ECCP2 when CCP2MX is cleared (Microcontroller mode only).
4: Default assignment for P1B/P1C/P3B/P3C (ECCPMX is set).
5: Alternate assignment for P1B/P1C/P3B/P3C (ECCPMX is clear).
10
5
I/O
I/O
O
6
I/O
O
I/O
7
I/O
I
I/O
8
I/O
I/O
O
I/O
I/O
O
2
ST
ST
—
ST
—
ST
ST
ST
ST
ST
ST
—
ST
ST
—
C™/SMB= I2C/SMBus input buffer
Digital I/O.
Enhanced Capture 3 input/Compare 3 output/
PWM 3 output .
ECCP3 PWM output A.
Digital I/O.
EUSART2 asynchronous transmit.
EUSART2 synchronous clock (see related RX2/DT2).
Digital I/O.
EUSART2 asynchronous receive.
EUSART2 synchronous data (see related TX2/CK2).
Digital I/O.
Capture 4 input/Compare 4 output/PWM 4 output.
ECCP3 PWM output D.
Digital I/O.
Capture 5 input/Compare 5 output/PWM 5 output.
ECCP1 PWM output D.