dsPIC30F
Family Overview
dsPIC
®
High-Performance 16-bit
Digital Signal Controller
©
2005 Microchip Technology Inc.
DS70043F
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 WAR-
RANTIES 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’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 Microchip intellectual property
rights.
Trademarks
The Microchip name and logo, the Microchip logo, Accuron,
dsPIC, K
EE
L
OQ
, microID, MPLAB, PIC, PICmicro, PICSTART,
PRO MATE, PowerSmart, rfPIC, and SmartShunt are
registered trademarks of Microchip Technology Incorporated
in the U.S.A. and other countries.
AmpLab, FilterLab, Migratable Memory, MXDEV, MXLAB,
PICMASTER, 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, dsPICDEM,
dsPICDEM.net, dsPICworks, ECAN, ECONOMONITOR,
FanSense, FlexROM, fuzzyLAB, In-Circuit Serial
Programming, ICSP, ICEPIC, Linear Active Thermistor,
MPASM, MPLIB, MPLINK, MPSIM, PICkit, PICDEM,
PICDEM.net, PICLAB, PICtail, PowerCal, PowerInfo,
PowerMate, PowerTool, rfLAB, rfPICDEM, Select Mode,
Smart Serial, SmartTel, Total Endurance and WiperLock 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.
© 2005, 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, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
DS70043F-page ii
©
2005 Microchip Technology Inc.
dsPIC30F
dsPIC
®
High-Performance 16-bit
Digital Signal Controller Family Overview
Operating Range:
• DC – 30 MIPS (30 MIPS @ 4.5-5.5V, -40 to 85°C)
• Wide V
DD
range: 2.5-5.5V
• Ind. (-40 to 85°C) and Ext. (-40 to 125°C)
On-Chip Flash, Data EEPROM and SRAM:
• Flash program memory: up to 144 Kbytes:
- 10,000 erase/write cycles, min. (-40 to 85°C)
- 100,000 erase/write cycles, typical
• Data EEPROM: up to 4 Kbytes:
- 100,000 erase/write cycles, min. (-40 to 85°C)
- 1M erase/write cycles, typical
- Data EEPROM retention > 20 years
• Data SRAM: up to 8 Kbytes
High-Performance DSC CPU:
•
•
•
•
•
•
•
•
•
•
•
•
•
•
Modified Harvard architecture
C compiler optimized instruction set
16-bit wide data path
24-bit wide instructions
Linear program memory addressing up to 4M
instruction words
Linear data memory addressing up to 64 Kbytes
84 base instructions: mostly 1 word/1 cycle
16 16-bit General Purpose Registers (GPR)
2 40-bit accumulators:
- With rounding and saturation options
Flexible and powerful addressing modes:
- Indirect, Modulo and Bit-Reversed
Software stack
16 x 16 fractional/integer multiply operations
32/16 and 16/16 divide operations
Single cycle multiply-and-accumulate:
- Accumulator write back for DSP operations
- Dual data fetch
40-stage barrel shifter
System Management:
• Flexible clock options:
- External, crystal, resonator, internal RC
- Fully integrated PLL (4X, 8X, 16X)
- Extremely low jitter PLL
• Programmable Power-up Timer
• Oscillator start-up timer/stabilizer
• Watchdog Timer with its own RC oscillator
• Fail-Safe Clock Monitor
• Reset by multiple sources
Power Management:
•
•
•
•
Switch between clock sources in real time
Programmable low-voltage detect
Programmable Brown-out Reset
Idle and Sleep modes with fast wake-up
•
Interrupt Controller:
•
•
•
•
5-cycle latency
Up to 45 interrupt sources, up to 5 external
7 programmable priority levels
4 processor exceptions
Timers/Capture/Compare/PWM:
• Timer/counters: up to 5 16-bit timers:
- Can pair up to make 32-bit timers
- 1 timer can run as real-time clock with external
32 KHz oscillator
- Programmable prescaler
• Input capture: up to 8 channels:
- Capture on up, down or both edges
- 16-bit Capture input functions
- 4-deep FIFO on each capture
• Output compare: up to 8 channels:
- Single or dual 16-bit Compare mode
- 16-bit glitchless PWM mode
Digital I/O:
• Up to 54 programmable digital I/O pins
• Wake-up/Interrupt-on-change on up to 24 pins
• 25 mA sink and source on all I/O pins
©
2005 Microchip Technology Inc.
DS70043F-page 1
dsPIC30F
Communication Modules:
• 3-wire SPI™: up to 2 modules:
- Framing supports I/O interface to simple
codecs
- Supports 8-bit and 16-bit data
- Supports all serial clock formats and
sampling modes
• I
2
C™ full multi-master Slave mode support:
- 7-bit and 10-bit addressing
- Bus collision detection and arbitration
• UART: up to 2 modules:
- Interrupt-on-address bit detect
- Wake-up on Start bit from Sleep mode
- 4-character TX and RX FIFO buffers
• Data Conversion Interface (DCI) module
- Codec interface
- Supports I
2
S and AC’97 protocols
- Up to 16-bit data words, up to 16 words per
frame
- 4-word deep TX and RX buffers
• CAN 2.0B active: up to 2 modules:
- 3 transmit and 2 receive buffers
- 6 receive filters and 2 masks
- Loopback, Listen Only and Listen All
Messages modes for diagnostics and bus
monitoring
- Wake-up on CAN message
• Quadrature Encoder Interface module:
- 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
Analog-to-Digital Converters:
• 10-bit 1 Msps A/D Converter module:
- 2 or 4 simultaneous samples
- Up to 16 input channels with auto scanning
- 16 deep result buffer
- Conversion start can be manual or
synchronized with 1 of 4 trigger sources
- Conversion possible in Sleep mode
- ±1 LSB max. integral non-linearity
- ±1 LSB max. differential non-linearity
• 12-bit 200 ksps A/D Converter module:
- Up to 16 input channels with auto scanning
- 16 deep result buffer
- Conversion start can be manual or
synchronized with 1 of 3 trigger sources
- Conversion possible in Sleep mode
- ±1 LSB max. integral non-linearity
- ±1 LSB max. differential non-linearity
Motor Control Peripherals:
• Motor Control PWM: up to 8 channels:
- 4 duty cycle generators
- Independent or Complementary mode
- Programmable dead time and output polarity
- Edge or center aligned
- Manual output override control
- Up to 2 Fault inputs
- Trigger for A/D conversions
- PWM Frequency for 16-bit resolution
(@ 30 MIPS) = 915 Hz for Edge-Aligned
mode, 457.5 Hz for Center-Aligned mode
- PWM Frequency for 11-bit resolution
(@ 30 MIPS) = 29.3 KHz for Edge-Aligned
mode, 14.65 KHz for Center-Aligned mode
CMOS Flash Technology:
•
•
•
•
•
Low-power, high-speed Flash technology
Fully static design
Wide operating voltage range (2.5V to 5.5V)
Industrial and extended temperature ranges
Low-power consumption
Packaging:
•
•
•
•
•
•
80-pin TQFP (12x12x1 mm, 14x14x1 mm)
64-pin TQFP (10x10x1 mm, 14x14x1 mm)
40-pin DIP, 44-pin TQFP
28-pin DIP (300 mil), 28-pin SOIC
28-pin QFN
18-pin DIP (300 mil), 18-pin SOIC
Note:
See Table 1-1, Table 1-2 and Table 1-3 for
exact peripheral features per device.
DS70043F-page 2
©
2005 Microchip Technology Inc.
dsPIC30F
1.0
1.1
dsPIC30F PRODUCT FAMILIES
General Purpose Family
The dsPIC30F General Purpose Family (Table 1-1)
is ideal for a wide variety of 16-bit MCU embedded
applications. The variants with codec interfaces are
well suited for audio applications.
TABLE 1-1:
dsPIC30F GENERAL PURPOSE FAMILY VARIANTS
Output Compare
Std. PWM
I/O Pins (Max.)
(1)
Input Capture
SRAM Bytes
Instructions
Packages
(2)
PG, PT
PG, PT
PT
PF, PT
PF, PT
PT
PF, PT
PF, PT
SOG, PG, ML
SOG, PG
SOG, PG
PG, PT
PG, PT
PT
PT
PF, PT
Packages
(2)
Timer 16-bit
A/D 12-bit
200 ksps
EEPROM
Bytes
Codec
Interface
Program
Memory
Bytes
UART
SPI™
I
2
C™
1
1
1
1
1
1
1
1
Device
Pins
dsPIC30F3014
dsPIC30F4013
dsPIC30F5011
dsPIC30F6011
dsPIC30F6011A
(3)
40/44
40/44
64
64
64
80
80
80
24K
48K
66K
132K
144K
66K
132K
144K
8K
16K
22K
44K
48K
22K
44K
48K
2048
2048
4096
6144
8192
4096
6144
8192
1024
1024
1024
2048
4096
1024
2048
4096
3
5
5
5
5
5
5
5
2
4
8
8
8
8
8
8
2
4
8
8
8
8
8
8
—
AC’97, I2S
AC’97, I2S
—
AC’97, I2S
AC’97, I2S
—
AC’97, I2S
13 ch
13 ch
16 ch
16 ch
16 ch
16 ch
16 ch
16 ch
2
2
2
2
2
2
2
2
1
1
2
2
2
2
2
2
—
1
2
2
2
2
2
2
CAN
—
—
1
—
1
1
2
2
CAN
30
30
52
52
52
68
68
68
dsPIC30F6012
(3)
dsPIC30F6012A
dsPIC30F5013
dsPIC30F6013
(3)
dsPIC30F6013A
dsPIC30F6014
(3)
dsPIC30F6014A
Note 1:
2:
3:
Maximum I/O pin count includes pins shared by the peripheral functions.
All 28- and 40-pin devices may be offered in ML packages in the future, depending on die size.
This device is not recommended for new designs..
1.2
Motor Control and Power
Conversion Family
These variants of dsPIC30F controllers (Table 1-2)
support a variety of motor control applications such as
brushless DC motors, single and 3-phase induction
motors, and switched reluctance motors. They are also
well suited for Uninterrupted Power Supply (UPS),
inverters, switched mode power supplies and power
factor correction, and also for controlling the Power
Management module in servers, telecommunication
equipment and other industrial equipment.
TABLE 1-2:
dsPIC30F MOTOR CONTROL AND POWER CONVERSION FAMILY VARIANTS
Output Compare/
Std. PWM
I/O Pins (Max.)
(1)
20
20
20
30
30
52
52
68
Input Capture
A/D
10-bit 1 Msps
Timer 16-bit
Quad Enc.
EEPROM
Bytes
Program
Memory
SRAM
Bytes
Bytes
Motor Control PWM
UART
SPI™
1
1
1
1
1
2
2
2
Device
Pins
dsPIC30F2010
dsPIC30F3010
dsPIC30F4012
dsPIC30F3011
dsPIC30F4011
dsPIC30F5015
dsPIC30F6015
dsPIC30F6010
(3)
dsPIC30F6010A
28
28
28
40/44
40/44
64
64
80
12K
24K
48K
24K
48K
66K
144K
144K
4K
8K
16K
8K
16K
22K
48K
48K
Instructions
512
1024
2048
1024
2048
2048
8192
8192
1024
1024
1024
1024
1024
1024
4096
4096
3
5
5
5
5
5
5
5
4
4
4
4
4
4
8
8
2
2
2
4
4
4
8
8
6 ch
6 ch
6 ch
6 ch
6 ch
8 ch
8 ch
8 ch
6 ch
6 ch
6 ch
9 ch
9 ch
16 ch
16 ch
16 ch
1
1
1
1
1
1
1
1
1
1
1
2
2
1
2
2
Note 1:
2:
3:
Maximum I/O pin count includes pins shared by the peripheral functions.
All 28- and 40-pin devices may be offered in ML packages in the future, depending on die size.
This device is not recommended for new designs.
©
2005 Microchip Technology Inc.
I
2
C™
1
1
1
1
1
1
1
1
DS70043F-page 3