16-bit Microcontrollers and
Digital Signal Controllers
16-bit Embedded Control Solutions
PIC24 Microcontrollers
dsPIC® Digital Signal Controllers
July 2006
www.microchip.com/16bit
16-bit
Embedded Control Solutions
Do you need to add more performance or additional features to your products? Do you need more
on-chip memory? Are you concerned with tight schedules and cost goals? How do you decide which
embedded control solution will bring the most value to your overall embedded design?
Microchip’s 16-bit solutions are designed to be a broad
platform which can serve your needs for many years. If you
have designed using our 8-bit PIC® microcontrollers (MCUs)
you will be pleased to see that the same MPLAB® Integrated
Development Environment used on our smallest 6-pin MCU
also supports our most powerful 16-bit controllers. Plus our
commitment for peripheral and pinout compatibility has been
carried forward to our 16-bit product families. If you are new
to Microchip’s control solutions, we offer powerful, low cost
development tools, a compatible lineup of products that
range from low cost to high performance, and a Company
dedicated to serving your needs.
Since 2002, Microchip has been #1 in worldwide 8-bit
microcontroller shipments* with a product portfolio that
continues to expand to meet the demands of our customers
while solving many of their key business issues. With more
than 70 16-bit products in our portfolio today and many more
on the way, we are committed to offer similar value in the
16-bit realm.
*Gartner Dataquest, Top Companies Revenue from Shipments of 8-bit MCU - All Applications” April 2005.
One Architecture, Four Families
Microchip offers two 16-bit Microcontroller (MCU) families
plus two 16-bit Digital Signal Controller (DSC) families that
give you compatible options across a wide spectrum of
price, performance and feature sets. Common attributes
among all 16-bit MCU and DSC families are:
•
•
•
•
Pinout compatibility
Software compatibility
Peripheral compatibility
Common development tools
Whether your solution requires the lowest cost 16-bit
solution, the most powerful 16-bit MCU in the industry, or
DSP capability, Microchip offers a broad range of products
while preserving the compatibility that helps save you time
and money on subsequent designs.
Table of Contents
16-bit Embedded Control Solutions Introduction
The Capability You Need
One Architecture: Four Compatible Families
16-bit Packages
Specifications for PIC24F Family
Specifications for PIC24H Family
Specifications for dsPIC30F Families
Specifications for dsPIC33F Families
Designed for Real-time Control
Powerful Tools and Libraries
MPLAB® IDE
Software Development Tools
Building Block Libraries
2
3
4
5
6
6
7
8
9
10
10
11
11
Hardware Development Tools
Hardware Development Boards
Advanced Development Boards
DSP Algorithm Development
Operating Systems and Communication
Drivers
Libraries for Speech Applications
Connectivity Libraries
More Application Libraries
Motor Control Application Software
Resources for Self-paced Learning
Getting Started
Ordering Guide
12
13
14
15
15
16
17
18
18
19
19
20
RoHS Compliant
Microchip has converted all of its standard
production from tin-lead (SnPb)-plated product
packaging to lead-free (Pb-free) product
packaging across the entire portfolio of
PIC® microcontrollers, dsPIC® digital signal
controllers, serial EEPROMs, stand-alone
analog and other devices. All standard product
is now shipped with matte tin (Sn) plating and
all products are RoHS-compliant. This enables
our customers to achieve early compliance
with new regulations around the world such as
the European Union Restrictions on Hazardous
Substances in Electrical and Electronic
Equipment (RoHS) directive.
2
16-bit Embedded Control Solutions
The Capability You Need
16-bit Microcontroller (MCU) Portfolio
Are cost or performance important considerations for your next
design? PIC24 MCUs offer the variety of peripherals, memory
sizes and packaging choices you have come to expect from our
8-bit products. Microchip offers two compatible Flash-based
16-bit PIC24 MCU families. The 16 MIPS PIC24F family is
designed for cost-sensitive applications. The 40 MIPS PIC24H
family is designed for high performance applications. Both
families have the same instruction set, share basic peripherals,
have common pinouts and use the same tools for development.
The PIC24 families are compatible with dsPIC DSCs for easy
migration when additional performance or DSP capability is
required.
16-bit Digital Signal Controller (DSC)
Portfolio
Are you looking to add DSP capability to your application?
DSCs blend the features of both MCUs and DSPs into a
single-chip solution enabling you to add DSP features to
your embedded application. Microchip offers two compatible
Flash-based 16-bit DSC families. The 30 MIPS dsPIC30F
family is designed for applications where 5V operation is
important, and the 40 MIPS dsPIC33F family is suited for
applications preferring 3.3V or need more on-chip memory.
Both DSC families and the PIC24 families have the same
base instruction set (DSCs add DSP instructions), share basic
peripherals, have common pinouts and use the same tools for
development.
Optimized C Compiler:
Supporting the PIC24 MCU and dsPIC
DSC families, Microchip’s 16-bit
architecture was designed to optimize
C language code size. The architecture
was co-developed by compiler writers
who emphasized the need for an
orthogonal instruction set, many general-
purpose registers, powerful indirect
with offset addressing and a software
stack. Now you can achieve leadership
code size in applications, helping your
project team hit schedule and code size
targets. Reduced code size provides the
opportunity to use a smaller memory
device, spend less time optimizing code
size and respond to those marketing
requests for “just one more feature.”
16-bit Applications
Relative Code Size (in Bytes)
32-bit Applications
165%
148%
113% 114%
114%
100%
85%
152% 153% 153%
136%
129%
100%
109%
118%
156%
188%
180%
Microchip
A
MPLAB® C30
C Compiler
B
C
D
E
F
G
H
Competitors: 16- and 32-bit MCUs, DSCs
Microchip A
MPLAB® C30
C Compiler
E
B
C
D
F
G
H
Competitors: 16- and 32-bit MCUs, DSCs
Looking to Add DSP?
If you are one of the many MCU users
looking to add DSP features to your
embedded design, the dsPIC DSCs make
the process easy and straightforward.
The dsPIC DSC retains an MCU look and
feel from the architecture to the tools
you use for development. If you don’t
have the time to become immersed in
DSP technology, you can use one of
the many libraries developed by DSP
experts. Or you can use the available
graphical tools to develop digital filters.
For DSP experts, Microchip includes the
attributes that are typical of true DSPs
in this class: dual 40-bit accumulators,
single cycle 16x16 MAC, dual operand
fetches, saturation and rounding modes,
and zero overhead looping. This is not
simply a MCU with a MAC attached as
an afterthought.
Flexible Flash:
All of Microchip’s 16-bit products employ
flexible and secure Flash memory. You can
use the Flash memory to store programs
or data tables. Additionally, all devices
can self-program their own Flash memory
in a finished product. The PIC24H and
dsPIC DSC families offer advanced security
features that enable you to secure your
base code and allow OEMs to “customize”
the application or alternatively enhance
work with encrypted data.
Powerful 16-bit CPU:
The PIC24 MCU and the dsPIC DSC
families execute most instructions in
one cycle. Interrupts are serviced quickly
and are deterministic. Bit manipulation
is accomplished in a single cycle. Add
latest generation features, such as zero
overhead looping, single-cycle multiply
and a barrel shifter, and you have the
most powerful 16-bit MCU for your
embedded control designs.
Migration Options:
Once you have designed our 16-bit
products into your application, future
designs are simplified. You can select
from a broad range of memory, pin
count, peripheral, performance and price
options without changing architecture
or development tools. The pinout,
software and tool compatibility helps
make stepping to different performance
or memory points very straightforward.
This is also beneficial if you design
in an environment of rapidly evolving
requirements.
Considering a 32-bit MCU?
Has your current MCU run out of steam?
Microchip’s performance-oriented 16-bit
solutions can significantly outperform
low cost 32-bit controllers for many
MCU applications. Why abandon 16-bit
deterministic performance, native bit
manipulation, fast fixed-latency interrupts
and low cost tools to gain inferior 32-bit
performance? Many engineers using 32-bit
devices have reverted to Microchip’s 16-
bit products after discovering performance
issues during the course of their design.
www.microchip.com/16bit
3
One Architecture: Four Compatible Families
dsPIC33F
40 MIPS @ 3.3V
3.0 to 3.6V operation
-40° to 85°C (-40° to 125°C planned)
Up to 256K Bytes Program Flash
Up to 30K Bytes RAM
Packages up to 100 pins
PIC24F
16 MIPS @ 3.3V
2.0 to 3.6V operation
-40° to 85°C (-40° to 125°C Planned)
Up to 128K Bytes Program Flash
Up to 8K Bytes RAM
Packages up to 100 pins
PIC24H
40 MIPS @ 3.3V
3.0 to 3.6V operation
-40° to 85°C (-40° to 125°C Planned)
Up to 256K Bytes Program Flash
Up to 16K Bytes RAM
Packages up to 100 pins
dsPIC30F
30 MIPS @ 5V
2.5 to 5.5V operation
-40° to 85°C and -40° to 125°C
Up to 144K Bytes Program Flash
Integrated data EEPROM
Up to 8K Bytes RAM
Packages up to 80 pins
Highly Cost-Effective PIC24F 16-bit MCUs
With 16 MIPS performance and an extensive peripheral set, the
PIC24F MCUs are a highly cost-effective solution for all but the
most demanding 16-bit applications. The PIC24F also offers an
easy migration path for design engineers whose applications
have outgrown the performance offered by 8-bit MCUs.
Versatile 5 Volt dsPIC30F DSCs
The 30 MIPS dsPIC30F family is developed for applications
that benefit from a wide operating voltage (2.5 to 5.5 volts),
extremely low standby current, integrated EEPROM, and for those
that prefer 5V operation due to system considerations.
Highest Performance PIC24H 16-bit MCUs
For more demanding applications, the PIC24H offers 40 MIPS
performance, more memory and additional peripherals. The
PIC24H family adds up to 2 CAN communication modules, and
a user-selectable 10/12-bit Analog-to-Digital (A/D) converter.
Integrated Direct Memory Access (DMA) between peripherals and
dual-port RAM provides zero overhead data transfers, optimizing
CPU throughput.
High Performance, Cost Effective 3.3 Volt
dsPIC33F DSCs
The 40 MIPS dsPIC33F family is developed for high performance
embedded control applications. Compared to the dsPIC30F
family, the dsPIC33F family offers larger RAM and Flash memory
options and adds DMA.
PIC24F
Best in Class C Compiler Efficiency
Same Instruction Set
Same Base Peripherals
Same Pinout
Same Development Tools
Fixed Fast Interrupt Latency
Universal Bit Manipulation
Full Speed from Flash
Single-Cycle Multiply
32/16 & 16/16 Divide
Deterministic Instruction Execution
√
√
√
√
√
√
√
√
√
√
√
PIC24H
√
√
√
√
√
√
√
√
√
√
√
dsPIC30F
√
Adds DSP
√
√
√
√
√
√
√
√
√
dsPIC33F
√
Adds DSP
√
√
√
√
√
√
√
√
√
4
16-BIT COMPARISON
16-bit Embedded Control Solutions
16-bit Product Features Overview
CPU, Systems & Memory
Operating Range PIC24F
DC to 16 MIPS
V
DD
range: 2.0 to 3.6V
Ind.(-40° to 85°C) Extended temp. planned
Peripherals
Digital I/O
Up to 85 programmable digital I/O pins
Wake-up/Interrupt-on-change on up to 24 pins
High current sink/source (PIC24F & dsPIC30F)
Analog Subsystems
Analog comparator:
• Programmable reference
10-bit A/D converter:
• PIC24F: 500 ksps, 1 module
• dsPIC30F: 1 Msps, 1 module
12-bit A/D converter:
• dsPIC30F: 1 Msps or 2 Msps, 1 module
10-/12-bit A/D converter (user selectable):
• Available on PIC24H and dsPIC33F
• 10-bit: 1.1 Msps, 4 S&H
• 12-bit 500 ksps, 1 S&H
• Some devices have 2 modules
Common A/D features:
Buffered output or DMA
16-deep result buffer
• dsPIC30F & PIC24F: up to 16 channels auto
scanning
• PIC24H & dsPIC33F: up to 32 channels auto
scanning
Operating Range PIC24H & dsPIC33F
DC to 40 MIPS
V
DD
range: 3.0 to 3.6V
Ind.(-40° to 85°C) Extended temp. planned
Communication Modules
3-wire SPI: up to 2 modules
• Framing supports I/O interface to simple
codecs
I²C™: up to 2 modules
• Full Multi-master and Slave mode support
• 7-bit and 10-bit addressing
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
Codec interface module
• Supports I²S and AC97 protocols
CAN/ECAN 2.0B active: up to 2 modules
• 3 transmit, 2 receive buffers (dsPIC30F)
• 8 transmit, 32 receive buffers (PIC24H &
dsPIC33F)
• Wake-up on CAN message
Operating Range dsPIC30F
DC to 30 MIPS*
V
DD
range: 2.5 to 5.5V
Ind. (-40° to 85°C) and ext. (-40° to 125°C)
*30 MIPS @ 4.5 to 5.5V, -40° to 85°C
High Performance CPU
Single cycle execution (most instructions)
C compiler optimized instruction set
16-bit wide data path
76 base instructions: mostly 1 word/1 cycle
16 16-bit general purpose registers
Software stack
16 x 16 fractional/integer multiplier
32/16 and 16/16 divide
40-stage barrel shifter
DSC additions (dsPIC30F
&
dsPIC33F):
• Adds 8 base DSP instructions
• 2 40-bit accumulators with rounding and
saturation options
• Single core combines MCU & DSP features
• Adds Modulo and Bit-reverse address modes
Motor Control Peripherals
Motor Control PWM: up to 8 outputs
• 4 duty cycle generators
• Independent or complementary mode
• Programmable dead time settings
• Edge or center-aligned
• Manual output override control
• Up to 2 fault inputs
• A/D samples triggered by PWM module
Quadrature encoder interface module
• Phase A, Phase B and index pulse input
Timers/Capture/Compare/PWM
Timer/counters: up to nine 16-bit timers
• Can pair up to make 32-bit timers
• 1 timer can run as real-time clock
Input capture: up to 8 channels
• Capture on rising, falling or both edges
• 4-deep FIFO on each capture
Output compare: up to 8 channels
• Single or dual 16-bit compare mode
• 16-bit glitchless PWM mode
Switch Mode Power Peripherals
10-bit A/D 2 Msps, Up to 4 sample and holds
PS PWM, 1 nS duty cycle resolution
Analog comparators
• Programmable reference
System Management
Flexible clock options:
• Primary external clock, crystal, resonator
• Secondary lower power 32 kHz oscillator
• Internal RC: fast or low power
• Integrated low jitter PLL
-- PLL sourced by ext. and int. clock sources
Programmable power-up timer
Oscillator start-up timer/stabilizer
Watchdog Timer with its own RC oscillator
Clock switching/fail-safe clock monitor
Auxiliary Functions
Parallel Master Slave Port (PMP/PSP):
• 8-bit Parallel IO, highly configurable
• Communicates with external data memory,
communications peripherals, LCDs
• Supports 8-bit or 16-bit data
• Supports 16 address lines
Hardware Real-Time Clock/Calendar (RTCC):
• Provides clock, calendar and alarm functions
Programmable CRC generator
Hardware DMA PIC24H & dsPIC33F
8 channel DMA, 2 KB dual port RAM
Interrupt Controller
5 cycle fixed latency
Up to 118 interrupt sources, up to 5 external
7 programmable priority levels
4 processor exceptions and software traps
Power Management
Switch between clock sources in real-time
Programmable power-on reset start up
Programmable low-voltage detect (dsPIC30F)
Programmable brown-out reset
Idle and Sleep modes with fast wake up
On-chip Flash, Data EEPROM and RAM
Flash program memory: up to 256 KB
dsPIC30F data EEPROM: up to 4 KB
• 1 million erase/write cycles typical
Data RAM: up to 30 KB
“With their dsPIC DSCs and PIC24
microcontrollers, Microchip is the
only company on the planet with
truly unified DSP and microcontroller
product lines.”
— Will Strauss, president of Forward Concepts
www.microchip.com/16bit
5