dsPIC30F Data Sheet
Motor Control and
Power Conversion Family
High Performance
Digital Signal Controllers
2003 Microchip Technology Inc.
Advance Information
DS70082D
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 intended through suggestion only
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
No representation or warranty is given and no liability is
assumed by Microchip Technology Incorporated with respect
to the accuracy or use of such information, or infringement of
patents or other intellectual property rights arising from such
use or otherwise. Use of Microchip’s products as critical
components in life support systems is not authorized except
with express written approval by Microchip. No licenses are
conveyed, implicitly or otherwise, under any intellectual
property rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EE
L
OQ
, MPLAB, PIC, PICmicro, PICSTART,
PRO MATE and PowerSmart are registered trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
AmpLab, FilterLab, microID, MXDEV, MXLAB, PICMASTER,
SEEVAL, SmartShunt and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A.
Application Maestro, dsPICDEM, dsPICDEM.net,
dsPICworks, ECAN, ECONOMONITOR, FanSense,
FlexROM, fuzzyLAB, In-Circuit Serial Programming, ICSP,
ICEPIC, microPort, Migratable Memory, MPASM, MPLIB,
MPLINK, MPSIM, PICkit, PICDEM, PICDEM.net, PICtail,
PowerCal, PowerInfo, PowerMate, PowerTool, rfLAB, rfPIC,
Select Mode, SmartSensor, SmartTel and Total Endurance
are trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
Serialized Quick Turn Programming (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.
© 2003, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received ISO/TS-16949:2002 quality system certification for
its worldwide headquarters, design and wafer fabrication facilities in
Chandler and Tempe, Arizona and Mountain View, California in October
2003 . The Company’s quality system processes and procedures are
for its PICmicro
®
8-bit MCUs, K
EE
L
OQ
®
code hopping devices, Serial
EEPROMs, microperipherals, non-volatile memory and analog
products. In addition, Microchip’s quality system for the design and
manufacture of development systems is ISO 9001:2000 certified.
DS70082D-page ii
Advance Information
2003 Microchip Technology Inc.
dsPIC30F
dsPIC30F Enhanced Flash 16-bit Digital Signal Controllers
Motor Control and Power Conversion Family
High Performance Modified RISC CPU:
•
•
•
•
•
•
•
•
•
•
•
•
Modified Harvard architecture
C compiler optimized instruction set architecture
84 base instructions
24-bit wide instructions, 16-bit wide data path
Linear program memory addressing up to 4M
Instruction Words
Linear data memory addressing up to 64 Kbytes
Up to 144 Kbytes on-chip Flash program space
Up to 48K Instruction Words
Up to 8 Kbytes of on-chip data RAM
Up to 4 Kbytes of non-volatile data EEPROM
16 x 16-bit working register array
Three Address Generation Units that enable:
- Dual data fetch
- Accumulator write back for DSP operations
Flexible Addressing modes supporting:
- Indirect, Modulo and Bit-Reversed modes
Two, 40-bit wide accumulators with optional
saturation logic
17-bit x 17-bit single cycle hardware fractional/
integer multiplier
Single cycle Multiply-Accumulate (MAC) operation
40-stage Barrel Shifter
Up to 30 MIPs operation:
- DC to 40 MHz external clock input
- 4 MHz-10 MHz oscillator input with
PLL active (4x, 8x, 16x)
Up to 42 interrupt sources
- 8 user selectable priority levels
Vector table with up to 62 vectors
- 54 interrupt vectors
- 8 processor exceptions and software traps
Peripheral Features (Continued):
• 16-bit Compare/PWM output functions
- Dual Compare mode available
• 3-wire SPI
TM
modules (supports 4 Frame modes)
• I
2
C
TM
module supports Multi-Master/Slave mode
and 7-bit/10-bit addressing
• Addressable UART modules supporting:
- Interrupt on address bit
- Wake-up on Start bit
- 4 characters deep TX and RX FIFO buffers
• CAN bus modules
Motor Control PWM Module Features:
• Up to 8 PWM output channels
- Complementary or Independent Output
modes
- Edge and Center Aligned modes
• 4 duty cycle generators
• Dedicated time base with 4 modes
• Programmable output polarity
• Dead-time control for Complementary mode
• Manual output control
• Trigger for A/D conversions
•
•
•
•
•
•
Quadrature Encoder Interface Module
Features:
•
•
•
•
•
•
•
Phase A, Phase B and Index Pulse input
16-bit up/down position counter
Count direction status
Position Measurement (x2 and x4) mode
Programmable digital noise filters on inputs
Alternate 16-bit Timer/Counter mode
Interrupt on position counter rollover/underflow
•
•
Peripheral Features:
• High current sink/source I/O pins: 25 mA/25 mA
• Up to 5 external interrupt sources
• Timer module with programmable prescaler:
- Up to five 16-bit timers/counters; optionally
pair up 16-bit timers into 32-bit timer modules
• 16-bit Capture input functions
2003 Microchip Technology Inc.
Advance Information
DS70082D-page 1
dsPIC30F
Input Capture Module Features:
• Captures 16-bit timer value
- Capture every 1st, 4th or 16th rising edge
- Capture every falling edge
- Capture every rising and falling edge
• Resolution of 33 ns at 30 MIPs
• Timer2 or Timer3 time base selection
• Input Capture during Idle
• Interrupt on input capture event
Special Microcontroller Features:
• Enhanced Flash program memory:
- 10,000 erase/write cycle (min.) for
industrial temperature range, 100K (typical)
• Data EEPROM memory:
- 100,000 erase/write cycle (min.) for
industrial temperature range, 1M (typical)
• Self-reprogrammable under software control
• Power-on Reset (POR), Power-up Timer (PWRT)
and Oscillator Start-up Timer (OST)
• Flexible Watchdog Timer (WDT) with on-chip low
power RC oscillator for reliable operation
• Fail-Safe clock monitor operation
• Detects clock failure and switches to on-chip low
power RC oscillator
• Programmable code protection
• In-Circuit Serial Programming™ (ICSP™) via 3
pins and power/ground
• Selectable Power Management modes
- Sleep, Idle and Alternate Clock modes
Analog Features:
• 10-bit Analog-to-Digital Converter (A/D) with:
- 500 Ksps (for 10-bit A/D) conversion rate
- Up to 16 input channels
- Conversion available during Sleep and Idle
• Programmable Low Voltage Detection (PLVD)
• Programmable Brown-out Detection and Reset
generation
CMOS Technology:
•
•
•
•
Low power, high speed Flash technology
Wide operating voltage range (2.5V to 5.5V)
Industrial and Extended temperature ranges
Low power consumption
dsPIC30F Motor Control and Power Conversion Family
Device
Pins
Program
Output
Motor
SRAM EEPROM Timer Input
A/D 10-bit Quad
Mem. Bytes/
Comp/Std Control
Bytes
Bytes
16-bit Cap
500 Ksps Enc
Instructions
PWM
PWM
12K/4K
24K/8K
48K/16K
24K/8K
48K/16K
66K/22K
144K/48K
512
1024
2048
1024
2048
2048
8192
1024
1024
1024
1024
1024
1024
4096
3
5
5
5
5
5
5
4
4
4
4
4
4
8
2
2
2
4
4
4
8
6 ch
6 ch
6 ch
6 ch
6 ch
8 ch
8 ch
6 ch
6 ch
6 ch
9 ch
9 ch
16 ch
16 ch
Yes
Yes
Yes
Yes
Yes
Yes
Yes
UART
SPI
TM
I
2
C
TM
dsPIC30F2010
dsPIC30F3010
dsPIC30F4012
dsPIC30F3011
dsPIC30F4011
dsPIC30F5015
dsPIC30F6010
28
28
28
40/44
40/44
64
80
1
1
1
2
2
1
2
1
1
1
1
1
2
2
1
1
1
1
1
1
1
DS70082D-page 2
Advance Information
2003 Microchip Technology Inc.
CAN
-
-
1
-
1
1
2
dsPIC30F
Pin Diagrams
28-Pin SDIP and SOIC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
MCLR
EMUD3/AN0/V
REF
+/CN2/RB0
EMUC3/AN1/V
REF
-/CN3/RB1
AN2/SS1/CN4/RB2
AN3/INDX/CN5/RB3
AN4/QEA/IC7/CN6/RB4
AN5/QEB/IC8/CN7/RB5
V
SS
OSC1/CLKI
OSC2/CLKO/RC15
EMUD1/SOSCI/T2CK/U1ATX/CN1//RC13
EMUC1/SOSCO/T1CK/U1ARX/CN0/RC14
V
DD
EMUD2/OC2/IC2/INT2/RD1
28
27
26
25
24
23
22
21
20
19
18
17
16
15
AV
DD
AV
SS
PWM1L/RE0
PWM1H/RE1
PWM2L/RE2
PWM2H/RE3
PWM3L/RE4
PWM3H/RE5
V
DD
V
SS
PGC/EMUC/U1RX/SDI1/SDA/RF2
PGD/EMUD/U1TX/SDO1/SCL/RF3
FLTA/INT0/SCK1/OCFA/RE8
EMUC2/OC1/IC1/INT1/RD0
dsPIC30F2010
dsPIC30F3010
Note:
Pinout subject to change.
28-Pin SDIP and SOIC
1
2
3
4
5
6
7
8
9
10
11
12
13
14
MCLR
EMUD3/AN0/V
REF
+/CN2/RB0
EMUC3/AN1/V
REF
-/CN3/RB1
AN2/SS1/CN4/RB2
AN3/INDX/CN5/RB3
AN4/QEA/IC7/CN6/RB4
AN5/QEB/IC8/CN7/RB5
V
SS
OSC1/CLKI
OSC2/CLKO/RC15
EMUD1/SOSCI/T2CK/U1ATX/CN1//RC13
EMUC1/SOSCO/T1CK/U1ARX/CN0/RC14
V
DD
EMUD2/OC2/IC2/INT2/RD1
28
27
26
25
24
23
22
21
20
19
18
17
16
15
AV
DD
AV
SS
PWM1L/RE0
PWM1H/RE1
PWM2L/RE2
PWM2H/RE3
PWM3L/RE4
PWM3H/RE5
V
DD
V
SS
PGC/EMUC/U1RX/SDI1/SDA/C1RX/RF2
PGD/EMUD/U1TX/SDO1/SCL/C1TX/RF3
FLTA/INT0/SCK1/OCFA/RE8
EMUC2/OC1/IC1/INT1/RD0
dsPIC30F4012
Note:
Pinout subject to change.
2003 Microchip Technology Inc.
Advance Information
DS70082D-page 3