dsPIC33FJ32MC302/304,
dsPIC33FJ64MCX02/X04 and
dsPIC33FJ128MCX02/X04
16-bit Digital Signal Controllers (up to 128 KB Flash and 16K
SRAM) with Motor Control PWM and Advanced Analog
Operating Conditions
• 3.0V to 3.6V, -40ºC to +150ºC, DC to 20 MIPS
• 3.0V to 3.6V, -40ºC to +125ºC, DC to 40 MIPS
System Peripherals
•
•
•
•
•
•
•
Cyclic Redundancy Check (CRC) module
16-bit dual channel 100 ksps Audio DAC
Up to five 16-bit and up to two 32-bit Timers/Counters
Up to four Input Capture (IC) modules
Up to four Output Compare (OC) modules
Up to two Quadrature Encoder Interface (QEI) modules
Real-Time Clock and Calendar (RTCC) module
Clock Management
•
•
•
•
•
•
2% internal oscillator
Programmable PLL and oscillator clock sources
Fail-Safe Clock Monitor (FSCM)
Independent Watchdog Timer
Low-power management modes
Fast wake-up and start-up
Communication Interfaces
• Parallel Master Port (PMP)
• Two UART modules (10 Mbps)
- Supports LIN 2.0 protocols
- RS-232, RS-485, and IrDA
®
support
• Two 4-wire SPI modules (15 Mbps)
• Enhanced CAN (ECAN) module (1 Mbaud) with 2.0B
support
• I
2
C module (100K, 400K and 1Mbaud) with SMbus
support
Core Performance
•
•
•
•
Up to 40 MIPS 16-bit dsPIC33F CPU
Two 40 bit wide accumulators
Single-cycle (MAC/MPY) with dual data fetch
Single-cycle MUL plus hardware divide
Motor Control PWM
•
•
•
•
Up to four PWM generators with eight outputs
Dead Time for rising and falling edges
25 ns PWM resolution
PWM support for Motor Control: BLDC, PMSM, ACIM,
and SRM
• Programmable Fault inputs
• Flexible trigger for ADC conversions and configurations
Direct Memory Access (DMA)
• 8-channel hardware DMA with no CPU stalls or
overhead
• UART, SPI, ADC, ECAN, IC, OC, INT0
Qualification and Class B Support
• AEC-Q100 REVG (Grade 0 -40ºC to +150ºC)
• Class B Safety Library, IEC 60730, VDE certified
Advanced Analog Features
• 10/12-bit ADC with 1.1Msps/500 ksps conversion rate:
- Up to nine ADC input channels and four S&H
- Flexible/Independent trigger sources
• 150 ns Comparators:
- Up to two Analog Comparator modules
- 4-bit DAC with two ranges for Analog Comparators
Debugger Development Support
• In-circuit and in-application programming
• Two program breakpoints
• Trace and run-time watch
Input/Output
•
•
•
•
•
Software remappable pin functions
5V-tolerant pins
Selectable open drain and internal pull-ups
Up to 5 mA overvoltage clamp current/pin
Multiple external interrupts
Packages
Type
SPDIP (300 ml)
SOIC
QFN-S
28
21
0.65
6x6x0.9
QFN
44
35
0.65
8x8x0.9
TQFP
44
35
0.80
10x10x1
Pin Count
28
28
I/O Pins
21
21
Contact Lead/Pitch
.100”
1.27
Dimensions
.285x.135x1.365”
7.50x2.05x17.9
Note:
All dimensions are in millimeters (mm) unless specified.
©
2007-2012 Microchip Technology Inc.
DS70291G-page 1
dsPIC33FJ32MC302/304, dsPIC33FJ64MCX02/X04 AND dsPIC33FJ128MCX02/X04
dsPIC33FJ32MC302/304,
dsPIC33FJ64MCX02/X04 AND
dsPIC33FJ128MCX02/X04 PRODUCT
FAMILIES
The device names, pin counts, memory sizes, and
peripheral availability of each device are listed in
Table 1.
The pages that follow show their pinout
diagrams.
TABLE 1:
dsPIC33FJ32MC302/304, dsPIC33FJ64MCX02/X04 AND dsPIC33FJ128MCX02/X04
CONTROLLER FAMILIES
Analog Comparator
(2 Channels/Voltage Regulator)
Remappable Peripheral
Program Flash Memory
(Kbyte)
External Interrupts
(4)
8-bit Parallel Master
Port (Address Lines)
Quadrature Encoder
Interface
Motor Control PWM
(Channels)
(3)
10-bit/12-bit ADC
(Channels)
Remappable Pins
Output Compare
Standard PWM
16-bit Timer
(2)
6-pin 16-bit DAC
Input Capture
CRC Generator
RAM (Kbyte)
(1)
dsPIC33FJ128MC804
dsPIC33FJ128MC802
44
28
128
128
16
16
26
16
5
5
4
4
4
4
6, 2
6, 2
2
2
2
2
SPI
Device
2
2
ECAN™
1
1
3
3
1
1
1
1
1
1
9
6
1
0
1/1
1/0
11
2
35
QFN
TQFP
21 SPDIP
SOIC
QFN-S
35
QFN
TQFP
dsPIC33FJ128MC204
dsPIC33FJ128MC202
44
28
128
128
8
8
26
16
5
5
4
4
4
4
6, 2
6, 2
2
2
2
2
2
2
0
0
3
3
1
1
1
1
1
1
9
6
0
0
1/1
1/0
11
2
21 SPDIP
SOIC
QFN-S
35
QFN
TQFP
dsPIC33FJ64MC804
dsPIC33FJ64MC802
44
28
64
64
16
16
26
16
5
5
4
4
4
4
6, 2
6, 2
2
2
2
2
2
2
1
1
3
3
1
1
1
1
1
1
9
6
1
0
1/1
1/0
11
2
21 SPDIP
SOIC
QFN-S
35
QFN
TQFP
dsPIC33FJ64MC204
dsPIC33FJ64MC202
44
28
64
64
8
8
26
16
5
5
4
4
4
4
6, 2
6, 2
2
2
2
2
2
2
0
0
3
3
1
1
1
1
1
1
9
6
0
0
1/1
1/0
11
2
21 SPDIP
SOIC
QFN-S
35
QFN
TQFP
dsPIC33FJ32MC304
dsPIC33FJ32MC302
44
28
32
32
4
4
26
16
5
5
4
4
4
4
6, 2
6, 2
2
2
2
2
2
2
0
0
3
3
1
1
1
1
1
1
9
6
0
0
1/1
1/0
11
2
Note
1:
2:
3:
4:
21 SPDIP
SOIC
QFN-S
RAM size is inclusive of 2 Kbytes of DMA RAM for all devices except dsPIC33FJ32MC302/304, which include 1 Kbyte of DMA RAM.
Only four out of five timers are remappable.
Only PWM fault pins are remappable.
Only two out of three interrupts are remappable.
DS70291G-page 2
©
2007-2012 Microchip Technology Inc.
Packages
UART
I/O Pins
RTCC
I
2
C™
Pins
dsPIC33FJ32MC302/304, dsPIC33FJ64MCX02/X04 AND dsPIC33FJ128MCX02/X04
Pin Diagrams
28-Pin SPDIP, SOIC
= Pins are up to 5V tolerant
MCLR
AN0/V
REF
+/CN2/RA0
AN1/V
REF
-/CN3/RA1
PGED1/AN2/C2IN-/RP0
(1)
/CN4/RB0
PGEC1/ AN3/C2IN+/RP1
(1)
/CN5/RB1
AN4/C1IN-/RP2
(1)
/CN6/RB2
AN5/C1IN+/RP3
(1)
/CN7/RB3
V
SS
OSC1/CLKI/CN30/RA2
OSC2/CLKO/CN29/PMA0/RA3
SOSCI/RP4
(1)
/CN1/PMBE/RB4
SOSCO/T1CK/CN0/PMA1/RA4
V
DD
PGED3/ASDA1/RP5
(1)
/CN27/PMD7/RB5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
dsPIC33FJ32MC302
dsPIC33FJ64MC202
dsPIC33FJ64MC802
dsPIC33FJ128MC202
dsPIC33FJ128MC802
28
27
26
25
24
23
22
21
20
19
18
17
16
15
AV
DD
AV
SS
PWM1L1/RP15
(1)
/CN11/PMCS1/RB15
PWM1H1/RTCC/RP14
(1)
/CN12/PMWR/RB14
PWM1L2/RP13
(1)
/CN13/PMRD/RB13
PWM1H2/RP12
(1)
/CN14/PMD0/RB12
PGEC2/TMS/PWM1L3/RP11
(1)
/CN15/PMD1/RB11
PGED2/TDI/PWM1H3/RP10
(1)
/CN16/PMD2/RB10
V
CAP
V
SS
TDO/PWM2L1/SDA1/RP9
(1)
/CN21/PMD3/RB9
TCK/PWM2H1/SCL1/RP8
(1)
/CN22/PMD4/RB8
INT0/RP7
(1)
/CN23/PMD5/RB7
PGEC3/ASCL1/RP6
(1)
/CN24/PMD6/RB6
PGED1/AN2/C2IN-/RP0
(1)
/CN4/RB0
PGEC1/AN3/C2IN+/RP1
(1)
/CN5/RB1
AN4/C1IN-/RP2 /CN6/RB2
AN5/C1IN+/RP3
(1)
/CN7/RB3
V
SS
OSC1/CLKI/CN30/RA2
OSC2/CLKO/CN29/PMA0/RA3
(1)
28
27
26
25
24
23
22
AN1/V
REF
-/CN3/RA1
AN0/V
REF
+/CN2/RA0
MCLR
AV
DD
AV
SS
PWM1L1/RP15
(1)
/CN11/PMCS1/RB15
PWM1H1/RTCC/RP14
(1)
/CN12/PMWR/RB14
28-Pin QFN-S
(2)
= Pins are up to 5V tolerant
1
2
dsPIC33FJ32MC302
3
dsPIC33FJ64MC202
4
dsPIC33FJ64MC802
5
dsPIC33FJ128MC202
6
dsPIC33FJ128MC802
7
8
9
10
11
12
13
14
21
20
19
18
17
16
15
PWM1L2/RP13
(1)
/CN13/PMRD/RB13
PWM1H2/RP12
(1)
/CN14/PMD0/RB12
PGEC2/TMS/PWM1L3/RP11
(1)
/CN15/PMD1/RB11
PGED2/TDI/PWM1H3/RP10
(1)
/CN16/PMD2/RB10
V
CAP
V
SS
TDO/PWM2L1/SDA1/RP9
(1)
/CN21/PMD3/RB9
Note
1:
2:
The RPx pins can be used by any remappable peripheral. See
Table 1
in this section for the list of available peripherals.
The metal plane at the bottom of the device is not connected to any pins and is recommended to be connected to V
SS
externally.
©
2007-2012 Microchip Technology Inc.
SOSCI/RP4
(1)
/CN1/PMBE/RB4
SOSCO/T1CK/CN0/PMA1/RA4
V
DD
PGED3/ASDA1/RP5
(1)
/CN27/PMD7/RB5
PGEC3/ASCL1/RP6
(1)
/CN24/PMD6/RB6
INT0/RP7
(1)
/CN23/PMD5/RB7
TCK/PWM2H1/SCL1/RP8
(1)
/CN22/PMD4/RB8
DS70291G-page 3
dsPIC33FJ32MC302/304, dsPIC33FJ64MCX02/X04 AND dsPIC33FJ128MCX02/X04
Pin Diagrams (Continued)
PGEC1/AN3/C2IN+/RP1
(1)
/CN5/RB1
PGED1/AN2/C2IN-/RP0
(1)
/CN4/RB0
AN1/V
REF
-/CN3/RA1
AN0/V
REF
+/CN2/RA0
MCLR
AV
DD
AV
SS
PWM1L1/DAC1LN/RP15
(1)
/CN11/PMCS1/RB15
PWM1H1/DAC1LP/RTCC/RP14
(1)
/CN12/PMWR/RB14
TCK/PMA7/RA7
TMS/PMA10/RA10
44-Pin QFN
(2)
= Pins are up to 5V tolerant
AN5/C1IN+/RP3 /CN7/RB3
AN6/DAC1RM/RP16
(1)
/CN8/RC0
AN7/DAC1LM/RP17
(1)
/CN9/RC1
AN8/CV
REF
/RP18 /PMA2/CN10/RC2
V
DD
V
SS
OSC1/CLKI/CN30/RA2
OSC2/CLKO/CN29/RA3
TDO/PMA8/RA8
SOSCI/RP4
(1)
/CN1/RB4
(1)
(1)
23
24
25
26
27
28
29
30
31
32
22
21
20
19
18
17
16
15
14
13
12
AN4/C1IN-/RP2
(1)
/CN6/RB2
11
10
9
8
PWM1L2/DAC1RN/RP13
(1)
/CN13/PMRD/RB13
PWM1H2/DAC1RP/RP12
(1)
/CN14/PMD0/RB12
PGEC2/PWM1L3/RP11
(1)
/CN15/PMD1/RB11
PGED2/PWM1H3/RP10
(1)
/CN16/PMD2/RB10
V
CAP
V
SS
RP25
(1)
/CN19/PMA6/RC9
RP24
(1)
/CN20/PMA5/RC8
PWM2L1/RP23
(1)
/CN17/PMA0/RC7
PWM2H1/RP22
(1)
/CN18/PMA1/RC6
SDA1/RP9
(1)
/CN21/PMD3/RB9
dsPIC33FJ64MC804
dsPIC33FJ128MC804
7
6
5
4
3
2
Note
1:
2:
The RPx pins can be used by any remappable peripheral. See
Table 1
in this section for the list of available peripherals.
The metal plane at the bottom of the device is not connected to any pins and is recommended to be connected to V
SS
externally.
SOSCO/T1CK/CN0/RA4
TDI/PMA9/RA9
RP19
(1)
/CN28/PMBE/RC3
RP20
(1)
/CN25/PMA4/RC4
RP21
(1)
/CN26/PMA3/RC5
V
SS
V
DD
PGED3/ASDA1/RP5
(1)
/CN27/PMD7/RB5
PGEC3/ASCL1/RP6
(1)
/CN24/PMD6/RB6
INT0/RP7
(1)
/CN23/PMD5/RB7
SCL1/RP8
(1)
/CN22/PMD4/RB8
34
35
36
37
38
39
40
41
42
43
44
33
1
DS70291G-page 4
©
2007-2012 Microchip Technology Inc.
dsPIC33FJ32MC302/304, dsPIC33FJ64MCX02/X04 AND dsPIC33FJ128MCX02/X04
Pin Diagrams (Continued)
44-Pin QFN
(2)
PGEC1/AN3/C2IN+/RP1
(1)
/CN5/RB1
PGED1/AN2/C2IN-/RP0
(1)
/CN4/RB0
AN1/V
REF
-/CN3/RA1
AN0/V
REF
+/CN2/RA0
MCLR
AV
DD
AV
SS
PWM1L1/RP15
(1)
/CN11/PMCS1/RB15
PWM1H1/RTCC/RP14
(1)
/CN12/PMWR/RB14
TCK/PMA7/RA7
TMS/PMA10/RA10
= Pins are up to 5V tolerant
AN5/C1IN+/RP3
(1)
/CN7/RB3
AN6/RP16 /CN8/RC0
AN7/RP17
(1)
/CN9/RC1
AN8/CV
REF
/RP18
(1)
/PMA2/CN10/RC2
V
DD
V
SS
OSC1/CLKI/CN30/RA2
OSC2/CLKO/CN29/RA3
TDO/PMA8/RA8
SOSCI/RP4
(1)
/CN1/RB4
(1)
23
24
25
26
27
28
29
30
31
32
22
21
20
19
18
17
16
15
14
13
12
AN4/C1IN-/RP2
(1)
/CN6/RB2
11
10
9
8
7
6
5
4
3
2
PWM1L2/RP13
(1)
/CN13/PMRD/RB13
PWM1H2/RP12
(1)
/CN14/PMD0/RB12
PGEC2/PWM1L3/RP11
(1)
/CN15/PMD1/RB11
PGED2/PWM1H3/RP10
(1)
/CN16/PMD2/RB10
V
CAP
V
SS
RP25
(1)
/CN19/PMA6/RC9
RP24
(1)
/CN20/PMA5/RC8
PWM2L1/RP23
(1)
/CN17/PMA0/RC7
PWM2H1/RP2
(1)
2/CN18/PMA1/RC6
SDA1/RP9
(1)
/CN21/PMD3/RB9
dsPIC33FJ32MC304
dsPIC33FJ64MC204
dsPIC33FJ128MC204
Note
1:
2:
The RPx pins can be used by any remappable peripheral. See
Table 1
in this section for the list of available peripherals.
The metal plane at the bottom of the device is not connected to any pins and is recommended to be connected to V
SS
externally.
©
2007-2012 Microchip Technology Inc.
SOSCO/T1CK/CN0/RA4
TDI/PMA9/RA9
RP19
(1)
/CN28/PMBE/RC3
RP20
(1)
/CN25/PMA4/RC4
RP21
(1)
/CN26/PMA3/RC5
V
SS
V
DD
PGED3/ASDA1/RP5
(1)
/CN27/PMD7/RB5
PGEC3/ASCL1/RP6
(1)
/CN24/PMD6/RB6
INT0/RP7
(1)
/CN23/PMD5/RB7
SCL1/RP8
(1)
/CN22/PMD4/RB8
34
35
36
37
38
39
40
41
42
43
44
33
1
DS70291G-page 5