PIC24FJ64GB004 Family
Data Sheet
28/44-Pin, 16-Bit,
Flash Microcontrollers
with USB On-The-Go (OTG)
and nanoWatt XLP Technology
2010 Microchip Technology Inc.
DS39940D
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
EE
L
OQ
, K
EE
L
OQ
logo, MPLAB, PIC, PICmicro, PICSTART,
PIC
32
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.
© 2010, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 978-1-60932-439-1
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.
DS39940D-page 2
2010 Microchip Technology Inc.
PIC24FJ64GB004 FAMILY
28/44-Pin, 16-Bit, Flash Microcontrollers with
USB On-The-Go (OTG) and nanoWatt XLP Technology
Universal Serial Bus Features:
• USB v2.0 On-The-Go (OTG) Compliant
• Dual Role Capable – can act as either Host or Peripheral
• Low-Speed (1.5 Mb/s) and Full-Speed (12 Mb/s) USB
Operation in Host mode
• Full-Speed USB Operation in Device mode
• High-Precision PLL for USB
• 0.25% Accuracy using Internal Oscillator – No External
Crystal Required
• Internal Voltage Boost Assist for USB Bus Voltage
Generation
• Interface for Off-Chip Charge Pump for USB Bus
Voltage Generation
• 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
• Interface for Off-Chip USB Transceiver
• Supports Control, Interrupt, Isochronous and Bulk Transfers
• On-Chip Pull-up and Pull-Down Resistors
Power Management Modes:
• Selectable Power Management modes with nanoWatt
XLP Technology for Extremely Low Power:
- Deep Sleep mode allows near total power-down
(20 nA typical and 500 nA with RTCC or WDT),
along with the ability to wake-up on external triggers
or self-wake on programmable WDT or RTCC alarm
- Extreme low-power DSBOR for Deep Sleep,
LPBOR for all other modes
- Sleep mode shuts down peripherals and core for
substantial power reduction, fast wake-up
- Idle mode shuts down the CPU and peripherals for
significant power reduction, down to 4.5
A
typical
- Doze mode enables CPU clock to run slower than
peripherals
- Alternate Clock modes allow on-the-fly switching to
a lower clock speed for selective power reduction
during Run mode down to 15
A
typical
Special Microcontroller Features:
•
•
•
•
•
Operating Voltage Range of 2.0V to 3.6V
Self-Reprogrammable under Software Control
5.5V Tolerant Input (digital pins only)
High-Current Sink/Source (18 mA/18 mA) on All I/O Pins
Flash Program Memory:
- 10,000 erase/write cycle endurance (minimum)
- 20-year data retention minimum
- Selectable write protection boundary
Fail-Safe Clock Monitor Operation:
- Detects clock failure and switches to on-chip
FRC oscillator
On-Chip 2.5V Regulator
Power-on Reset (POR), Power-up Timer (PWRT)
and Oscillator Start-up Timer (OST)
Two Flexible Watchdog Timers (WDT) for Reliable
Operation:
- Standard programmable WDT for normal operation
- Extreme low-power WDT with programmable
period of 2 ms to 26 days for Deep Sleep mode
In-Circuit Serial Programming™ (ICSP™) and
In-Circuit Debug (ICD) via 2 Pins
JTAG Boundary Scan Support
High-Performance CPU:
• Modified Harvard Architecture
• Up to 16 MIPS Operation @ 32 MHz
• 8 MHz Internal Oscillator with 0.25% Typical Accuracy:
- 96 MHz PLL
- Multiple divide options
• 17-Bit x 17-Bit Single-Cycle Hardware
Fractional/integer Multiplier
• 32-Bit by 16-Bit Hardware Divider
• 16 x 16-Bit Working Register Array
• C Compiler Optimized Instruction Set Architecture:
- 76 base instructions
- Flexible addressing modes
• Linear Program Memory Addressing up to 12 Mbytes
• Linear Data Memory Addressing up to 64 Kbytes
• Two Address Generation Units for Separate Read and
Write Addressing of Data Memory
•
•
•
•
•
•
Program Memory
(Bytes)
Remappable Peripherals
Compare/PWM
Output
Comparators
10-Bit A/D
(ch)
Remappable
Pins
UART w/
IrDA
®
Capture
Input
USB OTG
Y
Y
Y
Y
PMP/PSP
SRAM
(Bytes)
CTMU
Y
Y
Y
Y
RTCC
Y
Y
Y
Y
I
2
C™
2
2
2
2
Timers
16-Bit
32GB002
64GB002
32GB004
64GB004
28
28
44
44
32K
64K
32K
64K
8K
8K
8K
8K
15
15
25
25
5
5
5
5
5
5
5
5
5
5
5
5
2
2
2
2
SPI
2
2
2
2
PIC24FJ
Device
Pins
9
9
13
13
3
3
3
3
Y
Y
Y
Y
2010 Microchip Technology Inc.
DS39940D-page 3
PIC24FJ64GB004 FAMILY
Analog Features:
• 10-Bit, up to 13-Channel Analog-to-Digital (A/D)
Converter:
- 500 ksps conversion rate
- Conversion available during Sleep and Idle
• Three Analog Comparators with Programmable
Input/Output Configuration
• Charge Time Measurement Unit (CTMU):
- Supports capacitive touch sensing for touch
screens and capacitive switches
- Provides high-resolution time measurement and
simple temperature sensing
• Hardware Real-Time Clock/Calendar (RTCC):
- Provides clock, calendar and alarm functions
- Functions even in Deep Sleep mode
• Two 3-Wire/4-Wire SPI modules (support 4 Frame
modes) with 8-Level FIFO Buffer
• Two I
2
C™ modules support Multi-Master/Slave mode
and 7-Bit/10-Bit Addressing
• Two UART modules:
- Supports RS-485, RS-232 and LIN/J2602
- On-chip hardware encoder/decoder for IrDA
®
- Auto-wake-up on Start bit
- Auto-Baud Detect (ABD)
- 4-level deep FIFO buffer
• Five 16-Bit Timers/Counters with Programmable
Prescaler
• Five 16-Bit Capture Inputs, each with a Dedicated Time
Base
• Five 16-Bit Compare/PWM Outputs, each with a
Dedicated Time Base
• Programmable, 32-Bit Cyclic Redundancy Check (CRC)
Generator
• Configurable Open-Drain Outputs on Digital I/O Pins
• Up to 3 External Interrupt Sources
Peripheral Features:
• Peripheral Pin Select:
- Allows independent I/O mapping of many peripherals
- Up to 25 available pins (44-pin devices)
- Continuous hardware integrity checking and safety
interlocks prevent unintentional configuration changes
• 8-Bit Parallel Master Port (PMP/PSP):
- Up to 16-bit multiplexed addressing, with up to
11 dedicated address pins on 44-pin devices
- Programmable polarity on control lines
- Supports legacy Parallel Slave Port
Pin Diagrams
28-Pin SPDIP, SOIC, SSOP
(1)
MCLR
PGED3/AN0/C3INC/V
REF
+/ASDA1
(2)
/RP5/PMD7/CTED1/VBUSVLD/VCMPST1/CN2/RA0
PGEC3/AN1/C3IND/V
REF
-/ASCL1
(2)
/RP6/PMD6/CTED2/SESSVLD/VCMPST2/CN3/RA1
PGED1/AN2/C2INB/DPH/RP0/PMD0/CN4/RB0
PGEC1/AN3/C2INA/DMH/RP1/PMD1/CN5/RB1
AN4/C1INB/DPLN/SDA2/RP2/PMD2/CN6/RB2
AN5/C1INA/DMLN/RTCC/SCL2/RP3/PMWR/CN7/RB3
V
SS
OSCI/CLKI/C1IND/PMCS1/CN30/RA2
OSCO/CLKO/PMA0/CN29/RA3
SOSCI/C2IND/RP4/PMBE/CN1/RB4
SOSCO/SCLKI/T1CK/C2INC/PMA1/CN0/RA4
V
DD
TMS/USBID/CN27/RB5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
28
27
26
25
24
23
22
21
20
19
18
17
16
15
V
DD
V
SS
AN9/C3INA/VBUSCHG/RP15/VBUSST/CN11/RB15
AN10/C3INB/CV
REF
/V
CPCON
/VBUSON/RP14/CN12/RB14
AN11/C1INC/RP13/PMRD/REFO/SESSEND/CN13/RB13
V
USB
PGEC2/D-/VMIO/RP11/CN15/RB11
PGED2/D+/VPIO/RP10/CN16/RB10
V
CAP
/V
DDCORE
DISVREG
TDO/SDA1/RP9/PMD3/RCV/CN21/RB9
TCK/USBOEN/SCL1/RP8/PMD4/CN22/RB8
TDI/RP7/PMD5/INT0/CN23/RB7
V
BUS
PIC24FJXXGB002
Legend:
Note 1:
2:
RPn
represents remappable peripheral pins.
Gray shading indicates 5.5V tolerant input pins.
Alternative multiplexing for SDA1 and SCL1 when the I2C1SEL bit is set.
DS39940D-page 4
2010 Microchip Technology Inc.
PIC24FJ64GB004 FAMILY
Pin Diagrams
28-Pin QFN
(1,3)
PGEC3/AN1/C3IND/V
REF
-/ASCL1
(2)
/RP6/PMD6/CTED2/SESSVLD/V
CMPST
2/CN3/RA1
PGED3/AN0/C3INC/V
REF
+/ASDA1
(2)
/RP5/PMD7/CTED1/VBUSVLD/VCMPST1/CN2/RA0
MCLR
28 27 26 25 24 23 22
PGED1/AN2/C2INB/DPH/RP0/PMD0/CN4/RB0
PGEC1/AN3/C2INA/DMH/RP1/PMD1/CN5/RB1
AN4/C1INB/DPLN/SDA2/RP2/PMD2/CN6/RB2
AN5/C1INA/DMLN/RTCC/SCL2/RP3/PMWR/CN7/RB3
V
SS
OSCI/CLKI/C1IND/PMCS1/CN30/RA2
OSCO/CLKO/PMA0/CN29/RA3
V
DD
V
SS
AN9/C3INA/VBUSCHG/RP15/VBUSST/CN11/RB15
AN10/C3INB/C
VREF
/V
CPCON
/VBUSON/RP14/CN12/RB14
1
21
2
20
3
19
4
PIC24FJXXGB002
18
5
17
6
16
7
15
8 9 10 11 12 13 14
SOSCO/SCLKI/T1CK/C2INC/PMA1/CN0/RA4
V
DD
TMS/USBID//CN27/RB5
V
BUS
SOSCI/C2IND/RP4/PMBE/CN1/RB4
TDI/RP7/PMD5/INT0/CN23/RB7
TCK/USBOEN/SCL1/RP8/PMD4/CN22/RB8
AN11/C1INC/RP13/PMRD/REFO/SESSEND/CN13/RB13
V
USB
PGEC2/D-/VMIO/RP11/CN15/RB11
PGED2/D+/VPIO/RP10/CN16/RB10
V
CAP
/V
DDCORE
DISVREG
TDO/SDA1/RP9/PMD3/RCV/CN21/RB9
Legend:
Note 1:
2:
3:
RPn
represents remappable peripheral pins.
Gray shading indicates 5.5V tolerant input pins.
Alternative multiplexing for SDA1 and SCL1 when the I2C1SEL bit is set.
The back pad on QFN devices should be connected to V
SS
.
2010 Microchip Technology Inc.
DS39940D-page 5