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, dsPIC,
K
logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL 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, HI-TIDE, In-Circuit Serial
Programming, ICSP, Mindi, MiWi, MPASM, MPLAB Certified
logo, MPLIB, MPLINK, mTouch, Octopus, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, Total Endurance,
TSHARC, UniWinDriver, 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.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
DS39964B-page 2Preliminary 2010 Microchip Technology Inc.
PIC18F47J53 FAMILY
28/44-Pin, High-Performance USB MCUs with nanoWatt XLP Technology
Universal Serial Bus Features:
• USB V2.0 Compliant
• Low Speed (1.5 Mbps) and Full Speed (12 Mbps)
• Supports Control, Interrupt, Isochronous and Bulk
Transfers
• Supports up to 32 Endpoints (16 bidirectional)
• USB module can use any RAM Location on the
Device as USB Endpoint Buffers
• On-Chip USB Transceiver with Crystal-Less Operation
Power Management with nanoWatt XLP
• Deep Sleep mode: CPU off, Peripherals off, Currents
Down to 13 nA and 850 nA with RTCC
- Able to wake-up on external triggers,
programmable WDT or RTCC alarm
- Ultra Low-Power Wake-up (ULPWU)
• Sleep mode: CPU off, Peripherals off, SRAM on,
Fast Wake-up, Currents Down to 105 nA Typical
• Idle: CPU off, Peripherals on, Currents Down to
2.3 A Typical
• Run: CPU on, Peripherals on, Currents Down to
6.2 A Typical
• Timer1 Oscillator w/RTCC: 1 μA, 32 kHz Typical
• Watchdog Timer: 0.8 μA, 2V Typical
Special Microcontroller Features:
• 5.5V Tolerant Inputs (digital-only pins)
• Low-Power, High-Speed CMOS Flash Technology
• C Compiler Optimized Architecture for Re-Entrant Code
• Priority Levels for Interrupts
• Self-Programmable under Software Control
• 8 x 8 Single-Cycle Hardware Multiplier
• Extended Watchdog Timer (WDT):
- Programmable period from 4 ms to 131s
• Single-Supply In-Circuit Serial Programming™
(ICSP™) via Two Pins
• In-Circuit Debug with Three Breakpoints via Two Pins
• Operating Voltage Range of 2.0V to 3.6V
• On-Chip 2.5V Regulator
• Flash Program Memory of 10,000 Erase/Write
Cycles Minimum and 20-Year Data Retention
Flexible Oscillator Structure:
• High-Precision PLL for USB
• Two External Clock modes, up to 48 MHz (12 MIPS)
• Internal, 31-kHz Oscillator
• High-Precision, Internal Oscillator for USB, 31 kHz to
8 MHz or 48 MHz w/PLL, ±.15% Typical, ±1% Max
• Secondary Oscillator using Timer1 at 32 kHz
• Fail-Safe Clock Monitor (FSCM):
- Allows for safe shutdown if any clock stops
• Programmable Reference Clock Output Generator
Peripheral Highlights:
• Peripheral Pin Select:
- Allows independent I/O mapping of many peripherals
RB3/AN9/C3INA/CTED2/VPO/RP6
RB2/AN8/C2INC/CTED1/VMO/REFO/RP5
RB1/AN10/C3INC/RTCC/RP4
RB0/AN12/C3IND/INT0/RP3
V
DD
VSS2
RC7/CCP10/RX1/DT1/SDO1/RP18
RC6/CCP9/TX1/CK1/RP17
RC5/D+/VP
RC4/D-/VM
MCLR
RA0/AN0/C1INA/ULPWU/RP0
RA1/AN1/C2INA/V
BG/RP1
RA2/AN2/C2INB/C1IND/C3INB/VREF-/CVREF
RA3/AN3/C1INB/VREF+
V
DDCORE/VCAP
RA5/AN4/C1INC/SS1/HLVDIN/RCV/RP2
V
SS1
OSC1/CLKI/RA7
OSC2/CLKO/RA6
RC1/CCP8/T1OSI/UOE/RP12
RC2/AN11/C2IND/CTPLS/RP13
V
USB
Legend:Shaded pins are 5.5V tolerant.
RPn represents remappable pins. Some input and output functions are routed through the Peripheral Pin
Select (PPS) module and can be dynamically assigned to any of the RPn pins. For a list of the input and
output functions, see Table 10-13 and Table 10-14, respectively. For details on configuring the PPS module, see Section 10.7 “Peripheral Pin Select (PPS)”.
Note:For the QFN package, it is recommended that the bottom pad be connected to V
2.0 Guidelines for Getting Started with PIC18FJ Microcontrollers ................................................................................................... 31
7.0 Flash Program Memory............................................................................................................................................................ 109
8.0 8 x 8 Hardware Multiplier.......................................................................................................................................................... 119
20.0 Master Synchronous Serial Port (MSSP) Module .................................................................................................................... 291
23.0 Universal Serial Bus (USB) ...................................................................................................................................................... 379
25.0 Comparator Voltage Reference Module ................................................................................................................................... 415
26.0 High/Low Voltage Detect (HLVD)............................................................................................................................................. 419
27.0 Charge Time Measurement Unit (CTMU) ................................................................................................................................ 425
28.0 Special Features of the CPU.................................................................................................................................................... 441
29.0 Instruction Set Summary.......................................................................................................................................................... 459
30.0 Development Support............................................................................................................................................................... 509
Appendix B: Migration From PIC18F46J50 to PIC18F47J53............................................................................................................. 569
The Microchip Web Site..................................................................................................................................................................... 583
Customer Change Notification Service .............................................................................................................................................. 583
Customer Support .............................................................................................................................................................................. 583
DS39964B-page 8Preliminary 2010 Microchip Technology Inc.
PIC18F47J53 FAMILY
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 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.
DS39964B-page 10Preliminary 2010 Microchip Technology Inc.
PIC18F47J53 FAMILY
1.0DEVICE OVERVIEW
This document contains device-specific information for
the following devices:
• P IC 18 F2 6J 53 • PIC1 8LF 26J 53
• PIC18F27J53• PIC18LF27J53
• PIC18F46J53• PIC18LF46J53
• PIC18F47J53• PIC18LF47J53
This family introduces a new line of low-voltage
Universal Serial Bus (USB) microcontrollers with the
main traditional advantage of all PIC18 microcontrollers,
namely, high computational performance and a rich
feature set at an extremely competitive price point.
These features make the PIC18F47J53 family a logical
choice for many high-performance applications, where
cost is a primary consideration.
1.1Core Features
1.1.1nanoWatt XLP TECHNOLOGY
All of the devices in the PIC18F47J53 family incorporate a range of features that can significantly reduce
power consumption during operation. Key features are:
• Alternate Run Modes: By clocking the controller
from the Timer1 source or the internal RC
oscillator, power consumption during code
execution can be reduced by as much as 90%.
• Multiple Idle Modes: The controller can also run
with its CPU core disabled but the peripherals still
active. In these states, power consumption can be
reduced even further, to as little as 4% of normal
operational requirements.
• On-the-Fly Mode Switching: The
power-managed modes are invoked by user code
during operation, allowing the users to incorporate
power-saving ideas into their application’s
software design.
• Deep Sleep: The 2.5V internal core voltage regulator on F parts can be shutdown to cut power
consumption to as low as 15 nA (typical). Certain
features can remain operating during Deep Sleep,
such as the Real-Time Clock Calendar.
• Ultra Low Power Wake-Up: Waking from Sleep
or Deep Sleep modes after a period of time can
be done without an oscillator/clock source, saving
power for applications requiring periodic activity.
1.1.2UNIVERSAL SERIAL BUS (USB)
Devices in the PIC18F47J53 family incorporate a
fully-featured USB communications module with a
built-in transceiver that is compliant with the USB
Specification Revision 2.0. The module supports both
low-speed and full-speed communication for all
supported data transfer types.
1.1.3OSCILLATOR OPTIONS AND
FEATURES
All of the devices in the PIC18F47J53 family offer five
different oscillator options, allowing users a range of
choices in developing application hardware. These
include:
• Two Crystal modes, using crystals or ceramic
resonators.
• Two External Clock modes, offering the option of
a divide-by-4 clock output.
• An internal oscillator block, which provides an
8 MHz clock and an INTRC source (approximately 31 kHz, stable over temperature and V
as well as a range of six user-selectable clock
frequencies, between 125 kHz to 4 MHz, for a
total of eight clock frequencies. This option frees
an oscillator pin for use as an additional general
purpose I/O.
• A Phase Lock Loop (PLL) frequency multiplier
available to the high-speed crystal, and external
and internal oscillators, providing a clock speed
up to 48 MHz.
• Dual clock operation, allowing the USB module to
run from a high-frequency oscillator while the rest
of the microcontroller is clocked at a different
frequency.
The internal oscillator block provides a stable reference
source that gives the PIC18F47J53 family additional
features for robust operation:
• Fail-Safe Clock Monitor: This option constantly
monitors the main clock source against a reference
signal provided by the internal oscillator. If a clock
failure occurs, the controller is switched to the
internal oscillator, 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 (POR), or wake-up from
Sleep mode, until the primary clock source is
available.
DD),
1.1.4EXPANDED MEMORY
The PIC18F47J53 family provides ample room for
application code, from 64 Kbytes to 128 Kbytes of code
space. The Flash cells for program memory are rated
to last in excess of 10000 erase/write cycles. Data
retention without refresh is conservatively estimated to
be greater than 20 years.
The Flash program memory is readable and writable
during normal operation. The PIC18F47J53 family also
provides plenty of room for dynamic application data
with up to 3.8 Kbytes of data RAM.
The PIC18F47J53 family implements the optional
extension to the PIC18 instruction set, adding eight
new instructions and an Indexed Addressing mode.
Enabled as a device configuration option, the extension
has been specifically designed to optimize re-entrant
application code originally developed in high-level
languages, such as C.
1.1.6EASY 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.
The PIC18F47J53 family is also pin compatible with
other PIC18 families, such as the PIC18F4550,
PIC18F2450 and PIC18F46J50. This allows a new
dimension to the evolution of applications, allowing
developers to select different price points within
Microchip’s PIC18 portfolio, while maintaining the
same feature set.
1.2Other Special Features
• Communications: The PIC18F47J53 family
incorporates a range of serial and parallel communication peripherals, including a fully featured
USB communications module that is compliant
with the USB Specification Revision 2.0. This
device also includes two independent Enhanced
USARTs and two Master Synchronous Serial Port
(MSSP) modules, capable of both Serial
Peripheral Interface (SPI) and I
Slave) modes of operation. The device also has a
parallel port and can be configured to serve as
either a Parallel Master Port (PMP) or as a
Parallel Slave Port (PSP).
• CCP/ECCP Modules: All devices in the family
incorporate seven Capture/Compare/PWM (CCP)
modules and three Enhanced Capture/Compare/PWM (ECCP) modules to maximize flexibility
in control applications. ECCPs offer up to four
PWM output signals each. 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.
2
C™ (Master and
• 10/12-Bit A/D Converter: This module incorporates programmable acquisition time, allowing for
a channel to be selected and a conversion to be
initiated without waiting for a sampling period, and
thus, reducing code overhead.
• Extended Watchdog Timer (WDT): This
enhanced version incorporates a 16-bit prescaler,
allowing an extended time-out range that is stable
across operating voltage and temperature. See
Section 31.0 “Electrical Characteristics” for
time-out periods.
1.3Details on Individual Family
Devices
Devices in the PIC18F47J53 family are available in
28-pin and 44-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 two
ways:
• Flash program memory (two sizes: 64 Kbytes for
the PIC18FX6J53 and 128 Kbytes for
PIC18FX7J53)
• I/O ports (three bidirectional ports on 28-pin
devices, five bidirectional ports on 44-pin devices)
All other features for devices in this family are identical.
These are summarized in Table 1-1 and Table 1-2.
The pinouts for the PIC18F2XJ53 devices are listed in
Table 1-3. The pinouts for the PIC18F4XJ53 devices
are shown in Table 1-4.
The PIC18F47J53 family of devices provides an
on-chip voltage regulator to supply the correct voltage
levels to the core. Parts designated with an “F” part
number (such as PIC18F47J53) have the voltage
regulator enabled.
These parts can run from 2.15V-3.6V on V
have the V
low-ESR capacitor. Parts designated with an “LF” part
number (such as PIC18LF47J53) do not enable the voltage regulator nor support Deep Sleep mode. For “LF”
parts, an external supply of 2.0V-2.7V has to be supplied
to the V
DD(VDDCOREshould never exceed VDD).
V
For more details about the internal voltage regulator,
see Section 28.3 “On-Chip Voltage Regulator”.
DDCORE pin connected to VSSthrough a
DDCOREpin while 2.0V-3.6V can be supplied to
DD, but should
DS39964B-page 12Preliminary 2010 Microchip Technology Inc.
PIC18F47J53 FAMILY
TABLE 1-1:DEVICE FEATURES FOR THE PIC18F2XJ53 (28-PIN DEVICES)
FeaturesPIC18F26J53PIC18F27J53
Operating FrequencyDC – 48 MHzDC – 48 MHz
Program Memory (Kbytes)64128
Program Memory (Instructions)32,76865,536
Data Memory (Kbytes)3.83.8
Interrupt Sources30
I/O PortsPorts A, B, C
Timers8
Enhanced Capture/Compare/PWM Modules3 ECCP and 7 CCP
Serial CommunicationsMSSP (2), Enhanced USART (2), USB
Parallel Communications (PMP/PSP)No
10/12-Bit Analog-to-Digital Module10 Input Channels
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
(1)
OSC2
CLKO
(1)
RA6
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to V
DIG = Digital outputI
2: 5.5V tolerant.
28-SPDIP/
SSOP/
SOIC
1
28-QFN
(2)
96
107
26
(2)
ISTMaster Clear (Reset) input. This pin is an
Type
I
I
I/O
O
O
I/O
Buffer
Type
ST
CMOS
TTL/DIG
—
DIG
TTL/DIG
Description
active-low Reset to the device.
Oscillator crystal or external clock input.
Oscillator crystal input or external clock source
input. ST buffer when configured in RC mode;
CMOS otherwise. Main oscillator input
connection.
External clock source input; always associated
with pin function OSC1 (see related OSC1/CLKI
pins).
Digital I/O.
Oscillator crystal or clock output.
Oscillator crystal output. Connects to crystal or
resonator in Crystal Oscillator mode.
Main oscillator feedback output connection.
In RC mode, OSC2 pin outputs CLKO, which
has 1/4 the frequency of OSC1 and denotes
the instruction cycle rate.
Digital I/O.
2
C™= Open-Drain, I2C specific
DD)
DS39964B-page 16Preliminary 2010 Microchip Technology Inc.
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to V
DIG = Digital outputI
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
2: 5.5V tolerant.
Type
I/O
I
I
I
I/O
I/O
O
I
O
I/O
I/O
I
I
I
I
O
I
I/O
I
I
I
I/O
I
I
I
I
I
I/O
Buffer
Type
TTL/DIG
Analog
Analog
Analog
ST/DIG
TTL/DIG
Analog
Analog
Analog
ST/DIG
TTL/DIG
Analog
Analog
Analog
Analog
Analog
Analog
TTL/DIG
Analog
Analog
Analog
TTL/DIG
Analog
Analog
TTL
Analog
Analog
ST/DIG
Description
PORTA is a bidirectional I/O port.
Digital I/O.
Analog Input 0.
Comparator 1 Input A.
Ultra low-power wake-up input.
Remappable Peripheral Pin 0 input/output.
Digital I/O.
Analog Input 1.
Comparator 2 Input A.
Band Gap Reference Voltage (V
Remappable Peripheral Pin 1 input/output.
Digital I/O.
Analog Input 2.
Comparator 2 Input B.
Comparator 1 Input D.
Comparator 3 Input B.
A/D reference voltage (low) input.
Comparator reference voltage output.
Digital I/O.
Analog Input 3.
Comparator 1 Input B.
A/D reference voltage (high) input.
Digital I/O.
Analog Input 4.
Comparator 1 Input C.
SPI slave select input.
High/Low-Voltage Detect input.
External USB transceiver RCV input.
Remappable Peripheral Pin 2 input/output.
See the OSC2/CLKO/RA6 pin.
See the OSC1/CLKI/RA7 pin.
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to VDD)
DIG = Digital outputI
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
2: 5.5V tolerant.
28-SPDIP/
SSOP/
SOIC
2118
2219
2320
2421
28-QFN
Type
I/O
I
I
I
I/O
I/O
I
I
O
I/O
I/O
I
I
I
O
O
I/O
I/O
I
I
I
O
I
Buffer
Type
TTL/DIG
Analog
Analog
ST
ST/DIG
TTL/DIG
Analog
Analog
DIG
ST/DIG
TTL/DIG
Analog
Analog
ST
DIG
DIG
ST/DIG
TTL/DIG
Analog
Analog
ST
DIG
ST/DIG
Description
PORTB is a bidirectional I/O port. PORTB can be
software programmed for internal weak pull-ups
on all inputs.
Digital I/O.
Analog Input 12.
Comparator 3 Input D.
External Interrupt 0.
Remappable Peripheral Pin 3 input/output.
Digital I/O.
Analog Input 10.
Comparator 3 input.
Asynchronous serial transmit data output.
Remappable Peripheral Pin 4 input/output.
Digital I/O.
Analog Input 8.
Comparator 2 Input C.
CTMU Edge 1 input.
External USB Transceiver D- data output.
Reference output clock.
Remappable Peripheral Pin 5 input/output.
Digital I/O.
Analog Input 9.
Comparator 3 Input A.
CTMU edge 2 Input.
External USB Transceiver D+ data output.
Remappable Peripheral Pin 6 input/output.
2
C™= Open-Drain, I2C specific
DS39964B-page 18Preliminary 2010 Microchip Technology Inc.
Digital I/O.
Timer1 oscillator output.
Timer1 external digital clock input.
Remappable Peripheral Pin 11 input/output.
Digital I/O.
Capture/Compare/PWM input/output.
Timer1 oscillator input.
External USB transceiver NOE output.
Remappable Peripheral Pin 12 input/output.
Digital I/O.
Analog Input 11.
Comparator 2 Input D.
CTMU pulse generator output.
Remappable Peripheral Pin 13 input/output.
Digital Input.
USB bus minus line input/output.
External USB transceiver FM input.
Digital Input.
USB bus plus line input/output.
External USB transceiver VP input.
Digital I/O.
Capture/Compare/PWM input/output.
EUSART1 asynchronous transmit.
EUSART1 synchronous clock (see related
RX1/DT1).
Remappable Peripheral Pin 17 input/output.
Digital I/O.
Asynchronous serial receive data input.
Capture/Compare/PWM input/output.
Synchronous serial data output/input.
SPI data output.
Remappable Peripheral Pin 18 input/output.
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to V
DIG = Digital outputI
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
2: Available only on 44-pin devices (PIC18F46J53, PIC18F47J53, PIC18LF46J53 and PIC18LF47J53).
3: 5.5V tolerant.
44-
QFN
TQFP
(3)
18
3230
3331
Pin
Typ e
I
I
I/O
O
O
I/O
Buffer
Type
ST
CMOS
TTL/DIG
—
—
TTL/DIG
Reset to the device.
Oscillator crystal or external clock input.
Oscillator crystal input or external clock source
input. ST buffer when configured in RC mode;
otherwise CMOS. Main oscillator input
connection.
External clock source input; always associated
with pin function OSC1 (see related OSC1/CLKI
pins).
Digital I/O.
Oscillator crystal or clock output.
Oscillator crystal output. Connects to crystal or
resonator in Crystal Oscillator mode.
Main oscillator feedback output connection
in RC mode, OSC2 pin outputs CLKO, which
has 1/4 the frequency of OSC1 and denotes the
instruction cycle rate.
Digital I/O.
2
C™= Open-Drain, I2C specific
44-
18ISTMaster Clear (Reset) input; this is an active-low
Description
DD)
DS39964B-page 22Preliminary 2010 Microchip Technology Inc.
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to VDD)
DIG = Digital outputI
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
2: Available only on 44-pin devices (PIC18F46J53, PIC18F47J53, PIC18LF46J53 and PIC18LF47J53).
3: 5.5V tolerant.
44-
Pin
Typ e
I/O
I
I
I
I/O
I/O
I/O
O
I
O
I/O
I/O
I/O
I
I
I
I
I
I
I/O
I
I
I
I/O
I
I
I
I
I
I/O
Buffer
Type
TTL/DIG
Analog
Analog
Analog
ST/TTL/
DIG
ST/DIG
TTL/DIG
Analog
Analog
Analog
ST/TTL/
DIG
ST/DIG
TTL/DIG
Analog
Analog
Analog
Analog
Analog
Analog
TTL/DIG
Analog
Analog
Analog
TTL/DIG
Analog
Analog
TTL
Analog
TTL
ST/DIG
Description
PORTA is a bidirectional I/O port.
Digital I/O.
Analog Input 0.
Comparator 1 Input A.
Ultra low-power wake-up input.
Parallel Master Port digital I/O.
Remappable Peripheral Pin 0 input/output.
Digital I/O.
Analog Input 1.
Comparator 2 Input A.
Band Gap Reference Voltage (V
BG) output.
Parallel Master Port digital I/O.
Remappable Peripheral Pin 1 input/output.
Digital I/O.
Analog Input 2.
Comparator 2 Input B.
Comparator 1 Input D.
Comparator 3 Input B.
A/D reference voltage (low) input.
Comparator reference voltage output.
Digital I/O.
Analog Input 3.
Comparator 1 Input B.
A/D reference voltage (high) input.
Digital I/O.
Analog Input 4.
SPI slave select input.
Comparator 1 Input C.
High/Low-Voltage Detect input.
External USB transceiver RCV input.
Remappable Peripheral Pin 2 input/output.
See the OSC2/CLKO/RA6 pin.
See the OSC1/CLKI/RA7 pin.
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
(2)
(2)
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to V
DIG = Digital outputI
2: Available only on 44-pin devices (PIC18F46J53, PIC18F47J53, PIC18LF46J53 and PIC18LF47J53).
3: 5.5V tolerant.
44-
QFN
TQFP
98
109
1110
1211
44-
Pin
Typ e
I/O
I
I
I
I/O
I/O
I
I
O
O
I/O
I/O
I
I
I
O
O
O
I/O
I/O
I
I
I
O
O
I/O
Buffer
Type
TTL/DIG
Analog
Analog
ST
ST/DIG
TTL/DIG
Analog
Analog
DIG
DIG
ST/DIG
TTL/DIG
Analog
Analog
ST
DIG
DIG
DIG
ST/DIG
TTL/DIG
Analog
Analog
ST
DIG
DIG
ST/DIG
Description
PORTB is a bidirectional I/O port. PORTB can be
software programmed for internal weak pull-ups on
all inputs.
Digital I/O.
Analog Input 12.
Comparator 3 Input D.
External Interrupt 0.
Remappable Peripheral Pin 3 input/output.
Digital I/O.
Analog Input 10.
Comparator 3 Input C.
Parallel Master Port byte enable.
Asynchronous serial transmit data output.
Remappable Peripheral Pin 4 input/output.
Digital I/O.
Analog Input 8.
Comparator 2 Input C.
CTMU Edge 1 input.
Parallel Master Port address.
External USB Transceiver D- data output.
Reference output clock.
Remappable Peripheral Pin 5 input/output.
Digital I/O.
Analog Input 9.
Comparator 3 Input A.
CTMU Edge 2 input.
Parallel Master Port address.
External USB Transceiver D+ data output.
Remappable Peripheral Pin 6 input/output.
2
C™= Open-Drain, I2C specific
DD)
DS39964B-page 24Preliminary 2010 Microchip Technology Inc.
ST = Schmitt Trigger input with CMOS levels Analog = Analog input
I= Input O= Output
P= Power OD= Open-Drain (no P diode to V
DIG = Digital outputI
Note 1: RA7 and RA6 will be disabled if OSC1 and OSC2 are used for the clock function.
2: Available only on 44-pin devices (PIC18F46J53, PIC18F47J53, PIC18LF46J53 and PIC18LF47J53).
3: 5.5V tolerant.
44-
QFN
(3)44(3)
44
(3)1(3)
1
TQFP
44-
Pin
Typ e
I/O
I/O
I/O
O
I/O
I/O
I/O
I/O
I/O
I
I/O
O
I/O
Buffer
Type
ST/DIG
ST/DIG
DIG
ST/TTL/
DIG
ST/DIG
ST/DIG
ST/DIG
ST/DIG
ST/TTL/
DIG
ST
ST/DIG
DIG
ST/DIG
Description
Digital I/O.
Capture/Compare/PWM input/output.
Parallel Master Port address.
EUSART1 asynchronous transmit.
EUSART1 synchronous clock (see related
RX1/DT1).
Remappable Peripheral Pin 17 input/output.
EUSART1 asynchronous receive.
Capture/Compare/PWM input/output.
Parallel Master Port address.
EUSART1 synchronous data (see related
TX1/CK1).
Synchronous serial data output/input.
SPI data output.
Remappable Peripheral Pin 18 input/output.