M
dsPIC30F
Data Sheet
High Performance
Digital Signal Controllers
2002 Microchip Technology Inc.
Advance Information
DS70032B
Note the following details of the code protection feature on PICmicro
®
MCUs.
•
•
•
The PICmicro family meets the specifications contained in the Microchip Data Sheet.
Microchip believes that its family of PICmicro microcontrollers is one of the most secure products 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 knowl-
edge, require using the PICmicro microcontroller in a manner outside the operating specifications contained in the data sheet.
The person doing so may be 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 product.
•
•
•
If you have any further questions about this matter, please contact the local sales office nearest to you.
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 com-
ponents in life support systems is not authorized except with
express written approval by Microchip. No licenses are con-
veyed, implicitly or otherwise, under any intellectual property
rights.
Trademarks
The Microchip name and logo, the Microchip logo, FilterLab,
K
EE
L
OQ
, MPLAB, PIC, PICmicro, PICMASTER, PICSTART,
PRO MATE, SEEVAL and The Embedded Control Solutions
Company are registered trademarks of Microchip Technology
Incorporated in the U.S.A. and other countries.
dsPIC, ECONOMONITOR, FanSense, FlexROM, fuzzyLAB,
In-Circuit Serial Programming, ICSP, ICEPIC, microID,
microPort, Migratable Memory, MPASM, MPLIB, MPLINK,
MPSIM, MXDEV, PICC, PICDEM, PICDEM.net, rfPIC, Select
Mode and Total Endurance are trademarks of Microchip
Technology Incorporated in the U.S.A.
Serialized Quick Term 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.
© 2002, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
Microchip received QS-9000 quality system
certification for its worldwide headquarters,
design and wafer fabrication facilities in
Chandler and Tempe, Arizona in July 1999. The
Company’s quality system processes and
procedures are QS-9000 compliant for its
PICmicro
®
8-bit MCUs, K
EE
L
OQ
®
code hopping
devices, Serial EEPROMs and microperipheral
products. In addition, Microchip’s quality
system for the design and manufacture of
development systems is ISO 9001 certified.
DS70032B - page ii
Advance Information
2002 Microchip Technology Inc.
M
•
•
•
•
•
•
•
•
•
•
•
dsPIC30F
Peripheral Features (Continued):
• 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
dsPIC30F Enhanced FLASH 16-bit Microcontrollers
High Performance Modified RISC CPU:
Modified Harvard architecture
C compiler optimized instruction set architecture
89 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
16-bit x 16-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 45 interrupt sources
- 8 user selectable priority levels
Vector table with up to 62 vectors
- 54 interrupt vectors
- 8 processor exceptions and software traps
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
•
•
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
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
• 16-bit Compare/PWM Output functions
- Dual Compare mode available
• Data Converter Interface (DCI), supports common
audio CODEC protocols including I
2
S and AC’97
2002 Microchip Technology Inc.
Advance Information
DS70032B-page 1
dsPIC30F
Analog Features:
• 12-bit or 10-bit Analog-to-Digital Converter (A/D) with:
- 100 Ksps (for 12-bit A/D) or 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
Special Microcontroller Features:
• Enhanced FLASH program memory
- 100,000 erase/write cycle (typical) for
industrial temperature range
• Data EEPROM memory
- 1,000,000 erase/write cycle (typical)
industrial temperature range
- Data EEPROM Retention > 20 years
• 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
2002 Microchip Technology Inc.
Advance Information
DS70032B-page 2
dsPIC30F
dsPIC30F Sensor Processor Family
UART
SPI
TM
1
1
1
1
SRAM EEPROM Timer
Bytes
Bytes
16-bit
1024
2048
1024
2048
0
1024
0
1024
3
3
3
3
Input
Cap
2
2
2
2
Output Comp/ A/D 12-bit
Std PWM
100 Ksps
2
2
2
2
8 ch
8 ch
10 ch
10 ch
I
2
C
TM
1
1
1
1
Program Memory
Device
Pins
Bytes
dsPIC30F2011
dsPIC30F3012
dsPIC30F2012
dsPIC30F3013
18
18
28
28
12K
24K
12K
24K
Instructions
4K
8K
4K
8K
1
1
1
2
Pin Diagrams
18-Pin SOIC and PDIP
Part No.: 30F2011 / 30F3012
AN6/SCK1/INT0/OCFA/RB6
AN5/U1RX/SDI1/SDA/CN7/RB5
AN4/U1TX/SDO1/SCL/CN6/RB4
MCLR
Vss
AN0/V
REF
+/CN2/RB0
AN1/V
REF
-/CN3/RB1
AV
DD
AV
SS
1
2
3
4
5
6
7
8
9
18
17
16
15
14
13
12
11
10
AN7/IC2/OC2/RB7
IC1/OC1/RD8
OSC1/CLKIN
OSC2/CLKO/RC15
V
DD
SOSC2/T2CK/U1ATX/CN1/RC13
SOSC1/T1CK/U1ARX/CN0/RC14
AN3/CN5/RB3
AN2/SS1/CN4/RB2
dsPIC30FXXXX
Note:
Pinout subject to change.
28-Pin SDIP
Part No.: 30F2012 / 30F3013
MCLR
AN0/V
REF
+/CN2/RB0
AN1/V
REF
-/CN3/RB1
AN2/SS1/CN4/RB2
AN3/CN5/RB3
AN4/CN6/RB4
AN5/CN7/RB5
V
SS
OSC1/CLKIN
OSC2/CLKO/RC15
SOSC2/T2CK/U1ATX/CN1/RC13
SOSC1/T1CK/U1ARX/CN0/RC14
V
DD
IC2/INT2/RD9
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
AV
DD
AV
SS
AN6/OCFA/RB6
AN7/RB7
AN8/OC1/RB8
AN9/OC2/RB9
U2RX/RF4
U2TX/RF5
V
DD
V
SS
U1RX/SDI1/SDA/RF2
U1TX/SDO1/SCL/RF3
SCK1/INT0/RF6
IC1/INT1/RD8
dsPIC30FXXXX
Note:
Pinout subject to change.
2002 Microchip Technology Inc.
Advance Information
DS70032B-page 3