Note the following details of the code protection feature on Microchip devices:
YSTEM
CERTIFIED BY DNV
== ISO/TS 16949==
•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 t he lik e is provided only for your convenience
and may be su perseded by upda t es . It is y our responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES 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
devices in life supp ort and/or safety ap plications is entir ely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless M icrochip from any and all dama ges, claims,
suits, or expenses re sulting from such use. No licens es are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
K
logo, rfPIC and UNI/O are registered trademarks of
Microchip Technology I ncorporat ed in the U.S.A. and other
countries.
FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
MXDEV, MXLAB, SEEVAL 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, chipKIT,
chipKIT logo, CodeGuard, dsPICDEM, dsPICDEM.net,
dsPICworks, dsSPEAK, ECAN, ECONOMONITOR,
FanSense, HI-TIDE, In-Circuit Serial Programming, ICSP,
Mindi, MiWi, MPASM, MPLAB Certified logo, MPLIB,
MPLINK, mTouch, Omniscient Code Generation, PICC,
PICC-18, PICDEM, PICDEM.net, PICkit, PICtail, REAL ICE,
rfLAB, Select Mode, Total Endurance, TSHARC,
UniWinDriver, WiperLock and ZENA are trademarks of
Microchip Technology I ncorporat ed 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.
Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC
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.
®
MCUs and dsPIC® DSCs, KEELOQ
®
code hopping
2012 Microchip Technology Inc.DS52078A-page 3
Digital Power Starter Kit User’s Guide
NOTES:
DS52078A-page 4 2012 Microchip Technology Inc.
DIGIT AL POWER STARTER KIT
USER’S GUIDE
Safety Notice
The following safety notices and operating instructions should be adhered to avoid a
safety hazard. If in any doubt, consult your supplier.
DANGER – The Digital Power Starter Kit contains two resistive loads that are intended
to dissipate power in the form of heat. Depending on the output power level, it is possible for the resistive load to become hot to the touch or to any surface in direct contact
with the board.
WARNING – The Digital Power St arter Kit should only be installed, operated, serviced
or modified by qualified personnel. Any service or modification performed by the user
is done at the user’s own risk and voids all warranties.
CAUTION – Particular care should be taken during code development as unexpected
voltage regulation behavior is possible. Ensure that the power supply connected to the
Digital Power Starter Kit is properly protected against overcurrent event caused by
code development.
General Notices:
• The Digital Power Starter Kit is intended for evaluation and development purposes
and should only be operated in a normal laboratory environment as defined by
IEC 61010-1:2001.
• Clean with a dry cloth only.
• Operate flat on a bench away from any surface items that might become in contact with the board. Do not move during operation and avoid direct contact with
the bottom layer of the board.
• The Digital Power Starter Kit should not be connected or operated if there is any
apparent damage to the unit.
3.1 Program De mo n s tration .............. ................................................................. 27
3.2 Code Demo n s tr a tio n ............. .......................... .. ... ........................................ 29
3.3 Other Code Examples ......................... .. .. ............................. .. ......................29
Appendix A. Board Layout and Schematics..............................................................31
Worldwide Sales and Service ....................................................................................38
2012 Microchip Technology Inc.DS52078A-page 7
Digital Power Starter Kit User’s Guide
NOTES:
DS52078A-page 8 2012 Microchip Technology Inc.
DIGIT AL POWER STARTER KIT
USER’S GUIDE
Preface
NOTICE TO CUSTOMERS
All documentation becomes dated, and this manual is no exception. Microchip tools and
documentation are constantly evolving to meet customer needs, so some actual dialogs and/
or tool descriptions may differ from those in this document. Please refer to our web site
(www.microchip.com) to obtain the latest documentation available.
Documents are identified with a “DS” number. This number is located on the bottom of each
page, in front of the p age number. The numbering convention for the DS number is
“DSXXXXXA”, where “XXXXX” is the document number and “A” is the revision level of the
document.
For the most up-to-date information on development tools, see the MPLAB
Select the Help menu, and then Topics to open a list of available on-line help files.
INTRODUCTION
®
IDE on-line help.
This preface contains general information that will be useful to know before using the
Digital Power Starter Kit. Topics discussed in this preface include:
• Document Layout
• Conventions Used in this Guide
• Warranty Registration
• Recommended Reading
• The Microchip Web Site
• Development Systems Customer Change Notification Service
• Customer Support
• Document Revision History
DOCUMENT LAYOUT
This user’s guide provides an overview of the Digital Power Starter Kit. The document
is organized as follows:
• Chapter 1. “Introduction” – This chapter introduces the Digital Power Starter Kit
and provides a brief overview of its features.
• Chapter 2. “Hardwa re ” – This chapter describes the board layout and the main
components of the Digital Power Starter Kit.
• Chapter 3. “Demonstration Program Operation” – This chapter describes the
demonstration software that is preloaded on the device that accompanies the
Digital Power Starter Kit.
• Appendix A. “Board Layout and Schematics” – This appendix provides
diagrams of the hardware layout, as well as schematic diagrams for the Digital
Power Starter Kit.
2012 Microchip Technology Inc.DS52078A-page 9
Digital Power Starter Kit User’s Guide
CONVENTIONS USED IN THIS GUIDE
This manual uses the following docum entat io n conven tion s:
DOCUMENTATION CONVENTIONS
DescriptionRepresentsExamples
Arial font:
Italic chara c tersReferenced booksMPLAB
Emphasized text...is the only compiler...
Initial capsA windowthe Output window
A dialogthe Settings dialog
A menu selectionselect Enable Programmer
QuotesA field name in a window or
dialog
Underlined, italic text with
right angle bracket
Bold charactersA dialog buttonClick OK
N‘RnnnnA number in verilog format,
Text in angle brac kets < >A key on the keyboardPress <Enter>, <F1>
Courier New font:
Plain Courier NewSample source code#define START
Italic Courier NewA variable argumentfile.o, where file can be
Choice of mut ually exclus ive
arguments; an OR selection
Represents code supplied by
user
®
IDE User’s Guide
“Save project before build”
4‘b0010, 2‘hF1
any valid filename
[options]
errorlevel {0|1}
var_name...]
void main (void)
{ ...
}
WARRANTY REGISTRATION
Please complete the enclosed Warranty Registration Card and mail it promptly.
Sending in the Warranty Registration Card entitles users to receive new product
updates. Interim software releases are available at the Microchip web site.
DS52078A-page 10 2012 Microchip Technology Inc.
RECOMMENDED READING
This user’s guide describes how to use the Digital Power Starter Kit. The device-specific
data sheets contain current information on programming the specific microcontroller or
digital signal controller devices. The following Microchip documents are available and
recommended as supplemental reference resources:
MPLAB® C Compiler for PIC24 MCUs and dsPIC® DSCs User’s Guide
(DS51284)
This comprehensive guide describes the usage, operation and features of Microchip’s
MPLAB C compiler (formerly MPLAB C30) for use with 16-bit devices.
MPLAB® IDE User’s Guide (DS51519)
This user’s guide describes how to set up the MPLAB IDE software and use it to create
projects and program devices.
MPLAB X IDE User’s Guide (DS52027)
This document describes how to set up the MPLAB X IDE software and use it to create
projects and program devices.
Readme Files
Preface
For the latest information on using the Digital Power Starter Kit Board, read the
Readme.txt text file in the Readme subdirectory of the MPLAB IDE installation directory
from the Digital Power Start er Kit co de ex am pl e. T he Read me fil e co ntains update
information and kn own issu es t ha t may no t be inclu de d in th is u ser’s g uide.
dsPIC33FJ06GS001/101A/102A/202A and dsPIC33FJ09GS302 Dat a Sheet
(DS75018)
Refer to this document for detailed information on this family of dsPIC33F SMPS Digital
Signal Controllers (D SCs). Reference information found in this data sheet includes:
• Device memory maps
• Device pinout and packaging details
• Device electrical speci fic ati on s
• List of peripherals included on the devices
dsPIC33F/PIC24H Family Reference Manual Sections
Family Reference Manual (FRM) sections are available, which explain the operation of
the dsPIC
specifics of each device family are discussed in the individual family’s device
data sheet.
®
DSC and PIC24H MCU family architecture and peripheral modules. The
dsPIC33F Flash Programming Specification for Devices with Volatile
Configuration Bits (DS70659)
Refer to this document for information on instruction sets and firmware development.
Microchip SMPS Resources
• AN1114 “Switch Mode Power Suppl y (SMPS) Topologies (Part I)” (DS01114)
• TB062 “Frequently Asked Questions (FAQs) About dsPIC
(DS93062)
To obtain any of these documents, visit the Microchip web site at www.microchip.com.
2012 Microchip Technology Inc.DS52078A-page 11
®
DSC SMPS Devices”
Digital Power Starter Kit User’s Guide
THE MICROCHI P WEB SITE
Microchip provides online support via our web site at www.microchip.com. This web
site is used as a means to make files and information easily available to customers.
Accessible by using your favorite Internet browser, the web site contains the following
information:
• Product Support – Data sheets and errata, application notes and sample
programs, design resources, user’s guides and hardware support documents,
latest software releases and archived software
• General Technical Support – Frequently Asked Questions (FAQs), technical
support requests, online discussion groups, Microchip consultant program
member listin g
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listing of seminars and events, listings of Microchip sales offices,
distributors and factory representatives
DEVELOPMENT SYSTEMS CUSTOMER CHANGE NOTIFICATION SERVICE
Microchip’s customer notification service helps keep customers current on Microchip
products. Subscribers will receive e-mail notification whenever there are changes,
updates, revisions or errata related to a specified product family or development tool of
interest.
To register, access the Microchip web site at www.microchip.com, click on Customer
Change Notification and follow the registration instructions.
The Development Systems product group categories are:
• Compilers – The latest information on Microchip C compilers and other language
tools. These include the MPLAB
assemblers; MPLINK™ and MPLAB 16-bit object linkers; and MPLIB™ and
MPLAB 16-bit object librarians.
• Emulators – The latest information on the Microchip MPLAB REAL ICE™
in-circuit emulator.
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debugger, MPLAB ICD 3.
• MPLAB IDE – The latest information on Microchip MPLAB IDE, the Windows
Integrated Development Environment for development systems tools. This list is
focused on the MPLAB IDE, MPLAB SIM simulator, MPLAB IDE Project Manager
and general editing and debugging features.
• Programmers – The latest information on Microchip programmers. These include
the MPLAB PM3 device programmer and the PICkit™ 3 development
programmers.
®
C compiler; MPASM™ and MPLAB 16-bit
®
DS52078A-page 12 2012 Microchip Technology Inc.
CUSTOMER SUPPORT
Users of Microchip products can receive assistance through several channels:
• Distributor or Representative
• Local Sales Office
• Field Application Engineer (FAE)
• Technical Support
Customers should contact their distributor, representative or field application engineer
(FAE) for support. Local sales offices are also available to help customers. A listing of
sales offices and locations is included in the back of this document.
Technical support is available through the web site at: http://support.microchip.com
DOCUMENT REVISION HISTORY
Revision A (June 2012)
This is the initial released version of the document.
Preface
2012 Microchip Technology Inc.DS52078A-page 13
Digital Power Starter Kit User’s Guide
NOTES:
DS52078A-page 14 2012 Microchip Technology Inc.
This chapter introduces the Digital Power Starter Kit and provides an overview of its
features. The topics covered include:
• Kit Contents
• Starter Kit Functionality and Features
• Electrical Specifications
1.1OVERVIEW
Modern power supplies are becoming smaller, more efficient, more flexible and less
expensive. These desirable enhancements have come about as Digital Signal Controllers (DSCs) are incorporated into Switch Mode Power Supply (SMPS) designs. The
board provided in the kit is intended to introduce and demonstrate the capabilities and
features of Microchip SMPS families of devices. The Digital Power Starter Kit features
an on-board programmer/debugger, which eliminates the need for any additional
programmer or hardware interface.
The software for the demonstration application that is preprogrammed into the onboard dsPIC33F Digital Signal Controller (DSC) is available for download from the
Microchip web site at: http://www.microchip.com.
DIGIT AL POWER STARTER KIT
USER’S GUIDE
Chapter 1. Introduction
Note:Refer to the Readme file provided with the Digital Power Starter Kit demon-
1.2KIT CONTENTS
The Digital Power Starter Kit contains the following:
• Digital Power Starter Kit Board
• 9V Power Supply
•USB Cable
Note:If you are missing any part of the kit, contact a Microchip sales office for
stration software for instructions on how to run the demonstration application.
Refer to the Information Sheet that is provided with the starter kit package for
additional resources and instructions on how to use the starter kit for
programming and debugging appli ca tio n software .
assistance. A list of worldwide Microchip offices for sales and service is
provided at the end of this document.
2012 Microchip Technology Inc.DS52078A-page 15
Digital Power Starter Kit User’s Guide
VDD
VIN
5k
5k
Resistive
Load
VFB Buck
VIN
PWM1L
PWM1H
PWM2H
Current Sense
Buck
VFB Buck
SW1
Resistive
Load
VFB Boost
PWM2L
VIN
PWM4H
AN0
AN1
AN2
AN3
AN4
AN6
Current Sense
Boost
Vin_FB
RB8
AN5
Temperature
Sensor
AN7
On-Board
Debugger
Voltage/Current/
Temperature/Fault
LCD
USB
PC
dsPIC33FJ09GS302
VFB Boost
1.3STARTER KIT FUNCTIONALITY AND FEATURES
The Digital Power Starter Kit is a power supply board that consists of one independent
DC/DC synchronous Buck converter and one independent DC/DC Boost converter.
Figure 1-1 illustrates a high-level block diagram of the Starter Kit.
The Digital Power Starter Kit provides closed-loop Proportional-Integral-Derivative
(PID) control in the software to maintain the desired output voltage level. The dsPIC
DSC device provides the necessary memory and peripherals for A/D conversion, PWM
generation, analog comparison and general purpose I/O, preventing the need to
perform these functions in external circuitry.
SMPS dsPIC DSC devices are specifically designed to provide low-cost and efficient
control for a wide range of power supply topologies. The specialized peripherals facilitate
closed-loop feedback control of switch mode power supplies, providing communication
for remote monit o rin g an d supe r vis ory co nt ro l.
The dsPIC33F SMPS family of devices provide the following features:
• Integrated program and data memory on a single chip
• Ultra-fast interrupt response time with interrupt priority logic
• Up to 2 Msps, on-chip ADC with Successive Approximation Register (SAR), an d
three Sample-and-Hold (S&H) circuits.
• Three independent, high-resolution PWM generators, specially designed to support
different power topologies
• Two high-speed analog comparators for control loop implementation and system
protection
• On-chip system communications (I
• On-chip fast RC oscillator for lower system cost
• High-current sink/source for PWM pins (16 mA/16 mA)
• CPU performance (40 MIPS)
• Extensive power-saving features
2
C™/SPI/UART)
®
FIGURE 1-1:DIGITAL POWER STARTER KIT SYSTEM DIAGRAM
DS52078A-page 16 2012 Microchip Technology Inc.
Introduction
1.3.1Power Stages
• One synchronous Buck converter power stage
• One Boost converter pow er stage
• Voltage/current measurement and display for digital controlled Buck converter
• Voltage/current measurement and display for digital controlled Boost converter
• 5 kOhm Potentiometers (P1 and P2), used to adjust the duty cycle of the
load resistors
• On-board temperature sensor, located near the resistive load; this enables the user
to program a temperature protection limit
• Input voltage sense, used to detect under/overvoltage conditions
• Connector for PICkit Serial Analyzer (J3)
• LED power-on indicator (D1)
• LED output voltage indicators (D5 and D12)
• LCD used to display voltage, current, temperature and Fault conditions
1.3.3Start er Kit Power
• +9V power connector (J2) supplies power to the Digital Power Starter Kit
• USB connection jack (J5) supplies power/connection to the on-board debugger
• Buck and Boost converters are both operated in Voltage mode (default), but can
also be reprogrammed to operate in Average Current or Peak Current Control mode
Output Voltage (default programmed)—15—V
Output Voltage (programmable range)11—18V
Output Voltage Ripple—100—mV (pk-pk)
Output Current——0.4A
Load Regulation:
V
OUT = 15V, IOUT = 0.02-0.3A, VIN = 9V
Switching Frequency—350—kHz
Output Power——5W
—50—mV/A
DS52078A-page 18 2012 Microchip Technology Inc.
This chapter describes the hardware components of the Digital Power Starter Kit.
1
2
4
5
3
6
7
8
Topics covered include:
• Top Assembly
• Signal Configuration
• Application Components
• Board Connectors
• Indicators and Human Interfaces
• Test Points
• Power Rating of Converter Stages
• Programmer/Debugger
2.1TOP ASSEMBLY
The top and bottom assembly of the board is shown in Figure 2-1 and Figure 2-2.
Table 2-1 and Table 2-2 provide a description of the components.
DIGIT AL POWER STARTER KIT
USER’S GUIDE
Chapter 2. Hardware
FIGURE 2-1:DIGITAL POWER STARTER KIT (TOP VIEW)
2012 Microchip Technology Inc.DS52078A-page 19
Digital Power Starter Kit User’s Guide
1
2
3
4
5
6
TABLE 2-1:DIGITAL POWER STARTER KIT COMPONENTS (TOP)
NumberDescription
1dsPIC33FJ09GS302 Digital Signal Controller (DSC) (U3)
29V Power Connector (J2)
32x16 Character LCD
4Boost Converter Stage
5Buck Converter Stage
6Push Button (SW1)
7Potentiometers (P1 and P2)
8Voltage Regulator (3.3V)
FIGURE 2-2:DIGITAL POWER STARTER KIT (BOTTOM VIEW)
TABLE 2-2:DIGITAL POWER STARTER KIT COMPONENTS (BOTTOM)
NumberDescription
1Voltage Regulator (5V)
2On-Board Programmer/Debugger
3Programmer/Debugger USB Connector (J5)
4Buck Converter Resistive Load
5Boost Converter Resistive Load
6On-Board Temperature Sensor
DS52078A-page 20 2012 Microchip Technology Inc.
2.2SIGNAL CONFIGURATION
Table 2-3 provides a full list of the dsPIC33FJ09GS302 DSC connections and a brief
functional description of the pins used in the Digital Power Starter Kit.
TABLE 2-3:dsPIC33FJ09GS302 CONFIGURATION DETAILS
Digital Power Starter Kit
Signal Label
Pin
#
dsPIC33FJ09GS302
Device Pin Name
Hardware
Description/Function
ICSP_MCLR_VPP_Target1MCLR
CS_BUCK2AN0/CMP1A/RA0Analog – Buck Current Sense
VFB_BUCK3AN1/CMP1B/RA1Analog – Buck Vo ltage Feedback
CS_BOOST4AN2/CMP1C/CMP2A/RA2Analog – Boost Current Sense
VFB_BOOST5AN3/CMP1D/CMP2B/RP0/CN0/RB0Analog – Boost Voltage Feedback
VIN_FB6AN4/ISRC4/CMP2C/RP9/CN9/RB9Analog – Input Voltage Feedback
EXT POT27AN5/ISRC3/CMP2D/RP10/CN10/RB10Analog – 5k Potentiometer
—8VSSGround
EXT POT19OSC1/CLKI/AN6/ISRC2/RP1/CN1/RB1Analog – 5k Potentiometer
Temp_Sensor10 OSC2/CLKO/AN7/ISRC1//RP2/CN2/RB2 Analog – Temperature Sensor
PGD211 PGED2/DACOUT/INT0/RP3/CN3/RB3Data I/O pin for programming/
PGC212 PGEC2/EXTREF/RP4/CN4/RB4Clock Input pin for programming/
—13V
SW14 PGED3/RP8/CN8/RB8SW1 Push Button
LCD_Reset15
LCD_RSelect16 TDO/RP5/CN5/RB5LCD Register Select Signal
SCL/TX17 PGED1/TDI/SCL1/RP6/CN6/RB6LCD Serial Clock
SDA/RX18
PWM1H25 PWM1H/RA4Buck High Side MOSFET PWM Signal
PWM1L26 PWM1L/RA3Buck Low Side MOSFET PWM Signal
—27AV
—28AV
DDPositive Supply for peripheral logic and
PGEC3/RP15/CN15/RB15LCD Active-Low Reset Signal
PGEC1/SDA1/RP7/CN7/RB7LCD_Data
TCK/RP12/CN12/RB12LCD Active-Low Chip Select Signal
SSGround Referen ce for analog modul es
DDPositive Supply for a nalog modules ; this
Master Clear (Reset) Input
debugging Communication Channel 2
debugging Communication Channel 2
I/O pins
Signal
pin must be c onnected at all times
2012 Microchip Technology Inc.DS52078A-page 21
Digital Power Starter Kit User’s Guide
2.3APPLICATION COMPONENTS
Table 2-4 describes the application components that are available on the Digital Power
Starter Kit (see Figure 2-1 and Figure 2-2 for component locations).
TABLE 2-4:APPLICATION COMPONENTS
ComponentLabelItemDescription
Top Assembly Components (see Figure 2-1)
dsPIC33FJ09GS302 DSCU31Provides the processing power for the demonstration applica-
tions and application development on the starter kit. The MCU
features 9 Kbytes of Flash program memory and 1 Kbyte of
RAM. The demonstration application uses the MCU device’s
on-chip FRC oscillator with PLL as a clock source.
9V Power ConnectorJ22A 9V power supply powers the dsPIC33FJ09GS302 DSC and
supplies the power to both of the DC/DC converters on the
starter kit. To operate the starter kit, connect the power supply
provided with the starter kit to J2.
2x16 Character LCDLCD13User-programmable 2x16 character LCD.
Boost Converter StageN/A45W step-up converter (Boost).
Buck Converter StageN/A55W step-down converter (Buck).
PotentiometerP1 & P27T wo Potentiometers (POTs). Each POT is connected to an analog
input pin of the DSC, providing an analog reference voltage from
3.3V to ground (0V).
Voltage RegulatorU28Voltage regulator (3.3V) provides power to the
J5Mini-USB connector provides bidirectional communication between the host
PC and the on-board programmer/debugger.
2.5INDICATORS AND HUMAN INTERFACES
Table 2-6 describes the user interfaces available on the starter kit.
TABLE 2-6:INDICATORS AND HUMAN INTERFACES
LabelHardware Element Description
SW1Push button switch, which is connected to the RB8 port pin. When momentarily
pressed, the LCD measurement and board status information is changed.
D1Power-on status LED, which indicates that the Digita l Power Starter Kit is
powered by the 9V supply.
D14USB bus indic ator , which in dicates that the de vice is connected to the USB bu s
and the programmer/debugger is powered.
P1 and P2Two variable resis tors (pote ntiometers). Each pote ntiometer is connected to an
analog input pin, providing an analog reference voltage from 3.3V to ground
(0V).
D12Buck converter power-on status LED, which indicates when the Buck DC/DC
converter is enabled.
D5Boost c onv erte r po w er-on status LED, which indicates when the Boost D C/D C
converter is enabled. Because of the Boost conf iguration, this LED wil l be
illuminated when +9V is present at the J2 connector.
LCD1User-programmable 2x16 character LCD display.
Hardware
2012 Microchip Technology Inc.DS52078A-page 23
Digital Power Starter Kit User’s Guide
TP22TP12TP11
TP13TP12
TP11
TP17
TP10
TP9
TP14
TP15
TP6
TP1
+9VGND
GND
GND
BOOST_OUT
GND
BUCK_OUT
2.6TEST POINTS
Table 2-7 describes the test points that are available on the Digital Power Starter Kit.
See Figure 2-3 for test point locations.
TABLE 2-7:TEST POINTS
Test PointDescription
+9V9V Power Supply test point
BUCK_OUTOutput Voltage for the Buck Stage test point
BOOST_OUTOutput Voltage fo r the Boost Stage test point
TP13.3V Supply Voltage test point
TP5Boost Stage Switch Node test point
TP6Boost Stage BODE test point
TP9Buck Stage BODE test point
TP10Buck Stage Current Sense test point
TP11Buck Stage High-Side MOSFET Gate Signal test point
TP12Buck Stage Low-Side MOSFET Gate Signal test point
TP13Boost Stage MOSFET Gate Signal test point
TP14Buck Stage Output Voltage Feedback test point
TP15Boost Stage Output Voltage Feedback test point
TP16Resistive Load MOSFET Gate Signal (Boost) test point
TP17Resistive Load MOSFET Gate Signal (Buck) test point
TP22Buck Stage Switch Node test point
FIGURE 2-3:DIGITAL POWER STAR TER KIT TEST POINT LOCATIONS
DS52078A-page 24 2012 Microchip Technology Inc.
2.7POWER RATING OF CONVERTER STAGES
The Digital Power Starter Kit is designed to be a self-contained power supply board with
variable 5W loads connected to each DC/DC converter.
2.7.1BUCK CONVERTER
The Buck converter stage is rated for a maximum power output of 5W to the dedicated
on-board resistive load. The output voltage and output current should remain within its
Safe Operating Area (SOA) to avoid damage to the board, as shown in the graph in
Figure 2-4. The output voltage of the Buck converter (BUCK_Out) can be programmed
to be from a 1.2V to 4.5V output, with a default programmed voltage of 3.3V . The hardware gain [5k/(3.3k + 5k)] of the voltage feedback from the BUCK_Out is provided by
the resistor divider network, R97 and R105. Additionally, a 20 Ohm resistor, R90, for
bode plot measurements is also in series with the feedback network. The hardware
gain of the current feedback is provided by the current transformer (T1) with turns ratio
(1:60) and burden resistor, R69.
FIGURE 2-4:BUCK CONVERTER SOA CURVE
Hardware
2012 Microchip Technology Inc.DS52078A-page 25
Digital Power Starter Kit User’s Guide
0.00
0.05
0.10
0.15
0.20
0.25
0.30
0.35
0.40
0.45
111213141516171819
Output Voltage, V
Output Current, A
2.7.2Boost Converter
The Boost converter stage is rated for a maximum output power of 5W to the dedicated
on-board resistive load. The output voltage and output current should remain within the
Boost converter Safe Operating Area (SOA) to avoid damage to the board, as shown
in the graph in Figure 2-5. The output voltage of the Boost converter (BOOST_Out) can
be programmed to be from an 11V to 18V output, with a default programmed voltage
of 15V. The hardware gain [20k/(20k + 3.3k)] of the voltage feedback from the
BOOST_Out is provided by the resistor divider network of R41 and R51. Additionally,
a 20 Ohm resistor, R30, for bode plot measurements is also in series with the feedback
network. The hardware gain of the current feedback is provided by the current sense
resistor, R61.
FIGURE 2-5:BOOST CONVERTER SOA CURVE
2.8PROGRAMMER/DEBUGGER
The Digital Power Starter Kit includes an on-board programmer/debugger circuit that
provides connectivity over USB. This circuit is hard-wired to the dsPIC DSC device to
provide ICSP™ debugging/programming capability.
2.8.1Programmer/Debugger Components
Table 2-8 describes the programmer/debugger components that are available on the
Digital Power Starter Kit (see Figure2-2 for component locations).
TABLE 2-8:PROGRAMMER/DEBUGGER COMPONENTS
Compone ntLabelItem #Description
On-Board Programmer/
Debugger
Programmer/Debugger
USB Connector
DS52078A-page 26 2012 Microchip Technology Inc.
N/A2Controls the programming/debugging operations of the target
dsPIC33FJ09GS302 DSC.
J53Provides power to the programmer/debugger, and bidirectional
communication between the host PC and the Digital Power
Starter Kit.
Chapter 3. Demonstration Program Operation
The dsPIC33FJ09GS302 Digital Power Starter Kit is preprogrammed with a
demonstration application that illustrates simultaneous Proportional-Integral-Derivative
(PID) control of the output voltage for the two DC/DC converter circuits on board the
Digital Power Starter Kit. This code can be downloaded from the Microchip web site
(www.microchip.com).
This section covers the following topics:
• Program Demonstration
• Code Demonstration
• Other Code Examples
3.1PROGRAM DEMONSTRATION
The demonstration program provides simultaneous closed-loop control of the output
voltage for both DC/DC converter stages of the Digital Power Starter Kit.
One PID loop controls the Buck converter output voltage (BUCK_Out) at 3.3V. The
other PID loop controls the Boost converter output voltage (BOOST_Out) at 15V.
The PID control scheme consists of the following parameters:
• Proportional Error Gain (P-Gain) – This parameter produces a correction factor
that is proportional to the magnitude of the output voltage error.
• Integral Error Gain (I-Gain) – This parameter uses the cumulative voltage error to
generate a correction factor that eliminates any residual error due to limitations in
offset voltages and measurement resolution.
• Derivative Error Gain (D-Gain) – This parameter produces a correction factor that
is proportional to the rate of change of the output error voltage, which helps the
system respond quickly to changes in system conditions.
The demonstration program requires no manual preparation except to connect 9V
power to the J2 connector.
DIGIT AL POWER STARTER KIT
USER’S GUIDE
2012 Microchip Technology Inc.DS52078A-page 27
Digital Power Starter Kit User’s Guide
Start
ADC Interrupt
End
Yes
No
No
Yes
Soft Start
Routine
Disable
Outputs
Does Fault
Condition Exist?
Is Soft
Start Active?
Initialization Routines:
• Peripherals – ADC, PWM, Timers, GPIO,
LCD, etc.
• Variables – PID Gain Terms, Data Buffers
• Interrupts – ADC, Timers
• Set Soft Start Flag
Idle Loop Functions:
• Check VIN
• Check Soft Start Flag
• Check/Reset Fault Timers and Flag
• Measure Temperature and Potentiometer’s Position
• Update LCD Display Information
• Perform Non-Critical Functions (i.e., user application
tasks)
ADC Interrupt Routines:
• Measure VOUT
• Calculate PID Gain Parameters
• Update PWM Duty Cycle
Fault Check Routine
Soft Start Routine
FIGURE 3-1:SMPS DEMONSTRATION PROGRAM FLOW CHART
DS52078A-page 28 2012 Microchip Technology Inc.
3.2CODE DEMONSTRATION
3.2.1System Initialization
When power is applied to the board, the program starts by executing the following
system initialization routines:
• Peripherals – The required periph erals (PWM, ADC, T i mers and GPIO) are
configured and en abled
• V ariables – Program variables are defined. RAM locations and register usage are
defined and documented
• Constants – Program constants are defined, including reference set points for
both Buck output voltage and Boost output voltage, input voltage, current limits,
Fault conditions, PWM periods and Timer periods
• Interrupts – The ADC and Timer interrupts are set up and enabled
3.2.2Fault Check
The program checks for input under/overvoltage, output overvoltage and board temperature limit. If a Fault occurs, the PWM outputs are disabled until the Fault condition
is cleared. If no Fault is detected, the program proceeds.
3.2.3Soft Start
Demonstration Program Operation
The Soft Start routine ramps up the output voltage in a close-loop fashion to bring the
system within the operating range of the PID control loop. This routine ensures that the
output does not overshoot the desired voltage; it also limits the current at start-up.
3.2.4ADC Interrupt
The ADC interrupt is the heart of the demo program. This routine takes up approximately 75% of the execution time. It performs all the PID calculations and applies any
needed corrections to the output.
Note:The ADC interrupt can occur any time during program execution. The ADC
interrupt takes priority over any other tasks that the program is performing.
3.2.5System Idle Loop
All auxiliary functions are performed in the system Idle routine. This is the time available
to the CPU while the demo program is waiting for an ADC interrupt. Non-critical
functions can be performed in this loop. During this time the LCD is refreshed, the
potentiometers position, input voltage, Fault timers and Soft Start flag are checked.
3.3OTHER CODE EXAMPLES
There are several other SMPS code examples available on the Microchip web site.
Refer to the Readme files located in each code example folder for details on what
each code example demonstrates. Check the Microchip web site
(www.microchip.com/SMPS) for the latest updates to the code examples and for
additional code examples.
2012 Microchip Technology Inc.DS52078A-page 29
Digital Power Starter Kit User’s Guide
NOTES:
DS52078A-page 30 2012 Microchip Technology Inc.
DIGIT AL POWER STARTER KIT
Appendix A. Board Layout and Schematics
FIGURE A-1:DIGITAL POWER STARTER KIT LAYOUT (TOP)
USER’S GUIDE
2012 Microchip Technology Inc.DS52078A-page 31
Digital Power Starter Kit User’s Guide
FIGURE A-2:DIGITAL POWER STARTER KIT LAYOUT (BOTTOM)