16-Bit Embedded Control Solutions PDF
16-Bit Embedded Control Solutions PDF
January 2010
www.microchip.com/16bit
16-bit Embedded Control Solutions
Are you enhancing your product performance and features to increase market share?
Do you want to achieve an edge over your competition with added connectivity and graphical user interface?
Do you want to generate more profits by optimizing your design and development costs?
Microchip’s 16-bit embedded control solutions can help you!
Advanced Motor Control with dsPIC Portfolio Speech and Audio for All Embedded Applications
dsPIC Motor Control Family DSCs feature a high-performance Microchip’s 16-bit microcontrollers and digital signal
CPU with motor control peripherals. The silicon solutions are controller’s have the performance, peripherals and memory
backed up by free software application libraries and motor to implement speech and audio applications. A suite of
control algorithms. Low-cost motor control development advanced solution libraries have been developed and are
boards support a wide variety of motors and help you to available for your application requirements. Visit
reduce your design risk and development efforts. Visit www.microchip.com/speech for more information.
www.microchip.com/motor for more information.
Graphics Display Solutions
Extreme Low Power Solutions Graphics displays are gaining popularity in user interface
nanoWatt XLP Technology brings together the sleep modes, applications and they are easy to add to your application
circuit and process technologies needed to address today’s when you use any of Microchip’s 16- or 32-bit MCU or DSC
low power applications. With sleep currents down to 20 nA devices with PMP. With Microchip’s free graphics library and
and industry-leading integration that includes USB OTG, PPS development tools, you can quickly integrate graphics display
and mTouch™ capacitive sensing, XLP products can help functions into your application in a single microcontroller.
you extend the life of your battery powered application. Visit Visit www.microchip.com/graphics for more information.
www.microchip.com/xlp for more information.
Innovative Peripherals
■ Motor control peripherals Power Saving Options
■ Extreme low power technology Small Packages
■ SMPS peripherals
■ Deep sleep current as low as ■ Packages as small as 5x5 mm
■ Audio peripherals: DAC and I2S
■ CTMU for mTouch 20 nA ■ 16-bit MCU with 128 KB Flash
■ USB OTG ■ Options to reduce speed or in a 6 x 6 mm package
disable CPU ■ Peripheral Pin Select allows
■ CAN
■ Application software can alter access to the peripherals
■ PMP for graphics
clock speeds needed
www.microchip.com/16bit 3
Leading 16-bit Performance and Features
16-bit Microcontroller (MCU) PIC24H: Highest Performance 16-bit MCUs
The PIC24H offers 40 MIPS performance with a combination
Portfolio of large memory and wide variety of package options. It also
Are costs, performance, low power and smaller packages includes large flash in smaller packages (5x5 mm). The
important considerations for your next design? built-in peripherals include high performance 12-bit ADC and
PIC24 MCUs offer the variety of peripherals, memory sizes general purpose 16-bit PWMs. Communication peripherals
and packaging choices. Microchip offers two compatible include up to 2 CAN modules, 2 UARTs (with IrDA support),
Flash-based 16-bit PIC24 MCU families. The 16 MIPS 2 SPI and 2 I2C. High performance Direct Memory
PIC24F family is designed for low power applications. Access (DMA) provides better data handling capability
The 40 MIPS PIC24H family MCUs are designed for high optimizing CPU throughput. ACQ100-qualified extended and
performance applications. Both families have the same high-temperature options for automotive applications are
instruction set, share basic peripherals, have common available.
pinouts and use the same tools for development. The PIC24 Optimized C Compiler
families are compatible with dsPIC DSCs for easy migration
when additional performance or DSP capability is required. Supporting the PIC24 MCU and dsPIC DSC families,
Microchip’s 16-bit architecture was designed to optimize C
PIC24F: Lowest Power 16-bit MCUs language code size. The architecture was co-developed by
With 16 MIPS performance and an extensive peripheral set, compiler writers who emphasized the need for an orthogonal
including USB OTG and capacitive touch sense interface, instruction set, many general-purpose registers, powerful
the PIC24F MCUs are cost-effective for the most demanding indirect with offset addressing and a software stack. Now
16-bit applications. Serial communication peripherals include you can achieve leadership code size in applications, helping
up to 4 UARTs, 3 SPI and 3 I2C™. With the introduction your project team hit schedule and code size targets.
of nanoWatt XLP Technology, select PIC24F devices have Reduced code size provides the opportunity to use a smaller
industry leading low power with sleep numbers as low as memory device, spend less time optimizing code size and
20 nA and RTCC operation down to 500 nA. respond to those marketing requests for “just one more
feature.”
Relative Code Size (in bytes) for 16-bit Applications
Relative Performance/MHz
165%
100%
113% 114%
109%
100% 80%
60%
40%
20%
0%
A B C D E F G H
Microchip dsPIC33F/ 32-bit 32-bit PIC24F Typical 16-bit
MPLAB® C Competitors: 16 and 32-bit MCUs & DSCs PIC24H Competitor A Competitor B Competitor
Compiler
Designed for real-time control, Microchip’s 16-bit DSCs and MCUs offer high performance,
innovative features, outstanding reliability, robustness and reduced system cost.
www.microchip.com/16bit 5
16-bit Product Features Overview
CPU, Systems & Memory
Operating Range PIC24F Power Management Auxiliary Functions
DC to 16 MIPS Switch between clock sources in real-time Parallel Master Slave Port (PMP/PSP):
• 8-bit Parallel IO, highly configurable
Vdd range: 1.8 to 3.6V Programmable power-on reset start up • Communicates with external data memory,
Ind. (-40° to 85°C) Ext. (-40° to 125°C) Programmable low-voltage detect (dsPIC30F) communications peripherals, LCDs
• Supports 8-bit or 16-bit data
Operating Range PIC24H & dsPIC33F Programmable brown-out reset • Supports 16 address lines
DC to 40 MIPS Idle, Sleep and Deep Sleep modes with fast wake up Hardware Real-Time Clock/Calendar (RTCC):
• Provides clock, calendar and alarm functions
Vdd range: 3.0 to 3.6V On-chip Flash, Data EEPROM and RAM
Programmable CRC generator
Ind. (-40° to 85°C) Ext. (-40° to 125°C) Flash program memory: up to 256 KB
High-Temp (-40° to 140°C/150°C) Charge/Time Measurement Unit (CTMU)
Data EEPROM • Capacitive Touch Sense Keypad I/F
Operating Range dsPIC30F • dsPIC30F: up to 4 KB • Provides 1 ns resolution time measurements
-- 1 million erase/write cycles typical
DC to 30 MIPS • PIC24F: up to 512B Hardware DMA PIC24H & dsPIC33F
Vdd range: 2.5 to 5.5V Data RAM: up to 30 KB 8 channel DMA between dual port RAM & peripherals
Ind. (-40° to 85°C) Ext. (-40° to 125°C) Analog Subsystems
High Performance CPU
Peripherals Analog comparators (up to 3):
Digital I/O • Programmable reference
Single cycle execution (most instructions)
Audio DAC:
Peripheral Pin Select (PPS)
C compiler optimized instruction set • 2 ch. 16-bit 100 ksps
• Remap digital I/O
• Differential output
16-bit wide data path • Support most digital peripherals
10-bit ADC:
76 base instructions: mostly 1 word/1 cycle Up to 85 programmable digital I/O pins
• PIC24F: 500 ksps, 1 module
Wake-up/Interrupt-on-change on up to 24 pins • dsPIC30F: 1 Msps, 1 module
16 16-bit general purpose registers
High current sink/source (PIC24F & dsPIC30F) 12-bit ADC:
Software stack • dsPIC30F: 200 ksps 1 module
16 x 16 signed fractional/integer multiplier Communication Modules 10-/12-bit ADC (user selectable):
3-wire SPI: up to 3 modules • Available on PIC24H and dsPIC33F
32/16 and 16/16 divide
• Framing supports I/O interface to simple codecs • 10-bit: 1.1 Msps, 4 S&H
40-stage barrel shifter • 12-bit: 500 ksps, 1 S&H
I²C™: up to 3 modules • Some devices have 2 modules
DSC additions (dsPIC30F & dsPIC33F): • Full Multi-master and Slave mode support
• Adds 8 base DSP instructions • 7-bit and 10-bit addressing Common ADC features:
• 2 40-bit accumulators with rounding and Buffered output or DMA
saturation options UART: up to 4 modules • dsPIC30F & PIC24F: up to 16 channels auto
• Single core combines MCU & DSP features • Interrupt-on-address bit detect scanning
• Adds Modulo and Bit-reverse address modes • Wake-up on Start bit from Sleep mode • PIC24H & dsPIC33F: up to 32 channels auto
• 4-character TX and RX FIFO buffers scanning
System Management • LIN and IrDA® support
Motor Control Peripherals
Flexible clock options: USB OTG*
• Internal Boost Regulator requires minimal Motor Control PWM: up to 8 outputs
• Primary external clock, crystal, resonator
external components • 4 duty cycle generators
• Secondary lower power 32 kHz oscillator
• Separate 3.3V regulator • Independent or complementary mode
• Internal RC: fast or low power
• Transparent RAM buffer interface • Programmable dead time settings
• Integrated low jitter PLL
-- PLL sourced by ext. and int. clock sources • Edge or center-aligned
Codec interface module • Manual output override control
Programmable power-up timer • Supports I²S and AC97 protocols • Up to 2 fault inputs
• ADC samples triggered by PWM module
Oscillator start-up timer/stabilizer Timers/Capture/Compare/PWM
Quadrature encoder interface module
Watchdog Timer with its own RC oscillator Timer/counters: up to nine 16-bit timers • Up to 2 modules
• Can pair up to make 32-bit timers • Phase A, Phase B and index pulse input
Clock switching/fail-safe clock monitor • 1 timer can run as real-time clock
High current sink/source (PIC24F & dsPIC30F)
Interrupt Controller Input capture: up to 8 channels
• Capture on rising, falling or both edges Switch Mode Power Peripherals
5 cycle fixed latency • 4-deep FIFO on each capture
10-bit ADC Up to 4 Msps, Up to 6 sample and holds
Up to 118 interrupt sources, up to 5 external Output compare: up to 9 channels
• Single or dual 16-bit compare mode PS PWM, 1 nS duty cycle resolution
7 programmable priority levels • 16-bit glitchless PWM mode
Analog comparators
4 processor exceptions and software traps • Programmable reference
CTMU
UART
I²C™
Product Pins Timer Capture Compare/ RTCC Pkg Code
JTAG
PMP
USB
OTG
PPS
KB KB 500 ksps Comparators
SPI
PWM
PIC24FJ64GA006 64 64 8 5 5 5 Y 1 ADC, 16 ch 2 2 2 2 Y – – – Y PT
PIC24FJ64GB106 64 64 16 5 9 9 Y 1 ADC, 16 ch 3 4 3 3 Y Y Y Y Y PT
PIC24FJ64GA008 80 64 8 5 5 5 Y 1 ADC, 16 ch 2 2 2 2 Y – – – Y PT
PIC24FJ64GB108 80 64 16 5 9 9 Y 1 ADC, 16 ch 3 4 3 3 Y Y Y Y Y PT
www.microchip.com/16bit 7
PIC24F MCU Family
PIC24F MCU Devices with NanoWatt XLP Technology
Microchip products with nanoWatt XLP Technology offer the industry’s lowest currents for Sleep, where extreme low power
applications spend more than 99% of their time. Visit www.microchip.com/XLP for more XLP product information.
Ouput
Deep
CTMU
UART
I²C™
Product Pins Flash RAM EEPROM Timer Capture Compare/ RTCC ADC Comparators Pkg Code
JTAG
PMP
USB
OTG
PPS
Sleep
SPI
PWM
RTCC
UART
Product Pins 16- Compare/ Pkg Code
I²C™
JTAG
PMP
CAN
PPS
KB KB # ch Capture 1.1/0.5 Msps Comparators
SPI
bit PWM
PIC24HJ12GP201 18 12 1 – 3 4 2 1 ADC, 6 ch – 1 1 1 – Y – – – P, SO
†PIC24H devices feature one or two user-selectable 1.1 Msps 10-bit ADC (4 Sample and Hold) or 500 ksps 12-bit ADC (1 Sample and Hold).
*Parts available with High Temperature options.
www.microchip.com/16bit 9
dsPIC33F DSC Product Family
General Purpose Family
The 40 MIPS dsPIC33F general purpose digital signal controllers offer the performance of DSP with the simplicity of an
MCU. The dsPIC33F core is designed to execute digital filter algorithms, high speed precision digital control loops and
digital audio and speech processing. A wide variety of memory and package options, audio peripherals, communication
peripherals, DMA and general purpose peripherals provide flexibility to high performance embedded control designs.
Output
ADC 16-bit
Flash RAM DMA Timer Input Compare/ Codec Analog Flash
Product Pins 10-/12-bit† Audio Pkg Code
RTCC
UART
KB KB # Ch 16-bit Capture Standard Interface Comparators Security
I²C™
JTAG
PMP
CAN
PPS
1.1/0.5 Msps DAC
SPI
PWM
dsPIC33FJ12GP201 18 12 1 – 3 4 2 – 1 ADC, 8 ch – – Y 1 1 1 – Y – – N P, SO
dsPIC33FJ64GP708A 80 64 16 8 9 8 8 1 2 ADC, 24 ch – – Y 2 2 2 – N – 2 Y PT
†dsPIC33 devices feature one or two user-selectable 1.1 Msps 10-bit ADC (4 Sample and Hold) or 500 ksps 12-bit ADC (1 Sample and Hold)
*Parts available with High Temperature options.
RTCC
UART
KB KB # Ch 16-bit Capture Standard PWM 1.1/0.5 Comparators Security
I²C™
JTAG
PMP
CAN
PPS
DAC
SPI
PWM Msps
dsPIC33FJ64MC508A 80 64 8 8 9 8 8 8 ch 1 1 ADC, 18 ch – – Y 2 2 2 – N – 1 Y PT
†dsPIC33 devices feature one or two user-selectable 1.1 Msps 10-bit ADC (4 Sample and Hold) or 500 ksps 12-bit ADC (1 Sample and Hold)
*Parts available with High Temperature options.
www.microchip.com/16bit 11
dsPIC33F DSC Product Family
SMPS and Digital Power Conversion Family
Implementing high speed precision digital control loops for power conversion applications requires a high-performance
DSP engine along with specialized Switch Mode Power Supplies (SMPS) peripherals. Microchip’s 16-bit dsPIC33F SMPS
DSCs provide on-chip peripherals specifically designed for high-performance, digital power supplies. SMPS peripherals
include high speed PWM, ADC and analog comparators. The dsPIC33F SMPS family supports applications such as,
induction cooking, UPS, inverter, intelligent battery chargers, power factor correction, HID lighting, fluorescent lighting,
LED lighting, AD-DC and DC-DC conversion and motor control applications.
Output
ADC
Flash RAM Timer DMA Input Compare/ PS 10-bit Analog
Product Pins QEI 10-bit Pkg Code
KB Bytes 16-bit # Ch Capture Standard PWM DAC o/p Comparators
ECAN
UART
I²C™
JTAG
2/4 Msps
SPI
PWM
16-bit Packages
P: 40-pin PDIP PF: 100-pin TQFP PT: 100-pin TQFP SO: 28-pin SOIC ST: 14-pin TSSOP
(52.27 x 15.24 x 3.81 mm) (14 x 14 x 1 mm) (12 x 12 x 1 mm) (17.88 x 10.34 x 2.31 mm) (5.0 x 6.4 x 1.2 mm)
UART
Bytes Bytes 16-bit Capture Standard
I²C™
Interface Code
CAN
Kbytes 200 ksps Segments
SPI
PWM
Sensor Family
The dsPIC30F Sensor family products have features designed to support high-performance, cost-sensitive and
space-constrained applications. Offered in packages as small as 6x6 mm and with pin counts as low as 18 pins.
Output
Flash ADC I/O
RAM EEPROM Timer Input Compare/ Package
Product Pins Memory 12-bit Pins
UART
Bytes Bytes 16-bit Capture Standard
I²C™
Code
Kbytes 200 ksps (Max.)
SPI
PWM
I²C™
Code
CAN
Kbytes PWM 1 Msps Segments SPI
PWM
dsPIC30F3010 28/44 24 1024 1024 5 4 2 6 ch Yes 6 ch, 4 S/H 1 1 1 1 – SP, SO, 44-pin ML
dsPIC30F4012 28/44 48 2048 1024 5 4 2 6 ch Yes 6 ch, 4 S/H 1 1 1 1 1 SP, SO, 44-pin ML
PWM
www.microchip.com/16bit 13
World Class Development Tools
MPLAB® Integrated Development Available for MPLAB IDE
Environment (IDE) Assembler/Linker/Librarian
Microchip’s 16-bit controllers are supported by MPLAB® The MPLAB ASM30 is a full-featured macro assembler.
Integrated Development Environment. MPLAB IDE is a User defined macros, conditional assembly and a variety of
FREE development environment that is common to all assembler directives make the MPLAB ASM30 a powerful
Microchip 8-, 16- and 32-bit products, making it possible code generation tool.
to use across many of your designs. When combined
with Microchip’s PICkit 3 In-Circuit Debugger, you can get MPLAB SIM Software Simulator
started with a complete development tool chain for as The MPLAB SIM Software Simulator is a full-featured, cycle
little as $44.95. accurate software simulator. In addition to simulating
All of Microchip’s MCU and DSC tools operate cohesively the CPU and the instruction set, it also supports key
under the MPLAB IDE umbrella. The powerful and peripherals.
easy-to-use MPLAB IDE has all of the advanced edit/build/
MATLAB/Simulink Device Blocks for dsPIC DSCs
debug features you would expect from a 32-bit debug
environment. MPLAB IDE integrates not only software, but The Microchip Device Blocksets for MATLAB Simulink
all of Microchip’s hardware tools and many third party tools. provide a set of interface-compliant configuration and
Key features of MPLAB IDE: run-time peripheral blocks for the dsPIC30 and dsPIC33
■ Project build and management DSCs. Complete applications can be created in the form
■ Flexible watch windows of a MATLAB/SIMULINK model using blocksets provided by
Microchip and Simulink. C code for the application will be
■ Mouse over variable inspection generated. These blocksets are compatible with the MATLAB
■ MATLAB Device Blocks for MPLAB IDE (for dsPIC30 plug-in available in MPLAB IDE.
and dsPIC33 DSCs)
■ Full feature code editor with color context
■ Source level debug in ASM and C
■ Searchable trace buffers
■ Version control integration
■ Real-time data monitoring
Library Features
Peripheral Driver Library This library provides over 300 C utility functions.
This extensive DSP building block library is fully optimized in assembly code for
DSP Algorithm Library
execution speed.
www.microchip.com/16bit 15
General Purpose Development and Evaluation Tools
PICkit™ 3 In-Circuit Debugger (PG164130) MPLAB® Starter Kits
The MPLAB PICkit 3 allows debugging and MPLAB Starter Kits are designed to demonstrate the key
programming of PIC® and dsPIC® Flash features of the device family they represent. In addition to
microcontrollers at a most affordable the external circuit needed to support and demonstrate the
price point using the powerful graphical device, the starter kits include the circuitry necessary to
user interface of the MPLAB Integrated debug and program the MCUs and DSCs. When combined
Development Environment (IDE). with the MPLAB® IDE and the MPLAB C Compiler for PIC24
MCUs or dsPIC DSCs (Evaluation Edition), the starter kit
MPLAB®ICD 3 In-Circuit Debugger/Programmer allows designers to gain quick knowledge and experience
(DV164035) with 16-bit MCU and DSC products.
The MPLAB ICD 3 In-Circuit MPLAB Starter Kit for dsPIC®Digital Signal
Debugger/Programmer is a Controllers (DM330011)
powerful, low-cost development
tool. Running under MPLAB IDE, The MPLAB starter kit for dsPIC
MPLAB ICD 3 can debug ASM or Digital Signal Controllers is an
C source code, watch and modify excellent low cost platform to
variables, single step and set evaluate or learn about the dsPIC
breakpoints. architecture. It is equipped with the
hardware and software necessary to
MPLAB REAL ICE™ code and debug simple applications and also demonstrates
In-Circuit Emulation System (DV244005) the audio capability of the dsPIC DSC.
The MPLAB REAL ICE In-Circuit MPLAB Starter Kit for PIC24H MCUs (DM240021)
Emulator is Microchip’s next-
This starter kit is a complete
generation emulation and
hardware and software kit for
debugging system. This system
exploring the power of PIC24H
provides a powerful in-circuit
family of MCUs. The on-board
emulation platform for easy and
PIC24HJ128GP504 controller is
rapid application development
equipped with necessary software
and debugging. The emulation is
to demonstrate accelerometer based sample program with
performed using special hardware logic on the target device
visual display and speech playback.
itself, eliminating the need for a separate emulator device.
MPLAB Starter Kit for PIC24F MCUs (DM240011)
MPLAB PM3 Device Programmer (DV007004)
This starter kit is based on the
MPLAB PM3 Device Programmer is PIC24FJ256GB110 family and is
a full-featured, production quality equipped with the hardware and
universal device programmer. Using software necessary to demonstrate
interchangeable socket modules, the the USB OTG peripheral and mTouch™
MPLAB PM3 supports virtually all Capacitive Touch Sense technology.
programmable devices from Microchip.
MPLAB PM3 has improved programming time for many
devices and offers a built-in interface for robust ICSP™.
www.microchip.com/16bit 17
Explorer 16 and PICtail™ Plus Daughter Board System
Explorer 16 Development Board Key Features:
(DM240001/DM240002) ■ Processor PIMs (Plug-In Modules)
This development board offers – DM240001: two interchangeable PIMs, one each for the
an economical way to evaluate PIC24FJ128GA010 and the dsPIC33FJ256GP710 DSC
Microchip’s 16- and 32-bit – DM240002: features a PIM for the PIC24FJ64GA004
microcontrollers, and dsPIC33F and dsPIC33FJ32GP204
DSC Families. The combination of ■ Alpha-numeric 16 x 2 LCD display
versatility and expandability and ■ Interfaces to MPLAB® ICD 3, MPLAB REAL ICE™ and
supporting PICtail Plus daughter RS-232
cards allows a designer to evaluate complex software ■ Includes Microchip’s TC1047A high accuracy, analog
libraries and hardware with minimal time and effort. output temperature sensor
■ Full documentation CD includes user’s guide, schematics
and PCB layout
■ Expansion connector to access full devices pin-out and
bread board prototyping area
■ PICtail Plus connector for expansion boards
www.microchip.com/16bit 19
Advanced Development Boards and Reference Designs
for Digital Power Applications
dsPICDEM™ SMPS Buck Development Board Digital Power Interleaved PFC Reference Design
(DM300023) High performance power supplies are
This development board implements used in a wide variety of applications
a simple DC/DC Switch Mode Power ranging from telecommunication
Supply (SMPS) using the dsPIC30F equipment, industrial equipment,
SMPS DSCs and is a good starting digital televisions, lighting, air
point for designers interested in these conditioners and other home
devices. appliances. They all need solutions
for power factor correction to improve overall efficiency,
AC/DC Reference Design improve the input power factor, voltage regulation and
This design is a completely digitally Total Harmonic Distortion (THD) of the input current. Digital
controlled full-featured 300W (5V/23A interleaved power factor correction methods provide many
and 3.3V/69A) power supply with benefits over older PFC techniques.
active PFC. The design offers a More information on this design can be found at:
universal AC input with active power www.microchip.com/ipfc
factor correction followed by two Digital Pure Sine Wave Uninterruptible Power Supply
stages of DC/DC power conversion. (UPS) Reference Design
The first stage converts the high-voltage DC link to a 12V
DC bus via a zero voltage transition full-bridge converter Microchip’s Digital Pure Sine Wave
incorporating secondary side synchronous rectification. The Uninterruptible Power Supply (UPS)
second stage consists of Single-phase and Multi-phase Reference Design is based on the
Buck Converters. dsPIC33F “GS” series of digital-power
Digital Signal Controllers (DSCs). This
More information on this design can be found at: reference design demonstrates how
www.microchip.com/acdcpower digital-power techniques when applied
Buck/Boost Converter PICtail™ Plus Card to UPS applications enable easy modifications through
(AC164133) software, the use of smaller magnetics, intelligent battery
A low-cost development platform for charging, higher efficiency, compact designs, reduction in
dsPIC33FGS SMPS devices, the buck/ audible and electrical noise via a purer sine-wave output,
boost converter PICtail Plus card USB communication and low-cost overall bill-of-materials.
has two buck stage outputs and one More information on this design can be found at:
boost stage output. The buck/boost www.microchip.com/offlineups
converter operates from an input
supply of +9V to + 15V DC. Various
performance measures like digital control loop performance
of power conversion, dynamic load performance, multiphase
buck and synchronous buck converter operation, parallel
operation of two buck converters and multiple output control
with a single dsPIC device can be evaluated for dsPIC33FGS
SMPS solutions. This board can be used with either the
Explorer 16 board or the 16-bit 28-pin starter board and the
dsPIC33F SMPS and digital power conversion devices.
www.microchip.com/16bit 21
Debug Application Software: The Easy Way
Data Monitor & Control Interface –
A Free MPLAB IDE Plug-in
The Data Monitor and Control Interface (DMCI) provides
dynamic access and control of software variables. It is
useful for tuning application parameters and viewing run-
time application data graphically. Software parameter
changes are updated during run-time.
Feature highlights include:
■ MPLAB Project Aware – The current device and software
variables are recognized automatically by DMCI
■ Compiler Independent
■ Debug Tool Independent
■ Provides Effortless Graphical Analysis of Application
Historical Data
Real-time Data Monitor (RTDM)
The Real-Time Data Monitor saves development and
testing time for embedded control applications. RTDM
allows users to make a change to a software parameter
and see the effect immediately without stopping the
application execution. A serial USB or UART cable supports
bi-directional data transfers between the host PC and the
MCU/DSC.
www.microchip.com/16bit 23
Connectivity Libraries
USB On-The-Go Library MiWi™ Wireless Networking Protocol Stacks
MiWi
Microchip’s USB support consist of a series of application The MiWi and MiWi P2P Wireless Networking Protocols are
notes with software that demonstrate and support the simple, easy to use protocols designed for low data rate,
development of embedded host, peripheral and On-The-Go short distance,low-cost networks. These protocols operate
functions. Specific driver classes include Human Interface on both the IEEE 802.15.4and Sub-GHz RF transceivers
Device (HID) class for user interfaces, and Mass Storage for Wireless Personal Area Networks (WPANs). The MiWi
Device (MSD) class for memory devices and a Microchip protocols provide an easy-to-use alternative for wireless
custom device class driver. USB application demos include communication. In particular, the MiWi protocols target
thumb drive bootloader, mass storage, USB charger and a peer-to-peer, star, or mesh networks with few hops between
printer host. PIC18, PIC24F and PIC32 MCUs are supported nodes. The MiWi Protocol stacks are applicable with
by Microchip’s USB Framework. All USB application notes Microchip’s MRF24J40 2.4 GHz Transceiver/modules for
are available free of charge at www.microchip.com/usb IEEE 802.15.4 compliant networks and Microchip’s Sub-GHz
transceivers.
Microchip’s Free TCP/IP Stack Software
(ENC28J60 and ENC624J600 Driver) IrDA® Standard Stack for Microchip
The Microchip TCP/IP Stack is a free suite of programs that 16-bit MCUs
provide services for standard TCP/IP-based applications The IrDA Standard is a highly popular, inexpensive method
(HTTP server, FTP server, etc.) or it can be used in a custom for providing wireless point-to-point communication. This free
TCP/IP-based application. The stack is portable across all stack coupled with Microchip’s 16-bit microcontrollers and
PIC18, PIC24, dsPIC30F and dsPIC33F products. It contains DSCs, with their built-in IrDA standard support, provide an
support for MPLAB C18, HI-TECH PIC18 and MPLAB C inexpensive wireless connection with plenty of computing
Compiler for PIC24 MCUs and dsPIC DSCs. power left for other tasks.
ZigBee® PRO Wireless Networking Protocol Stack V.22bis/V.22 Soft Modem Library
ZigBee PRO is a wireless network protocol specifically This library is available free of charge from the Microchip
designed for low data rate sensors and control Networks. web site. The V.22bis Soft Modem Library is a collection
There are a number of applications that can benefit from of algorithms for a software implementation of the ITU-T
the ZigBee protocol including building automation networks, compliant V.21/Bell 103, V.22 and V.22bis modems and
home security systems, industrial control networks, remote V.42 recommendations. The V.22bis library comes with full
metering and PC peripherals. ZigBee may be the appropriate source code and archives that contain object code modules
solution if your product must interact with other vendor’s required for linking with your application.
products on a wireless network. Microchip offers a ZigBee
PRO Compliant Platform, ZigBee RF4CE compliant Platform,
and ZigBee application profiles.
www.microchip.com/16bit 25
Power Conversion and Motor Control Application Software
AN
Application Type Application Solution Description
Number
Sensored BLDC Motor Control AN957 This application note describes a fully-tested 3-phase BLDC motor control algorithm
with 3 Hall-effect sensors.
Sensorless BLDC Motor Control Using the AN901 This application note describes how to provide sensorless BLDC motor control with
dsPIC30F of dsPIC33F the dsPIC DSC device.
Sensorless BLDC Control with Back-EMF Filtering AN1083 This application note describes how to apply a dsPIC DSC to control a sensorless
Brushless DC Motor BLDC motor, using the dsPIC30F6010A device on a dsPICDEM™ MC LV board
Control platform.
Sensorless BLDC Control with Back-EMF Filtering AN1160 This application note describes a sensorless Brushless Direct Current (BLDC) motor
Using a Majority Function control algorithm, implemented using the dsPIC® Digital Signal Controller (DSC).
The algorithm works by the use of a majority function for digitally filtering the Back-
Electromotive Force (BEMF). Each phase of the motor is filtered to determine when to
commutate the motor drive voltages.
Vector Control of an ACIM using Optical Encoder AN908 This application note describes a fully-tested vector, or field oriented, control algorithm
for a 3-phase ACIM. The motor currents, torque and velocity are regulated in control
loops.
Introduction to ACIM Control AN984 This application note describes volts per hertz control of an AC Induction Motor.
AC Induction Motor Sensorless Field Oriented Control (FOC) of an AC AN1162 This application note presents a solution for sensorless Field Oriented Control (FOC)
Control Induction Motor (ACIM) of induction motors using a dsPIC® Digital Signal Controller (DSC). The benefits of
field oriented control can be directly realized as lower energy consumption, higher
efficiency, lower operating costs and reduced cost of drive components.
Sensorless Field Oriented Control (FOC) of an AC AN1206 This application note presents one solution for sensorless Field Oriented Control
Induction Motor (ACIM) Using Field Weakening (FOC) with Field Weakening (FW) of induction motors using a dsPIC Digital Signal
Controller (DSC).
Sinusoidal PMSM Motor Control AN1017 This application note provides a fully working and highly flexible solution for using
the dsPIC DSC to control a permanent magnet synchronous motor using three hall
sensors with sinusoidal voltages.
Sensorless Field-Oriented Control for PMSM AN1078 This application note describes how to apply a dsPIC DSC to control a permanent
Motors with field weaking using Slide Mode magnet synchronous motor using the field oriented control algorithm. Shunt resistors
Controller are used to estimate rotor position.
Sensorless Field Oriented Control (FOC) of an AC AN1206 This application note presents one solution for sensorless Field Oriented Control
Induction Motor (ACIM) Using Field Weakening (FOC) with Field Weakening (FW) of induction motors using a dsPIC Digital Signal
Permanent Magnet Controller (DSC).
Syncronous Motor Sensorless Field Oriented Control (FOC) for a AN1292
Control Permanent Magnet Synchronous Motor (PMSM) This application note desribes the sensorless FOC algorithm for PMSM motor using a
Using a PLL Estimator and Field Weakening (FW) Phase Locked Loop (PLL) position and speed estimators.
Integrated Power Factor Correction (PFC) and AN1208 This application note describes the process of integrating two complex applications:
Sensorless Field Oriented Control (FOC) System PFC and Sensorless FOC. These applications are implemented on a Permanent
Magnet Synchronous Motor (PMSM). In addition, this application note also describes
the integration of the algorithms, lists the necessary hardware requirements, and
provides the guidelines to optimize the development procedure.
Single-Shunt Three-Phase Current Reconstruction AN1299 This dsPIC33F application note describes a motor control technique where a single-
Algorithm for Sensorless FOC of a PMSM shunt resistor circuit is used to measure the motor phase current.
Stepper Motor Stepper Motor Control with dsPIC® DSCs AN1307 This application note describes how to drive a stepper motor with a dsPIC33F motor
Control control family DSC.
Switch Mode Power Supply (SMPS) Topologies AN1114 This application note explains the basics of different types of SMPS topologies and
(Part I) their applications. The pros and cons of different SMPS topologies are also explained
to guide the user to select an appropriate topology for a given application, while
providing useful information regarding selection of components for a given SMPS
design.
Switch Mode Power Supply (SMPS) Topologies AN1207 This application note is the second of a two-part series on Switch Mode Power
SMPS/Digital Power (Part II) Supply (SMPS) topologies. This series expands on the previous material in Part I, and
presents the basic tools needed to design a power converter.
Offline UPS Reference Design AN1279 The application note describes the design of an Offline Uninterruptible Power Supply
(UPS) using a Switch Mode Power Supply (SMPS) dsPIC® Digital Signal Controller (DSC).
Digital Power Interleaved PFC Reference Design AN1278 The application note describes the design of an Digital Power Interleaved PFC (IPFC)
using a Switch Mode Power Supply (SMPS) dsPIC® Digital Signal Controller (DSC).
Class B Safety Software Library for PIC MCUs and AN1229 This application note describes the Class B Safety Software Library routines that
dsPIC DSCs detect the occurrence of Faults in a single channel CPU. These routines have been
Class B Software developed in accordance with the IEC 60730 standard to support the Class B
certification process.
www.microchip.com/16bit 27
Software Development Tools and Operating Systems
Development Part Devices Supported
Product Name Description List Price(1)
Tool Number
PIC24F PIC24H dsPIC30F dsPIC33F
Integrated MPLAB® IDE* Integrated Development Environment SW007002 Free
Development
Environment Green Hills Multi Integrated Development Environment – Contact GHS
MPLAB® C Compiler for
PIC24 MCUs and dsPIC DSCs ANSI C compiler, assembler, linker and librarian SW006012 $895
MPLAB® C Compiler for ANSI C compiler, assembler, linker and librarian SW006014 $495 – –
PIC24 MCUs
MPLAB® C Compiler for ANSI C compiler, assembler, linker and librarian SW006013 $495 – –
dsPIC DSCs
C Compilers ISO/ANSI C and Embedded C++ compiler in a
Embedded Workbench professional, extensible IDE, (Windows® NT/2000/ EWdsPIC 1 Contact IAR
for dsPIC30F
Windows XP®) special DSP support included
HI-TECH C® Compiler for ANSI C Compiler for dsPIC® DSCs and PIC24 SW500009 $1195
PIC24 MCUs and dsPIC DSCs MCUs, integrates with MPLAB® IDE
CCS PCD C-Compiler for Command-line C Compiler for Microchip PIC24 MCU SW500021 $250
PIC24 MCUs and dsPIC DSCs and dsPIC DSC families, integrates with MPLAB® IDE
AVIX is an RTOS specifically developed for Microchip’s
AVIX-RT AVIX – Contact AVIX
PIC24 MCUs and dsPIC DSCs
Preemptive Real-time Operating System (RTOS) for
CMX-Tiny+™ for dsPIC® DSC SW300032 $3000
dsPIC30F
Fully preemptive Real-time Operating System (RTOS)
CMX-RTX™ for dsPIC® DSC SW300031 $4000
for dsPIC30F
CMX Scheduler™ Multi-tasking, preemptive scheduler for dsPIC30F SW300030 Free
ThreadX MCU Edition RTOS is a fully preemptive,
deterministic, real-time operating system designed SW500130 $5990 – –
Express Logic for Microchip's PIC24 MCUs.
Thread X MCU ThreadX MCU Edition RTOS is a fully preemptive,
deterministic, real-time operating system designed SW500131 $5990 – –
for Microchip's dsPIC DSCs
Operating Contact
FreeRTOS.org™ Portable, open source, mini real time kernel –
Systems freeRTOS.org™
A unique and powerful RTOS designed exclusively for Contact Lassar
Lassar Systems AVA –
Microchip's PIC24 MCUs and dsPIC DSCs Systems
Portable, scalable, preemptive real-time, multitasking
Micriμm μC/OS-II – Contact Micrium
kernel
osCAN for dsPIC® DSC OSEK/VDX v2.2 – Contact Vector –
Salvo RTOS is a full-featured multitasking
Pumpkin's Salvo RTOS priority-based event-driven RTOS for all Microchip – Contact Pumpkin
microcontrollers
DSPnano POSIX RTOS is a tiny, fully preemptive,
deterministic, real-time operating system designed Contact
RoweBots DSPnano –
for Microchip's PIC24 MCUs and dsPIC30/33 RoweBots
processors
Real-time operating system for embedded
SEGGER embOS – Contact SEGGER
applications
dsPICworks™ Data analysis and DSP software SW300023 Free
Full featured graphical IIR and FIR filter design
DSP Digital Filter Design SW300001 $249 – –
package for dsPIC30F
Graphical IIR and FIR filter design package for
Digital Filter Design Lite SW300001-LT $29 – –
dsPIC30F
(1) List price may change without notice.
*Includes MPLAB ASM30, MPLAB SIM, MPLAB VDI.
www.microchip.com/16bit 29
Plug-in Modules Supporting Explorer 16 Development and
Other Development Boards
A Plug-in Module (PIM) is a daughter board with a PIC® MCU or dsPIC® DSC soldered on top and header socket strips on the
bottom. This method allows for easy swapping of devices onto the various development boards, without having to unsolder and
resolder parts.
Part
Device Family Description List Price(1)
Number
PC Board with 100-pin PIC24FJ128GA010 MCU sample; Use with the DM240001/DM240002 Development Board. MA240011 $25
PC Board with 44-pin PIC24FJ64GA004 MCU sample; Use with the DM240001/DM240002 Development Board. MA240013 $25
PC Board with 100-pin PIC24FJ256GB110 MCU sample; Use with the DM240001/DM240002 Development Board. MA240014 $25
PC Board with100-pin PIC24FJ256GA110 MCU sample; Use with the DM240001/DM240002 Development Board. MA240015 $25
PIC24F
PC Board with 28-pin PIC24F16KA102 MCU sample; Use with the DM240001/DM240002 Development Board. MA240017 $25
PC Board with 64-pin PIC24FJ64GB004 MCU sample; Use with the DM240001/DM240002 Development Board. MA240019 $25
PC Board with 64-pin PIC24FJ64GA104 MCU sample; Use with the DM240001/DM240002 Development Board. MA240020 $25
PC Board with 28-pin PIC24F16KA102 MCU Sample; use with DM240001/DM240002 Development Board. MA240017 $25
PC Board with 100-pin PIC24HJ256GP610 MCU sample; Use with the DM240001/DM240002 Development Board. MA240012 $25
PIC24H
PC Board with 44-pin PIC24HJ128GP504 MCU sample; Use with the DM240001/DM240002 Development Board. MA240016 $25
PC Board 100P to 100P TQFP with 100-pin dsPIC33FJ256MC710 DSC sample;
MA330013 $25
Use with the DM240001/DM240002 Development Board.
PC Board 28P QFN to 100P with 28-pin dsPIC33FJ12MC202-I/ML DSC sample; MA330014 $25
Use with the DM240001/DM240002 Development Board.
dsPIC33F MC Family
PC Board 44P QFN to 100P with 44-pin dsPIC33FJ32MC204-I/ML DSC sample; Use with the DM240001/ MA330017 $25
DM240002 Development Board or DM330021(MCLV)/DM330022 (MCSM)/DM330023(MCHV) Development Boards.
PC Board 44P QFN to 100P with 44-pin dsPIC33FJ128MC804-I/ML DSC sample; MA330018 $25
Use with the DM240001/DM240002 Development Board.
PC Board 100-pin to 100-pin TQFP with 100-pin dsPIC33FJ256GP710 DSC sample; MA330011 $25
Use with the DM240001/DM240002 Development Board.
PC Board 100-pin to 80-pin TQFP with 100-pin dsPIC33FJ256GP710 DSC sample; MA330012 $25
Use with the DM240001/DM240002 Development Board or DM300019 Development Board.
PC Board 28P QFN to 100P with 28-pin dsPIC33FJ12GP202-I/ML DSC sample;
dsPIC33F GP Family MA330015 $25
Use with the DM240001/DM240002 Development Board.
PC Board 44P QFN to 100P with 44-pin dsPIC33FJ32GP204-I/ML DSC sample; MA330016 $25
Use with the DM240001/DM240002 Development Board.
PC Board 44P QFN to 100P with 44-pin dsPIC33FJ128GP804-I/ML DSC sample; MA330019 $25
Use with the DM240001/DM240002 Development Board.
PC Board 44P QFN to 100P with 44-pin dsPIC33FJ16GS504-I/ML DSC sample;
dsPIC33F GS Family MA330020 $25
Use with the DM240001/DM240002 Development Board.
PC Board with 80-pin dsPIC30F6014A general purpose DSC sample; MA300014 $25
Use with DM300019 and DM300024 Development Boards.
dsPIC30F Family PC Board with 80-pin dsPIC30F6010A motor control DSC sample; MA300015 $25
Use with DM300019 and DM300020 Development Boards.
PC Board with 44-pin SMPS dsPIC30F2023 sample; Use with DM300019 Development Board. MA300016 $25
(1) List price may change without notice.
Microchip Advanced Part Selector 16-bit MCUs and DSCs Home Page
www.microchip.com/maps www.microchip.com/16bit
Advanced Motor Control Solutions Digital Power Solutions Speech and Audio Solutions
www.microchip.com/dscmotor www.microchip.com/smps www.microchip.com/speech
www.microchip.com/16bit 31
Support Training
Microchip is committed to supporting its customers If additional training interests you, then Microchip can
in developing products faster and more efficiently. We help. We continue to expand our technical training options,
maintain a worldwide network of field applications offering a growing list of courses and in-depth curriculum
engineers and technical support ready to provide product locally, as well as significant online resources – whenever
and system assistance. In addition, the following service you want to use them.
areas are available at www.microchip.com: ■ Regional Training Centers: www.microchip.com/rtc
■ Support link provides a way to get questions ■ MASTERs Conferences: www.microchip.com/masters
answered fast: http://support.microchip.com ■ Worldwide Seminars: www.microchip.com/seminars
■ Sample link offers evaluation samples of any ■ eLearning: www.microchip.com/webseminars
Microchip device: http://sample.microchip.com
■ Resources from our Distribution and Third Party Partners
■ Forum link provides access to knowledge base and
www.microchip.com/training
peer help: http://forum.microchip.com
■ Buy link provides locations of Microchip Sales Channel
Partners: www.microchip.com/sales
The Microchip name and logo, the Microchip logo, dsPIC, HI-TECH C, MPLAB and PIC are registered trademarks of Microchip
Technology Incorporated in the U.S.A. and other countries. FilterLab is a registered trademark of Microchip Technology
www.microchip.com
Incorporated in the U.S.A. dsPICDEM, dsPICDEM.net, dsPICworks, In-Circuit Serial Programming, ICSP, MiWi, mTouch, PICDEM, Microchip Technology Inc.
PICDEM.net, PICtail, REAL ICE are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. All other
trademarks mentioned herein are property of their respective companies. © 2009, Microchip Technology Incorporated,
2355 W. Chandler Blvd.
All Rights Reserved. Printed in the U.S.A. 12/09 Chandler, AZ 85224-6199
DS01032G
*DS01032G*