Buck/Boost Converter PICtail? Plus Daughter Board User's Guide

Buck/Boost Converter
PICtail™ Plus Daughter Board
User’s Guide
 2008-2014 Microchip Technology Inc.
DS70000336C
Note the following details of the code protection feature on Microchip devices:
•
Microchip products meet the specification contained in their particular Microchip Data Sheet.
•
Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.
•
There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.
•
Microchip is willing to work with the customer who is concerned about the integrity of their code.
•
Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”
Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.
Information contained in this publication regarding device
applications and the like is provided only for your convenience
and may be superseded by updates. It is your responsibility to
ensure that your application meets with your specifications.
MICROCHIP MAKES NO REPRESENTATIONS OR
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 support and/or safety applications is entirely at
the buyer’s risk, and the buyer agrees to defend, indemnify and
hold harmless Microchip from any and all damages, claims,
suits, or expenses resulting from such use. No licenses are
conveyed, implicitly or otherwise, under any Microchip
intellectual property rights.
Trademarks
The Microchip name and logo, the Microchip logo, dsPIC,
FlashFlex, flexPWR, JukeBlox, KEELOQ, KEELOQ logo, Kleer,
LANCheck, MediaLB, MOST, MOST logo, MPLAB,
OptoLyzer, PIC, PICSTART, PIC32 logo, RightTouch, SpyNIC,
SST, SST Logo, SuperFlash and UNI/O are registered
trademarks of Microchip Technology Incorporated in the
U.S.A. and other countries.
The Embedded Control Solutions Company and mTouch are
registered trademarks of Microchip Technology Incorporated
in the U.S.A.
Analog-for-the-Digital Age, BodyCom, chipKIT, chipKIT logo,
CodeGuard, dsPICDEM, dsPICDEM.net, ECAN, In-Circuit
Serial Programming, ICSP, Inter-Chip Connectivity, KleerNet,
KleerNet logo, MiWi, MPASM, MPF, MPLAB Certified logo,
MPLIB, MPLINK, MultiTRAK, NetDetach, Omniscient Code
Generation, PICDEM, PICDEM.net, PICkit, PICtail,
RightTouch logo, REAL ICE, SQI, Serial Quad I/O, Total
Endurance, TSHARC, USBCheck, VariSense, ViewSpan,
WiperLock, Wireless DNA, and ZENA are trademarks of
Microchip Technology Incorporated in the U.S.A. and other
countries.
SQTP is a service mark of Microchip Technology Incorporated
in the U.S.A.
Silicon Storage Technology is a registered trademark of
Microchip Technology Inc. in other countries.
GestIC is a registered trademarks of Microchip Technology
Germany II GmbH & Co. KG, a subsidiary of Microchip
Technology Inc., in other countries.
All other trademarks mentioned herein are property of their
respective companies.
© 2008-2014, Microchip Technology Incorporated, Printed in
the U.S.A., All Rights Reserved.
ISBN: 978-1-63276-815-5
QUALITY MANAGEMENT SYSTEM
CERTIFIED BY DNV
== ISO/TS 16949 ==
DS70000336C-page 2
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® MCUs and dsPIC® DSCs, KEELOQ® code hopping
devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.
 2008-2014 Microchip Technology Inc.
Object of Declaration: Buck/Boost Converter PICtail™ Plus Daughter Board
 2008-2014 Microchip Technology Inc.
DS70000336C-page 3
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
NOTES:
DS70000336C-page 4
 2008-2014 Microchip Technology Inc.
BUCK/BOOST CONVERTER
PICtail™ PLUS DAUGHTER
BOARD USER’S GUIDE
Table of Contents
Preface ........................................................................................................................... 7
Chapter 1. Introduction
1.1 Overview ...................................................................................................... 11
1.2 Highlights ...................................................................................................... 11
1.3 Buck/Boost Converter PICtail™ Plus Daughter Board ................................. 11
1.4 Features ....................................................................................................... 16
1.5 Product Package .......................................................................................... 16
Chapter 2. Hardware Description
2.1 Overview ...................................................................................................... 17
2.2 Highlights ...................................................................................................... 17
2.3 Daughter Board Connectors ......................................................................... 17
2.4 Daughter Board User Hardware Interface .................................................... 19
2.5 Using the Daughter Board with the Explorer 16
Development Board ................................................................................ 24
2.6 Using the Daughter Board with the 16-Bit 28-Pin Starter
Development Board ................................................................................ 25
2.7 Power Rating of Converter Stages ............................................................... 28
Chapter 3. Getting Started
3.1 Overview ...................................................................................................... 29
3.2 Highlights ...................................................................................................... 29
3.3 Features ....................................................................................................... 29
3.4 Creating the Project ...................................................................................... 30
3.5 Building the Code ......................................................................................... 36
3.6 Programming the Device .............................................................................. 37
Chapter 4. Demonstration Program Operation
4.1 Overview ...................................................................................................... 39
4.2 Highlights ...................................................................................................... 39
4.3 Program Demonstration ............................................................................... 39
4.4 Code Demonstration .................................................................................... 41
4.5 Other Code Examples .................................................................................. 41
 2008-2014 Microchip Technology Inc.
DS70000336C-page 5
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
Appendix A. Board Schematics and Layout
A.1 Introduction .................................................................................................. 43
A.2 Board Schematics and Layout ..................................................................... 43
Appendix B. Bill of Materials (BOM)
B.1 Introduction .................................................................................................. 51
Index .............................................................................................................................55
Worldwide Sales and Service .....................................................................................56
DS70000336C-page 6
 2008-2014 Microchip Technology Inc.
BUCK/BOOST CONVERTER
PICtail™ PLUS DAUGHTER
BOARD 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 page number. The numbering convention for the DS number is
“DSXXXXXXXXA”, where “XXXXXXXX” 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® X IDE online help.
Select the Help menu, and then Topics to open a list of available online help files.
INTRODUCTION
This chapter contains general information that will be useful to know before using the
Buck/Boost Converter PICtail™ Plus Daughter Board. Items discussed in this chapter
include:
•
•
•
•
•
•
•
Document Layout
Conventions Used in this Guide
Recommended Reading
The Microchip Web Site
Development Systems Customer Change Notification Service
Customer Support
Document Revision History
DOCUMENT LAYOUT
This document describes how to use the Buck/Boost Converter PICtail™ Plus
Daughter Board. This user’s guide is composed of the following chapters:
• Chapter 1. “Introduction” describes the Buck/Boost Converter PICtail™ Plus
Daughter Board and provides a brief description of the hardware.
• Chapter 2. “Hardware Description” describes the board hardware.
• Chapter 3. “Getting Started” describes the step-by-step process for getting your
board up and running with the MPLAB® In-Circuit Debugger 3 (ICD 3) using a
dsPIC33FJ16GS502 device.
• Chapter 4. “Demonstration Program Operation” describes the operation of the
Buck/Boost Converter PICtail™ Plus Daughter Board.
• Appendix A. “Board Schematics and Layout” illustrates the layout and
provides hardware schematic diagrams for the board.
• Appendix B. “Bill of Materials (BOM)” provides the Bill of Materials (BOM) for
the Buck/Boost Converter PICtail™ Plus Daughter Board.
 2008-2014 Microchip Technology Inc.
DS70000336C-page 7
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
CONVENTIONS USED IN THIS GUIDE
This manual uses the following documentation conventions:
DOCUMENTATION CONVENTIONS
Description
Italic characters
Initial caps
Quotes
Represents
Referenced books
MPLAB X IDE User’s Guide
Emphasized text
...is the only compiler...
A window
the Output window
A dialog
the Settings dialog
A menu selection
select Enable Programmer
A field name in a window or
dialog
“Save project before build”
Underlined, italic text with A menu path
right angle bracket
File>Save
Bold characters
A dialog button
Click OK
A tab
Click the Power tab
Text in angle brackets < > A key on the keyboard
Press <Enter>, <F1>
Sample source code
#define START
Filenames
autoexec.bat
File paths
c:\mcc18\h
Keywords
_asm, _endasm, static
Command-line options
-Opa+, -Opa-
Bit values
0, 1
Constants
0xFF, ‘A’
Italic Courier New
A variable argument
file.o, where file can be any
valid filename
Square brackets [ ]
Optional arguments
mcc18 [options] file
[options]
Curly brackets and pipe
character: { | }
Choice of mutually exclusive
arguments; an OR selection
errorlevel {0|1}
Ellipses...
Replaces repeated text
var_name [, var_name...]
Represents code supplied by
user
void main (void)
{ ...
}
Plain Courier New
Notes
DS70000336C-page 8
Examples
A Note presents information
that we want to re-emphasize,
either to help you avoid a
common pitfall or to make you
aware of operating differences
between some device family
members. A Note can be in a
box, or when used in a table or
figure, it is located at the
bottom of the table or figure.
Note:
This is a standard
note box.
CAUTION
This is a caution note.
Note 1: This is a note used in a
table.
 2008-2014 Microchip Technology Inc.
Preface
RECOMMENDED READING
This user’s guide describes how to use the Buck/Boost Converter PICtail™ Plus
Daughter Board. The following Microchip documents are available and recommended
as supplemental reference resources.
Readme for Buck/Boost Converter PICtail™ Plus Daughter Board
For the latest information on using the Buck/Boost Converter PICtail™ Plus Daughter
Board, read the Readme.txt text file in the Readme subdirectory of the MPLAB X IDE
installation directory from the Buck/Boost Converter PICtail Plus Daughter Board CD.
The Readme file contains update information and known issues that may not be
included in this user’s guide.
Readme Files
For the latest information on using other tools, read the tool-specific Readme files in
the Readme subdirectory of the MPLAB X IDE installation directory. The Readme files
contain updated information and known issues that may not be included in this
user’s guide.
THE MICROCHIP WEB SITE
Microchip provides online support via our web site at http://www.microchip.com. This
web site makes files and information easily available to customers. Accessible by most
Internet browsers, 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 listings
• Business of Microchip – Product selector and ordering guides, latest Microchip
press releases, listings of seminars and events; and 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
• Emulators – The latest information on the Microchip in-circuit emulator,
MPLAB REAL ICE™
• In-Circuit Debuggers – The latest information on the Microchip in-circuit
debugger, MPLAB ICD 3
• MPLAB X IDE – The latest information on the Microchip MPLAB X IDE, the
Windows® Integrated Development Environment for development systems tools
• Programmers – The latest information on Microchip programmers including the
PICkit™ 3 development programmer
 2008-2014 Microchip Technology Inc.
DS70000336C-page 9
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
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 (August 2008)
This is the initial release of this document.
Revision B (December 2010)
This revision of the document contains the following updates:
• Added references to the dsPIC33FJ64GS610 device, which can be used with the
Explorer 16 Development Board throughout the document
• Added Appendix B. “Bill of Materials (BOM)”
• Formatting updates and minor changes to the text have been incorporated
throughout the document
Revision C (November 2014)
This revision of the document contains the following updates:
• Tables:
- Updated Table 2-2
• Sections:
- Updated note in Section 2.6.1 “16-Bit 28-Pin Starter Development Board
Controls Buck 1 and Buck 2 Stages (Default Jumper Configuration)”
- Updated Section 2.4.7 “VOUT3 J8 (Boost)”
- Updated note in Section 2.6.2.2 “Software”
- Updated Section 2.7.3 “Boost Converter”
• Figures:
- Updated Figure A-3, Figure A-4
• Changes to text and formatting were incorporated throughout the document
DS70000336C-page 10
 2008-2014 Microchip Technology Inc.
BUCK/BOOST CONVERTER
PICtail™ PLUS DAUGHTER
BOARD USER’S GUIDE
Chapter 1. Introduction
1.1
OVERVIEW
This chapter describes the features and functions of the Buck/Boost Converter
PICtail™ Plus Daughter Board.
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.
Buck Converters are used when the desired output voltage is smaller than the input
voltage. Boost Converters are used when the desired output voltage is higher than the
input voltage.
The Buck/Boost Converter PICtail Plus Daughter Board is a power supply board. It
consists of two independent DC/DC synchronous Buck Converters and one
independent DC/DC Boost Converter.
1.2
HIGHLIGHTS
This chapter covers the following topics:
• Buck/Boost Converter PICtail™ Plus Daughter Board
• Features
• Product Package
1.3
BUCK/BOOST CONVERTER PICtail™ PLUS DAUGHTER BOARD
The Buck/Boost Converter PICtail Plus Daughter Board block diagram is shown in
Figure 1-1.
The power, drive and control signals are available in the J1 and J2 connectors. The
16-Bit 28-Pin Starter Development Board can be used to control one independent
DC/DC synchronous Buck Converter. This board can also control two buck stages, or
one buck and one boost stage with hardware modification on the 16-Bit 28-Pin Starter
development Board (see Section 2.6.2 “16-Bit 28-Pin Starter Development Board
Controls Buck 1 and Boost Stages”).
The block diagram of the daughter board using the 16-Bit 28-Pin Starter Development
Board is shown in Figure 1-2. All three stages of the Buck/Boost Converter PICtail Plus
Daughter Board are controlled by the Explorer 16 Development Board. The
figure shows a block diagram of the daughter board using the Explorer 16
Development Board.
The control boards provide closed-loop Proportional-Integral-Derivative (PID) control in
software to maintain the desired output voltage level. The dsPIC® DSC device provides
the necessary memory and peripherals for Analog-to-Digital (A/D) conversion,
Pulse-Width Modulator (PWM) generation, analog comparison and general purpose
I/O, excluding the need to perform these functions in an external circuitry.
The dsPIC® DSC SMPS 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 monitoring and supervisory control.
 2008-2014 Microchip Technology Inc.
DS70000336C-page 11
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
The daughter board enables the end user an easy transition from Analog-to-Digital
implementation of the power application. The daughter board also aids in the rapid
development of the Buck Converter, Boost Converter, multi-phase Buck Converter and
two parallel Buck Converters.
The dsPIC33F SMPS family of devices provides the following features:
• Integrated program and data memory on a single chip
• Ultra-fast interrupt response time and hardware interrupt priority logic
• Up to 4 Msps, on-chip ADC with two SARs, and up to four dedicated and
two shared Sample-and-Hold circuits for multiple loop control
• Four independent, high-resolution PWM generators specially designed to support
different power topologies
• Four analog comparators for control loop implementation and system protection
• On-chip system communications (I2C™/SPI/UART)
• On-chip Fast RC (FRC) oscillator for lower system cost
• High-current sink/source for PWM pins: 16 mA/16 mA
• CPU performance: 40 MIPS
• Extensive power savings
• CodeGuard™ Security enabled
DS70000336C-page 12
 2008-2014 Microchip Technology Inc.
Introduction
FIGURE 1-1:
DAUGHTER BOARD BLOCK DIAGRAM
VINSENSE
AN4
VIN
AN4
I1
AN0
LOAD
PWM1H
I1
AN0
V1
V1
AN1
PWM1L
AN1
LOAD
PWM1H
GND
PWM1L
I2
AN2
AN2
V2
AN3
AN3
INPUT CONNECTOR J1
INPUT CONNECTOR J2
VOUT1
VIN
VOUT2
PWM2H
I2
V2
PWM2L
PWM2H
PWM2L
Load
VIN
I3
AN8
V3
AN9
PWM3H
VOUT3
PWM3H
V3
I3
 2008-2014 Microchip Technology Inc.
DS70000336C-page 13
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
FIGURE 1-2:
16-BIT 28-PIN STARTER DEVELOPMENT BOARD WITH DAUGHTER BOARD
VIN
VIN
LOAD
PWM1H
VOUT1
I1
VDD
VIN
AN4
V1
PWM1H
PWM1L
16-BIT 28-PIN STARTER DEVELOPMENT BOARD
PWM1L
LOAD
AN0
I1
GND
AN1
PWM3L
V1
Load
VIN
VOUT2
PWM2H
PWM2H
I2
PWM2L
V2
AN2
AN3
DS70000336C-page 14
I2
PWM2L
V2
 2008-2014 Microchip Technology Inc.
Introduction
FIGURE 1-3:
EXPLORER 16 DEVELOPMENT BOARD WITH DAUGHTER BOARD
VIN
LOAD
VIN
VDD
VIN
PWM1H
AN4
VOUT1
I1
PWM1H
V1
PWM1L
PWM1L
AN0
EXPLORER 16 DEVELOPMENT BOARD
AN1
PWM3L
LOAD
I1
V1
Load
GND
VIN
VOUT2
I2
PWM2H
PWM2H
V2
PWM2L
PWM2L
AN2
AN3
I2
V2
VIN
VOUT3
V3
PWM3H
AN8
AN9
I3
PWM3H
I3
V3
 2008-2014 Microchip Technology Inc.
DS70000336C-page 15
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
1.4
FEATURES
The Buck/Boost Converter PICtail Plus Daughter Board includes these features:
1.4.1
•
•
•
•
•
•
•
•
•
Two synchronous Buck Converter power stages
One Boost Converter power stage
Voltage/current measurement for digital control of Buck Converters
Voltage/current measurement for digital control of Boost Converter
Switchable, one 5/5W resistive load on Buck Converter 1 Output (VOUT1)
Buck Converter 1 Output (VOUT1) on J4 connector for external loading
Buck Converter 2 Output (VOUT2) on J5 connector for external loading
Boost Converter Output (VOUT3) on J8 connector for external loading
Connector J9 for auxiliary power input
1.4.2
•
•
•
•
•
Daughter Board Power
Auxiliary power input (J9): +7V to +15V (+9V nominal)
9V power input is through input connectors J2 and J1
LED power-on indicator (D14)
LED output voltage indicators (D11, D12 and D13)
Note:
1.5
Additional Features
5 k potentiometer (RP1) connected through jumper J10
Input voltage source selection through jumper J6
Additional resistive load (R46) through jumper J11
Connectors J1 and J2 (Explorer 16/16-Bit 28-Pin Starter Development Board)
PMBus™ connector (J3)
1.4.3
•
•
•
•
Power Stages
The 9V input is supplied from the controller card (16-Bit 28-Pin Starter
Development Board or Explorer 16 Development Board). All 16-Bit 28-Pin
Starter Development Boards must have a blue wire connecting Pin 1 of J1
to Pin 28 of J2. If no blue wire connects Pin 1 of J1 to Pin 28 of J2, connect
a wire in-between to supply the 9V input to the Buck/Boost Converter
PICtail Plus Daughter Board.
PRODUCT PACKAGE
The Buck/Boost Converter PICtail Plus Daughter Board kit consists of the following:
• Buck/Boost Converter PICtail Plus Daughter Board
• Buck/Boost Converter PICtail Plus Daughter Board CD
The CD consists of the application software, example code, Readme file and the
User’s Guide.
DS70000336C-page 16
 2008-2014 Microchip Technology Inc.
BUCK/BOOST CONVERTER
PICtail™ PLUS DAUGHTER
BOARD USER’S GUIDE
Chapter 2. Hardware Description
2.1
OVERVIEW
This chapter provides a detailed description of the hardware elements and components
of the Buck/Boost Converter PICtail™ Plus Daughter Board.
2.2
HIGHLIGHTS
This chapter covers the following hardware sections:
•
•
•
•
•
2.3
Daughter Board Connectors
Daughter Board User Hardware Interface
Using the Daughter Board with the Explorer 16 Development Board
Using the Daughter Board with the 16-Bit 28-Pin Starter Development Board
Power Rating of Converter Stages
DAUGHTER BOARD CONNECTORS
The Buck/Boost Converter PICtail Plus Daughter Board consists of different power
sections, along with the input and output connectors for signal and power connections.
Figure 2-1 shows the daughter board, the input and output connectors and their
locations.
 2008-2014 Microchip Technology Inc.
DS70000336C-page 17
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
FIGURE 2-1:
BUCK/BOOST CONVERTER PICtail™ PLUS DAUGHTER BOARD
5
4
6
1
2
7
3
1. J1 – To connect Explorer 16 Development Board
2. J2 – To connect 16-Bit 28-Pin Starter Development Board
3. J3 – PMBus™ interface connector
4. J4 – VOUT1 connector
Note:
5. J5 – VOUT2 connector
6. J8 – VOUT3 connector
7. J9 – Auxiliary input power connector
The Buck/Boost Converter PICtail Plus Daughter Board can be controlled by either of two
controller boards. Either the 16-Bit 28-Pin Starter Development Board with the
dsPIC33FJ16GS502 device or the Explorer 16 Development Board with the
dsPIC33FJ64GS610 device, which can be used to control the DC/DC power sections of the
daughter board. The connectors, J1 and J2, provide the necessary signals for control purposes.
DS70000336C-page 18
 2008-2014 Microchip Technology Inc.
Hardware Description
2.4
DAUGHTER BOARD USER HARDWARE INTERFACE
This section describes the hardware interface of the daughter board and the power
rating of each converter’s section. Figure 2-2 shows the hardware elements
(pin headers, jumpers, LED and potentiometer).
FIGURE 2-2:
BUCK/BOOST CONVERTER PICtail™ PLUS DAUGHTER BOARD
HARDWARE ELEMENTS
J11
D11
D12
D13
J1
J2
2.4.1
J6
D14
J10
RP1
Auxiliary Input Power Connector J9
The daughter board can be connected to the auxiliary/bench power DC source through
the J9 input connector. The Jumper, J6, must be removed while working with the
auxiliary/bench power DC source (see Figure A-5 for the location of jumper, J6).
2.4.2
PMBus Interface Connector J3
The daughter board allows the user to implement the PMBus on the dsPIC DSC SMPS
device using the J3 connector (see Figure A-6 for the location of this jumper).
 2008-2014 Microchip Technology Inc.
DS70000336C-page 19
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
2.4.3
16-Bit 28-Pin Starter Development Board Connector J2
The two converter stage sections of the daughter board can be controlled using the
16-Bit 28-Pin Starter Development Board. Table 2-1 lists all the power and signal
connections on the daughter board J2 connector to the user interface with the 16-Bit
28-Pin Starter Development Board. See Figure A-6 for the location of this connector.
TABLE 2-1:
DS70000336C-page 20
SIGNAL AND POWER CONNECTION FOR 16-BIT 28-PIN
STARTER DEVELOPMENT BOARD (J2)
Pin Number
Primary
Assignment
1
NC
Not Connected
2
AN0
Analog Input 0 (Buck Converter 1 current)
3
AN1
Analog Input 1 (Buck Converter 1 voltage)
4
AN2
Analog Input 2 (Buck Converter 2 current)
5
AN3
Analog Input 3 (Buck Converter 2 voltage)
6
AN4
Analog Input 4 (Input Voltage)
7
NC
Not Connected
Primary Use
8
VSS
Ground Reference for Logic and I/O Pins
9
NC
Not Connected
10
NC
Not Connected
11
NC
Not Connected
12
NC
Not Connected
13
VDD
Positive Supply for Logic and I/O Pins
14
NC
Not Connected
15
RB15
PMBUSAUX2
16
RB5
PMBUSAUX1
17
SCL
SCL/TX
18
SDA
SCL/RX
19
VSS
Ground Reference for Logic and I/O Pins
20
VDD
21
PWM3H
+3.3V_DIG
PWM Boost Converter
22
I/O
23
PWM2H
PWM 2 High Output (Buck Converter 2)
Load
24
PWM2L
PWM 2 Low Output (Buck Converter 2)
25
PWM1H
PWM 1 High Output (Buck Converter 1)
26
PWM1L
PWM 1 Low Output (Buck Converter 1)
27
NC
Not Connected
28
+9V
Input Voltage for Two Buck Stages
 2008-2014 Microchip Technology Inc.
Hardware Description
2.4.4
Explorer 16 Development Board Connector J1
The two buck sections and one boost section of the daughter board can be controlled
using the Explorer 16 Development Board. Table 2-2 lists all the power and signal
connections on the daughter board J1 connector to the user interface with the
Explorer 16 Development Board. See Figure A-6 for the location of this connector.
TABLE 2-2:
SIGNAL AND POWER CONNECTION FOR THE EXPLORER 16
DEVELOPMENT BOARD (J1)
Pin Number
Primary
Assignment
79
AN0
Analog Input 0 (Buck Converter 1 current)
80
AN1
Analog Input 1 (Buck Converter 1 voltage)
45
PWM1H
PWM 1 High Output (Buck Converter 1 drive)
46
PWM1L
PWM 1 Low Output (Buck Converter 1 drive)
8
AN2
Analog Input 2 (Buck Converter current)
Analog Input 3 (Buck Converter 2 voltage)
Primary Use
6
AN3
12
PWM2H
PWM 2 High Output (Buck Converter 2 drive)
PWM 2 Low Output (Buck Converter 2 drive)
11
PWM2L
50
AN4
Analog Input 4 (input voltage)
102
AN8
Analog Input 8 (Boost Converter current)
80
AN9
Analog Input 9 (Boost Converter voltage)
17
PWM3H
13
I/O
101
AN10
Analog Input 10 (POT RP1)
65
RB15
PMBUSAUX2
PWM3H High Output (Boost Converter drive)
Load Drive for Buck Converter 1 Load
66
RB5
PMBUSAUX1
67
SCL
SCL/TX
SCL/RX
68
SDA
9, 10, 119, 120
3.3VDIG_GND
21, 22, 53, 54,
107, 108
+3.3V_DIG
15, 16, 41, 42
9VANA_GND
25, 26, 57, 58
+9V
9V Input Voltage
1-5, 14, 18-20, 23,
24, 27-30, 33-40,
43, 44, 49, 51, 52,
55, 56, 59-62,
69-78, 81-95,
97-100, 103-106,
109-118
NC
Not Connected
 2008-2014 Microchip Technology Inc.
Ground Reference for Digital I/O Pins
Digital 3.3V
Ground Reference for Logic and I/O Pins
DS70000336C-page 21
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
2.4.5
VOUT1 J4 (Buck1+)
An external load can be connected to VOUT1 through the J4 connector. One
on-board parallel resistor, R44 (5/5W), is connected at the output of VOUT1
through MOSFET Q13 to optionally load the Buck 1 Converter circuit. Resistor R45 is
on-board and there is space to solder resistor R46 onto the board. When resistor R46
is connected to VOUT1, the J11 jumper must be open while working with +9V power
from the control board. The on-board load resistor can be connected to VOUT1 by
controlling the signal name “Load”. The “Load” signal is the I/O pin of the dsPIC DSC
SMPS device and is active-high. See Figure A-2 for the location of this connector.
2.4.6
VOUT2 J5 (Buck2+)
An external load can be connected to VOUT2 through the J5 connector. VOUT2
can load up to a maximum of 3 amps when the auxiliary input voltage source is
connected at the J9 input connector. See Figure A-3 for the location of this
connector.
2.4.7
VOUT3 J8 (Boost)
An external load can be connected to VOUT3 through the J8 connector. VOUT3 can
load up to 0.60 amps when the auxiliary input voltage source is connected at the
J9 input connector. See Figure A-4 for the location of this connector.
2.4.8
Jumpers
The daughter board consists of three jumpers that determine its features. Table 2-3 lists
jumpers and their functions.
TABLE 2-3:
Jumpers
DS70000336C-page 22
JUMPERS
Description
Default Configurations
J6
Select either 9V power provided by the Explorer 16
Development Board or 16-Bit 28-Pin Starter
Development Board and an external power supply
Short with jumper header
(closed)
J10
Connects potentiometer RP1 to AN10 on
Explorer 16 Development Board
Open
J11
Connects R46 load resistor to VOUT1
Open
J12
Buck 2 voltage feedback selection
Short with jumper header
(closed)
J13
Buck 2 current feedback selection
Short with jumper header
(closed)
J14
Boost current feedback selection
Open
J15
Boost voltage feedback selection
Open
 2008-2014 Microchip Technology Inc.
Hardware Description
2.4.9
Potentiometer and LED
The daughter board consists of a potentiometer and LEDs for the user application.
Table 2-4 lists components and their functions.
TABLE 2-4:
POTENTIOMETERS AND LED
Label
Hardware Elements
RP1
Potentiometer connected to AN10 of Explorer 16 Development Board controller
D11
Buck 1 output LED
D12
Buck 2 output LED
D13
Boost output voltage LED
D14
Input voltage LED
2.4.10
Test Points
The daughter board provides the various test points of the PWM signals, feedback
signals, and input and output voltages for the user application. Table 2-5 lists the PWM
test points that can be used to check the PWM gate pulse for all three power stages.
TABLE 2-5:
PWM TEST POINTS
Test Points
Description
PWM1H
Buck MOSFET gate drive of Buck 1 Converter stage
PWM1L
Synchronous MOSFET gate drive of Buck 1 Converter stage
PWM2H
Buck MOSFET gate drive of Buck 2 Converter stage
PWM2L
Synchronous MOSFET gate drive of Buck 2 Converter stage
PWM3H
Boost MOSFET gate drive for Boost Converter stage
Table 2-6 lists the feedback signal test points that can be used to check the feedback
signal waveforms and values.
TABLE 2-6:
FEEDBACK SIGNAL TEST POINTS
Test Points
Description
Current Sense1
Current feedback signal for Buck 1 Converter stage
Current Sense2
Current feedback signal for Buck 2 Converter stage
Current Sense3
Current feedback signal for Boost Converter stage
Table 2-7 shows the power test points that can be used to verify the input and output
voltages.
TABLE 2-7:
POWER TEST POINTS
Test Points
Description
V+
Input voltage test point
Buck1+
VOUT1 voltage test point
Buck2+
VOUT2 voltage test point
Boost+
VOUT3 voltage test point
GND
Ground potential test point
 2008-2014 Microchip Technology Inc.
DS70000336C-page 23
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
2.5
USING THE DAUGHTER BOARD WITH THE EXPLORER 16
DEVELOPMENT BOARD
This section describes the hardware connection of the daughter board with the
Explorer 16 Development Board. Figure 2-3 shows the daughter board hardware
connection (MPLAB ICD 3 and power supply) to the Explorer 16 Development Board.
The dsPIC33FJ64GS610 SMPS device controls both buck stages (Buck 1 and
Buck 2), as well as the boost stage through the Explorer 16 Development Board,
simultaneously.
Note:
To operate all three converters using the Explorer 16 Development Board,
ensure that J12, J13 and J6 are shorted with the jumper header, and J14
and J15 are open before powering up the board.
The potentiometer, R6 (10 k, in series with the R12 resistor on the Explorer 16
Development Board, is connected to the analog input channel (AN5) of the dsPIC®
DSC SMPS device. The potentiometer, R6 on the daughter board, is connected to the
analog input channel (AN10) through the J10 jumper. Both potentiometers can be used
for development purposes to simulate any feedback signal.
FIGURE 2-3:
DAUGHTER BOARD CONNECTED TO THE EXPLORER 16 DEVELOPMENT BOARD
MPLAB® ICD 3
+9V Power Supply Connector
DS70000336C-page 24
3
MPLAB ICD 3
Connector
Buck/Boost Converter PICtail™ Plus Daughter Board
Explorer 16 Development Board
 2008-2014 Microchip Technology Inc.
Hardware Description
2.6
USING THE DAUGHTER BOARD WITH THE 16-BIT 28-PIN STARTER
DEVELOPMENT BOARD
This section describes the use of a 16-Bit 28-Pin Starter Development Board with the
Buck/Boost Converter PICtail Plus Daughter Board.
Figure 2-4 shows the 16-Bit 28-Pin Starter Development Board and its hardware
elements. For more details, refer to the “16-Bit 28-Pin Starter Development Board
User's Guide” (DS51656), which is available from the Microchip web site
(http://www.microchip.com).
FIGURE 2-4:
16-BIT 28-PIN STARTER DEVELOPMENT BOARD
JP1
JP3
JP2
R14
R17
JP4
R15
SW2
R16
 2008-2014 Microchip Technology Inc.
DS70000336C-page 25
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
The potentiometer, RP1 (10 k), along with the J5 jumper on the 16-Bit 28-Pin Starter
Development Board, is connected to the analog input channel (AN5) of the dsPIC DSC
SMPS device. Figure 2-5 shows the connection of a 16-Bit 28-Pin Starter Development
Board to a daughter board with ICD 3 and a 9V power supply.
Ensure that the following changes are made to the 16-Bit 28-Pin Starter Development
Board prior to connecting it to the daughter board:
•
•
•
•
•
•
FIGURE 2-5:
Remove resistors, R14 and R15 (to control Buck 2 or Boost Converter)
JP1 in Pin 1-2 position (supply)
JP2 in Pin 2-3 position (+3.3V)
JP3 in 1-2 position (dsPIC33F/PIC24)
JP4 open
SW2 in USB/Debug mode
DAUGHTER BOARD HARDWARE CONNECTED TO A 16-BIT 28-PIN STARTER
DEVELOPMENT BOARD
MPLAB® ICD 3
3
MPLAB ICD 3
Connector
+9V Power Supply Connector
Buck/Boost Converter PICtail™ Plus Daughter Board
16-Bit 28-Pin Starter Development Board
DS70000336C-page 26
 2008-2014 Microchip Technology Inc.
Hardware Description
2.6.1
16-Bit 28-Pin Starter Development Board Controls Buck 1 and
Buck 2 Stages (Default Jumper Configuration)
The dsPIC33FJ16GS502 SMPS device controls buck stages, Buck 1 and Buck 2, through
the 16-Bit 28-Pin Starter Development Board as the default configuration on the daughter
board (refer to Table 2-3). The two buck stages can be controlled as multi-phase or as two
parallel converters by shorting the VOUT1 (Buck1+) and VOUT2 (Buck2+) outputs, and
by programming the output of the buck stages to the same output voltage value.
Note 1:
To operate the two Buck Converters using the 16-Bit 28-Pin Starter
Development Board, ensure that J12, J13 and J6 are shorted with the
jumper header, and J14 and J15 are open before powering up the board.
2:
2.6.2
The software package for the dsPIC33FJ16GS502 device on the web
only provides control for Buck 1 and Buck 2.
16-Bit 28-Pin Starter Development Board Controls Buck 1 and
Boost Stages
This section describes the hardware changes that must be performed to control the Buck 1
and Boost stages. Figure 2-6 displays the feedback jumper, which must be modified in the
daughter board. See Figure A-4 for the complete daughter board schematics.
FIGURE 2-6:
FEEDBACK JUMPERS
J12
J13
J14
J15
2.6.2.1
HARDWARE
The following hardware changes are required in the daughter board to enable control
of the Buck 1 and Boost Converter stage:
• Jumper J12 and J13: Open
• Jumper J14 and J15: Short with jumper header (close)
2.6.2.2
SOFTWARE
The following additional changes in software are required to enable control of the
Buck 1 and Boost Converter stage:
•
•
•
•
Boost current feedback through analog input channel (AN2)
Boost voltage feedback through analog input channel (AN3)
Boost PWM3 output (PWM3H)
PWM2 output pin must be controlled by I/O port and driven low
Note:
The software package for the 16-Bit 28-Pin Starter Development Board will
only enable the Buck 1 and Buck 2 converters.
 2008-2014 Microchip Technology Inc.
DS70000336C-page 27
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
2.7
POWER RATING OF CONVERTER STAGES
All three DC/DC power stages in a daughter board can be loaded externally through
the output terminal blocks, J4, J5 and J8. For loading any power stage externally, the
user must provide an auxiliary power source to the daughter board through input
terminal block, J9.
2.7.1
Buck 1 Converter
The Buck 1 Converter stage is rated for a maximum output current of 3 amps through
the J4 connector. The output voltage of the Buck Converter (VOUT1) can be
programmed for a 0V-5V output. The hardware gain [5k/(3.3k + 5k)] of the voltage
feedback of VOUT1 is provided by the resistor divider network of R11 and R12. The
hardware gain of the current feedback is provided by the current transformer (TX1) with
turns ratio (1:60) and burden resistor, R5. The circuitry consists of R6, R7, C7 and Q3,
and provides slope compensation for current feedback (Current Sense1).
2.7.2
Buck 2 Converter
The Buck 2 Converter stage is rated for a maximum output current of 3 amps through
the J5 connector. The output voltage of the Buck Converter (VOUT2) can be
programmed for a 0V-5V output. The hardware gain [5k/(3.3k + 5k)] of the voltage
feedback of VOUT2 is provided by the resistor divider network of R29 and R30. The
hardware gain of the current feedback is provided by the current transformer (TX2) with
turns ratio (1:60) and burden resistor, R23. The circuitry consists of R24, R25, C14 and
Q8, and provides slope compensation for current feedback (Current Sense2).
2.7.3
Boost Converter
The Boost Converter stage is rated for a maximum output current of 0.60 amps through
the J8 connector. The output voltage of the Boost Converter (VOUT3) can be programmed up to a maximum output of 20V. The hardware gain [20k/(20k + 3.3k)] of
the voltage feedback of VOUT3 is provided by the resistor divider network of R55 and
R56. The hardware gain of the current feedback is provided by the current sense
resistor, R53 (current sense boost/Current Sense3). The circuitry consists of R13,
R14, C20 and Q4, and provides slope compensation for current feedback
(current sense boost/Current Sense3).
DS70000336C-page 28
 2008-2014 Microchip Technology Inc.
BUCK/BOOST CONVERTER
PICtail™ PLUS DAUGHTER
BOARD USER’S GUIDE
Chapter 3. Getting Started
3.1
OVERVIEW
This chapter provides a more detailed description to getting started using the Buck/
Boost Converter PICtail™ Plus Daughter Board, with the 16-Bit 28-Pin Starter
Development Board, using the dsPIC33FJ16GS502 SMPS device. The 16-Bit 28-Pin
Starter Development Board is modified as per Section 2.6 “Using the Daughter
Board with the 16-Bit 28-Pin Starter Development Board”. While working with the
daughter board, along with the Explorer 16 Development Board using a
dsPIC33FJ16GS610 device, refer to the Explorer 16 board-specific note that is
specified in the corresponding instructions.
3.2
HIGHLIGHTS
This chapter covers the following topics:
•
•
•
•
3.3
Features
Creating the Project
Building the Code
Programming the Device
FEATURES
This section describes the main features of MPLAB® X IDE and the MPLAB ICD 3
In-Circuit Debugger because they are used in the 16-Bit 28-Pin Starter Development
Board. This section provides information on performing the following tasks:
1.
2.
3.
4.
5.
6.
7.
8.
Creating a project using the Project Wizard.
Assembling and linking the code, and setting the Configuration bits.
Setting up MPLAB X IDE to use the MPLAB ICD 3 In-Circuit Debugger.
Programming the chip with MPLAB ICD 3.
Viewing code execution.
Viewing registers in the Watch window.
Setting a breakpoint and setting the code Halt in the specific location.
Using the function keys to Reset, Run, Halt and Single Step the code.
 2008-2014 Microchip Technology Inc.
DS70000336C-page 29
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
Before performing these steps, save the Buck/Boost Converter PICtail Plus Daughter
Board firmware from the CD in the following location: C:\Program Files\Microchip\.
Note 1:
3.4
The demo software using the 16-Bit 28-pin Starter Development Board
will be under folder: C:\Program Files\Microchip\Buck Boost
PICtail Plus Board\Buck1 Voltage Mode with 28P Starter
Board.
2:
The demo software using the Explorer 16 Development Board will be
under the folder: C:\Program Files\Microchip\Buck Boost
PICtail Plus Board\3-Stage Voltage Mode with
Explorer 16.
3:
Both the above folders are comprised of the project file (*.mcp) and
workspace file (*.mcw). The user can use these files to program the
device or the user can create their own project and workspace file by
performing the steps listed in this chapter.
CREATING THE PROJECT
This section describes the process of creating a project and workspace in
MPLAB X IDE. In any particular folder, one project and one workspace are present.
Note:
These instructions presume the use of MPLAB X IDE v2.20 or later.
A project consists of files that are used to build an application (source code, linker script
files, etc.), along with their association to various build tools and build options. The
workspace consists of the following features:
•
•
•
•
One or More Projects
Information on the Selected Device
Debug Tool and/or Programmer, Open Windows and Their Location
Other MPLAB X IDE Configuration Settings
MPLAB X IDE provides a Project Wizard to create new projects.
3.4.1
Creating the Project
Using the Project Wizard involves four steps:
•
•
•
•
Selecting the Device
Selecting the Hardware Tool
Naming the Project
Adding Files to the Project
Use the following procedures to complete each of the four steps.
DS70000336C-page 30
 2008-2014 Microchip Technology Inc.
Getting Started
3.4.1.1
PROJECT WIZARD STEP ONE – SELECTING THE DEVICE
1. Open MPLAB X IDE.
2. Double click on the New Project icon on the menu bar at the top of the window.
FIGURE 3-1:
NEW PROJECT ICON
3. Under Categories, select “Microchip Embedded”.
4. In the Projects section, select “Standalone Project”.
FIGURE 3-2:
CREATING A NEW STANDALONE PROJECT
5. Click Next to continue.
 2008-2014 Microchip Technology Inc.
DS70000336C-page 31
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
6. From the Device drop down list, select the required device as shown in Figure 3-3.
FIGURE 3-3:
SELECTING THE DEVICE
7. Click Next to continue.
3.4.1.2
PROJECT WIZARD STEP TWO – SELECTING MPLAB ICD 3 AS THE
HARDWARE TOOL
8. In the Select Tool section, select ICD 3 as the hardware tool being used, as
shown in Figure 3-4.
FIGURE 3-4:
DS70000336C-page 32
SELECTING THE TOOL
 2008-2014 Microchip Technology Inc.
Getting Started
3.4.1.3
PROJECT WIZARD STEP THREE – SELECTING THE COMPILER
9. In the Select Compiler section, select the compiler as in Figure 3-5.
FIGURE 3-5:
 2008-2014 Microchip Technology Inc.
SELECTING THE COMPILER
DS70000336C-page 33
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
3.4.1.4
PROJECT WIZARD STEP FOUR – NAMING THE PROJECT AND
SAVING IT TO USER-SPECIFIED LOCATION
10. In the Select Project Name and Folder window, name the project that is being
created as Buck1 Voltage Mode.
11. As shown in Figure 3-6, in the Project Location tab, click the “Browse … and
navigate to”:
C:\Program Files\Microchip\Buck BoostPicTail Plus Board\Buck1 Voltage
Mode with 28P Starter Board.
FIGURE 3-6:
SELECTING PROJECT NAME AND PROJECT LOCATION
12. Click the Finish button to complete and create the new project.
DS70000336C-page 34
 2008-2014 Microchip Technology Inc.
Getting Started
3.4.1.5
PROJECT WIZARD STEP FIVE – VIEWING THE PROJECT
13. On the left-hand side of the MPLAB X IDE window is the project listing. The
MPLAB X IDE will automatically list all the files associated with the project.
FIGURE 3-7:
 2008-2014 Microchip Technology Inc.
PROJECT FILE LISTING
DS70000336C-page 35
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
3.5
BUILDING THE CODE
Building the code consists of the following process:
• Assembling all of the *.c and *.s files to create the respective object files (*.o)
• Linking the object files to create the Buck1 Voltage Mode.hex and
Buck1 Voltage Mode.cof output files
The .hex file contains the specific data to program the device. The .cof file contains
additional information for debugging at the source code level.
3.5.1
Building the Code
To build the code, click on the Clean and Build Main Project icon at the top of the
MPLAB X IDE, as shown in Figure 3-8.
FIGURE 3-8:
BUILDING THE PROJECT ICON
If building the code is successful, a message at the bottom of the output window will
state:
“Loading Completed”
Otherwise, error messages will appear.
DS70000336C-page 36
 2008-2014 Microchip Technology Inc.
Getting Started
3.6
PROGRAMMING THE DEVICE
The MPLAB ICD 3 In-Circuit Debugger can be used to program and debug the
dsPIC33FJ16GS502 device in-circuit on the daughter board.
3.6.1
Setting Up the Device Configuration
Select Window>PIC Memory Views>Configuration Bits from MPLAB X IDE to display
the Configuration bit settings, as shown in Figure 3-9. The Configuration Bits window
appears, as shown in Figure 3-10.
FIGURE 3-9:
FIGURE 3-10:
CONFIGURATION MENU
CONFIGURATION SETTINGS
 2008-2014 Microchip Technology Inc.
DS70000336C-page 37
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
To program the device, click on the Make and Program Device Main Project icon, as
shown in Figure 3-11.
FIGURE 3-11:
PROGRAMMING THE DEVICE
To debug the device, click on the Debug Main Project icon at the top of the
MPLAB X IDE, as shown in Figure 3-12. Alternatively, from the top menu, select
Debug>Debug Main Project.
FIGURE 3-12:
PUTTING DEVICE IN DEBUG MODE
Once in Debug mode, the user has the options of running, pausing, stepping into, stepping over, run to cursor, set PC at cursor or focusing cursor at PC. Please refer to the
“MPLAB X IDE User’s Guide” (DS50002027) for further details regarding application
code debugging options and extended features.
DS70000336C-page 38
 2008-2014 Microchip Technology Inc.
BUCK/BOOST CONVERTER
PICtail™ PLUS DAUGHTER
BOARD USER’S GUIDE
Chapter 4. Demonstration Program Operation
4.1
OVERVIEW
The Buck/Boost Converter PICtail Plus Daughter Board CD, supplied with the Buck/
Boost Converter PICtail™ Plus Daughter Board, consists of the source code for the
16-Bit 28-Pin Starter Development Board (Buck 1 Converter stage only) and
Explorer 16 Development Board (Buck 1, Buck 2 and Boost Converter stages). To
demonstrate a program that illustrates PID control of the output voltage on the daughter
board, program the device with the respective source code which is available on the
daughter board’s CD, specified in Section 3.4 “Creating the Project”. The code can
also be downloaded from the Microchip web site (http://www.microchip.com).
4.2
HIGHLIGHTS
This chapter includes the following topics:
• Program Demonstration
• Code Demonstration
• Other Code Examples
4.3
PROGRAM DEMONSTRATION
The demonstration program provides simultaneous closed-loop control of the
output voltages.
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 the system condition.
Additional control parameters that the user can add to P, I and D-Gain terms are as
follows:
• Second Derivative or Jerk Error Gain (J-Gain) – This parameter produces a
correction factor that is proportional to the change in the differential error (i.e., the
derivative of the derivative). J-Gain is a high-frequency term that tends to provide
quick response to an impulse event.
• Feed Forward Gain – This parameter produces a correction factor based on the
desired output voltage that is computed based on the magnitude of the input
voltage, inductor current and circuit attributes (i.e., inductor and capacitor values).
This term allows the control loop to be proactive rather than reactive. In other
words, when the input voltage changes, Feed Forward Gain responds so that the
control loop does not have to wait until the output voltage changes before making
the appropriate gain correction.
 2008-2014 Microchip Technology Inc.
DS70000336C-page 39
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
• Dead-Time Gain – This parameter produces a correction factor that compensates
for the fact that the Feed Forward Gain term does not account for the energy lost
due to the dead time of the PWM signal (the time when both MOSFETs are off).
• Current-Limit Gain – This parameter limits the cumulative control gain when the
current is approaching its upper limit.
After the modifications have been made to the 16-Bit 28-Pin Starter Development
Board, as specified in Section 2.6 “Using the Daughter Board with the 16-Bit
28-Pin Starter Development Board”, do the following:
•
•
•
•
Connect the power supply
Connect MPLAB ICD 3
Connect the Buck/Boost Converter PICtail Plus Daughter Board
Connect the 9V power supply to the 16-Bit 28-Pin Starter Development Board, as
shown in Figure 2-5
Instructions for programming the dsPIC33FJ16GS502 SMPS device are provided in the
Readme file of the respective software folder. Chapter 4. “Demonstration Program
Operation” also describes how to program the dsPIC33FJ16GS502 device using
MPLAB ICD 3. Figure 4-1 illustrates the program flow of the demonstration program.
Note:
FIGURE 4-1:
While using the Explorer 16 Development Board with the daughter board,
the output voltages, Buck1+, Buck2+ and Boost+, can be verified by
measuring at output terminals, J4, J5 and J8, respectively.
SMPS DEMONSTRATION PROGRAM FLOWCHART
Start
Initialization Routines:
• Peripherals – ADC, PWM, Timers, GPIO, etc.
• Variables – PID Gain Terms, Data Buffers
• Constants – Desired Voltage, Current Limit, etc.
• Interrupts – ADC, Timers
ADC Interrupt
ADC Interrupt Routines:
Soft Start Routine
• Measure VOUT
• Calculate PID Gain
• Update PWM Duty Cycle
Exit ISR
Idle Loop Functions: Wait for ADC Interrupt
DS70000336C-page 40
 2008-2014 Microchip Technology Inc.
Demonstration Program Operation
4.4
CODE DEMONSTRATION
4.4.1
System Initialization
When power is applied to the board, the program starts by executing the following system
initialization routines:
• Peripherals – The required peripherals (PWM, ADC, timers and GPIO) are
configured and enabled.
• Variables – Program variables are defined. RAM locations and register usage are
defined and documented.
• Constants – Program constants are defined, including reference set points for
both VOUT1 and VOUT2, input voltage, current limits, Fault conditions,
PWM periods and timer periods.
• Interrupts – The ADC and timer interrupts are set up and enabled.
• System Stabilization – All outputs are discharged to ensure a stable value at
start-up.
4.4.2
Fault Check
The program checks the ADC for input undervoltage and output overvoltage conditions.
If a Fault occurs, the PWM outputs are disabled until the Fault condition is cleared. If
no Fault is detected, the program proceeds.
4.4.3
Soft Start
The Soft Start routine ramps up the output voltage in an open-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.
4.4.4
ADC Interrupt
The ADC interrupt is the heart of the demonstration 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.
4.4.5
System Idle Loop
Note 1:
2:
The ADC interrupt can occur any time during program execution.
The ADC interrupt takes priority over any other tasks that the program is
performing.
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 input voltage, Fault timers and Soft
Start flag are checked.
4.5
OTHER CODE EXAMPLES
There are several other 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 (http://www.microchip.com) for
the latest updates to the code examples and for additional code examples.
 2008-2014 Microchip Technology Inc.
DS70000336C-page 41
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
NOTES:
DS70000336C-page 42
 2008-2014 Microchip Technology Inc.
BUCK/BOOST CONVERTER
PICtail™ PLUS DAUGHTER
BOARD USER’S GUIDE
Appendix A. Board Schematics and Layout
A.1
INTRODUCTION
This appendix provides the detailed technical information on the Buck/Boost Converter
PICtail™ Plus Daughter Board.
A.2
BOARD SCHEMATICS AND LAYOUT
The following are the Buck/Boost Converter PICtail Plus Daughter Board layouts and
schematics:
•
•
•
•
•
•
Daughter Board Layout
Daughter Board Schematic 1 of 5
Daughter Board Schematic 2 of 5
Daughter Board Schematic 3 of 5
Daughter Board Schematic 4 of 5
Daughter Board Schematic 5 of 5
 2008-2014 Microchip Technology Inc.
DS70000336C-page 43
C12D11
J4
C19
D15
D12
R43
C18
Q7
R42
Q12
 2008-2014 Microchip Technology Inc.
R40
R39 R37
R41
C6
R53
R52
C13
C15
D8
D7
Q8
R4
Buck 1
J12
J13
J14
J15
PWM2H
PWM1L
CS 1
CS 3
CS 2
PWM2L
PWM1H
PWM3H
C20
U3
C25
C5 R13
R47R45
C22
R25 R22
Buck 2J6
R35
D18
R2 R1
R36
J3
R34
R15
C24
Boost
R60 J9
D14
J10
V+
D17
C26
R14
Q4
R21 R23 D5
R24
C14
R54
R27
D1
R7
Q14
D9
R26
D4
C7 R6
C27
C30
R28
C16
Q3
Q11
C28
L5
C17
R9
D3
R3 R5
R59
D6
U2
R31
Q13 R33
C29
C9 C8
TX2
TX1R20
R8
R10
D13
C4
R55
Q6
D2
Q2
R32
J2
GND
J8
R56
D10
D16 L4
Q1
U1
BOOST+
J5
R29
R30 R58
C11
R57
L3
GND
C3
R44
C2 R12 R11
R46
BUCK2+
GND
BUCK1+
J11
C10
J1
Buck/Boost Converter
PICtail™ Plus Daughter Board
DAUGHTER BOARD LAYOUT
GND
RP1
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
DS70000336C-page 44
FIGURE A-1:
DAUGHTER BOARD SCHEMATIC 1 OF 5
Current
Sense1
Stage 1 Buck
3.3K
R32
S
2.2k 1% 1/8W
A
B
R7
C7
R6
R12
B
B
9VANA_GND
10k
A
C2
A
470 pF
5.1k
R57
A
5k
B
GND
9VANA_GND
3.3K
9VANA_GND
9VANA_GND
Dig Controlled Load
VIN
R41
Q13
FDS6692A
G
B
R43
1k
B
R42
5.1k
A
S
A
470R
DNP
D
Q12
R37 B
BSR16
A
B
1k
B
R40
BSR14_SOT23
R39
5.1k
A
A
DS70000336C-page 45
Load
A
Q11
10k
B
R44
5R 5W
R46
9VANA_GND
TP9
B
C12
C11
0.1 F
A B
Voltage FB Buck 1
A
D15
A
3.3k
D11
BAS16
R10
A
R11
B
B
9VANA_GND
R33
FDS6298
9VANA_GND
G
Q2
Schottky
D
22R 1% 1/8W
D4
J4
VOUT1
L3
B
TP8
Buck1+
VOUT1
J11
VOUT1
DNP
9VANA_GND
Board Schematics and Layout
R9
A
2.2 nF 25V
A B
R5
S
C10
150 F 6.3V TANT
B
10 H
VDD
C9
R8
A
9VANA_GND
22R 1% 1/8W
LM5101
PWM1L
G
BAS16
0.1 F
U1
150uF 6.3V TANT
D2
B
VDD
C29
0.1 F
A B
4.7 F 25V
A B
Diode_DO-214
C8
Q1
A
FDS6298
D
D3
PWM1H
9VANA_GND
LED_0805
+9V
20k 1% 1/8W
A
B
20R 1% 1/8W
A
B
A
9VANA_GND
+3.3V_DIG
B
1k
BAS16
R3
DNP B
C6
CST1_060L
R4
A
Q3
D1
TX1
BSR14_SOT23
VIN
220 F 25V Elec
 2008-2014 Microchip Technology Inc.
FIGURE A-2:
9VANA_GND
PWM2H
R31
PWM2L
3.3K
R20
3.3K
A
R28
Comp2
R25
C14
R24
2.2k 1% 1/8W
B
A
B
R30
5K
A
R58
GND
A
9VANA_GND
9VANA_GND
9VANA_GND
J5
TP11
B
C19
J12
10k
Voltage FB Buck 2
Voltage FB2
470 pF
5.1k
9VANA_GND
3.3K
C3
B A
S
B
A
D12
G
BAS16
R29
LED_0805
B
A
22R
D8
D
B
C18
0.1 F
A B
A
B
1
9VANA_GND
10 H
R27
C17
150 F 6.3V TANT
VSS
7
LM5101
L4
150 F 6.3V TANT
LO 8
B
22R 1% 1/8W
D16
6 LI
R26
Buck2+
VOUT2
Q7
Schottky
HS 4
A
9VANA_GND
S
FDS6298
5 HI
G
BAS16
2
B
0.1 F
A
B
 2008-2014 Microchip Technology Inc.
A
4.7 F 25V
C16
D6
TP10
Q6
3
FDS6298
C15
A B
Diode_DO-214 0.1 F
U2
1 VDD HB HO 3
C30
BSR14_SOT23
D
+9V
Q8
Comp 2
9VANA_GND
9VANA_GND
D7
3
2.2K
2.2 nF 25V
A B
CST1_060L
A
B
1k
2
B
VIN Feedback
10K
R47
BAS16
R21
DNP
B
R22
+3.3V_DIG
20k 1% 1/8W
A
B
B
R45
A
C13
220 F 25V Elec
A
A
3
R23
D5
20R 1% 1/8W
A
B
VIN
J13
Cuurent Sense Buck 2
Stage 2 Buck
TX2
Cuurent Sense2
DAUGHTER BOARD SCHEMATIC 2 OF 5
9VANA_GND
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
DS70000336C-page 46
FIGURE A-3:
DAUGHTER BOARD SCHEMATIC 3 OF 5
Stage 3 Boost
TP12
VIN
Boost+
L5
Schottky
9VANA_GND
C5
0.47 nF
A B
C20
R14
R13
2.2k 1% 1/8W
B
A
20k 1% 1/8W
A
B
Q4
2.2 nF 25V
A B
DS70000336C-page 47
BSR14_SOT23
B
R15
5.1k
A
9VANA_GND
R59
A
R55
D13
LED_0805
20k 1% 1/8W
B
A
R54
9VANA_GND
C4
1k
+3.3V_DIG
Current Sense2
A
R53
Current Sense3
J14
R54
R56
B
Voltage FB2
3.3k
BAS16
0.5R
9VANA_GND
J15
0.1 F
B A
TC1428COA
GND
Voltage FB Boost
C28
S
C27
0.1 F
A B
B
22R 1% 1/8W
D9
220 F 25V Elec
G
Q14
A
D
9VANA_GND
R52
TP13
9VANA_GND
Board Schematics and Layout
U3
NC 8
NC
7
INA OUTA
6
VDD
VSS
5
INB OUTB
FDT459N
C24
B
A
C25
0.1 F
A B
3.3K
10k
B
20V/0.60A
B
R34
22 H
VOUT3
A
+9V
J8
D10
C26
+3.3V_DIG
PWM3H
4.7 F 25V
A B
 2008-2014 Microchip Technology Inc.
FIGURE A-4:
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
FIGURE A-5:
DAUGHTER BOARD SCHEMATIC 4 OF 5
1
1
+3.3V_DIG
RP1
2
1
2
POT
DNP
5k DNP
VIN
B
1
1
3
5k DNP
J10
9VANA_GND
10k
+9V
1
1
2
V+
J9
1
D14
*Shunt J6 must be connected
when using either the Explorer 16 or
16-Bit 28-Pin Starter Development
Board to power the daughter board
1
1
C22
2
GND
LED_0805
2
9VANA_GND
1
TP2
100 F 25V
2
2
J6
B
1
Auxiliary Input
A A
VIN
TP1
R60
9VANA_GND
DS70000336C-page 48
 2008-2014 Microchip Technology Inc.
Board Schematics and Layout
FIGURE A-6:
DAUGHTER BOARD SCHEMATIC 5 OF 5
Explorer 16 Connector
16-Bit 28-Pin Connector
J1
+9V
J2
Voltage FB2
Current Sense2
PWM2L
9VANA_GND
+3.3V_DIG
9VANA_GND
PWM1L
Current Sense2
PWM1H
Voltage FB2
PWM2L
VIN Feedback
PWM2H
PWM2H
Load
PWM3H
Current Sense1
Voltage FB Buck 1
9VANA_GND
+3.3V_DIG
9VANA_GND
Load
+3.3V_DIG
PWM3H
+9V
+9V
9VANA_GND
SDA/RX
+3.3V_DIG
9VANA_GND
SCL/TX
PMBAUX1
PMBAUX2
9VANA_GND
PWM1H
PWM1L
9VANA_GND
VIN Feedback
+3.3V_DIG
+3.3V_DIG
9VANA_GND
9VANA_GND
+9V
+9V
+3.3V_DIG
PMBus™
J3
PMBAUX1
PMBAUX1
SDA/RX
PMBAUX2
A
SCL/TX
R1
B
0R (DNP)
A R2 B
9VANA_GND
0R (DNP)
PMBAUX2
R36
Voltage FB Buck 1
R35
DNP
Current Sense1
DNP
+3.3V_DIG
D17
+3.3V_DIG
SDA/RX
BAT54S (DNP)
D18
SCL/TX
BAT54S (DNP)
Voltage FB Boost
9VANA_GND
Current Sense3
+3.3V_DIG
+3.3V_DIG
Test Points
TP3
PWM2H
PWM1H
9VANA_GND
9VANA_GND
TP4
PWM1L
 2008-2014 Microchip Technology Inc.
TP5
TP6
PWM2L
TP7
PWM3H
TP14
Current Sense1
TP15
Current Sense2
TP16
Current Sense3
DS70000336C-page 49
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
NOTES:
DS70000336C-page 50
 2008-2014 Microchip Technology Inc.
BUCK/BOOST CONVERTER
PICtail™ PLUS DAUGHTER
BOARD USER’S GUIDE
Appendix B. Bill of Materials (BOM)
B.1
INTRODUCTION
This appendix provides the Bill of Materials (BOM) for the Buck/Boost Converter
PICtail™ Plus Daughter Board.
TABLE B-1:
DNP Qty
BILL OF MATERIALS
Ref.
Description
Mfgr.
Mfgr. Part No.
4
C10, C11, SMD TANTALUM CAPACITORS 150 µF 6V
C17, C18 10% D
AVX
TPSD157K006R0050
4
J4, J5, J8, TERM BLOCK PCB 2 POS 5.0 mm GREEN
J9
Phoenix Contact
1935161
9
C12, C15, CAP 1 µF 25V CERAMIC X7R 0805
C16, C19,
C24, C28,
C8, C9,
C4
Panasonic – ECG
ECJ-2VB1E104K
3
C20, C14, CAP CERM 2200 pF 5% 25V NP0 0805
C7
ACX Corp.
08053A222JAT2A
2
C5, C2,
C3
Panasonic – ECG
ECJ-2VC1H471J
4
C29, C30, CAP CER 4.7 µF 25V X5R 1206
C25, C26
Taiyo Yuden
TMK316BJ475KL-T
3
C13, C27, 220 µF 25V ELEC CAP
C6
Rubycon
25ZL220M8X11.5
1
C22
CAP ELECT 100 µF 25V VS SMD
Panasonic – ECG
EEE-1EA101P
2
D3, D7
DIODE SCHOTTKY 1A 40V SMA
Fairchild Semiconductor
SS14
3
D10, D15, SCHOTTKY 3A 30V RECTIFIER
D16
Fairchild Semiconductor
SS33
5
J6, J12,
J13, J14,
J15
CONN HEADER 2 POS .100" SGL GOLD
Samtec Inc
TSW-102-07-S-S
1
J2
CONN RCPT .100" 28 POS DUAL GOLD
Samtec Inc
SSW-114-01-G-D
4
D11, D12, LED GREEN CLEAR 0805 SMD
D13, D14
LITE-ON INC
LTST-C170KGKT
5
R10, R15, RES 5.10 kOhm 1/8W 1% 0805 SMD
R28, R40,
R43
Rohm
MCR10EZHF5101
3
R11, R56, RES 3.30 kOhm 1/8W 1% 0805 SMD
R29
Rohm
MCR10EZHF3301
5
R20, R31, RES 3.30 kOhm 1/10W 1% 0603 SMD
R34, R32,
R33
Panasonic – ECG
ERJ-3EKF3301V
2
R12, R30
Rohm
MCR10EZHF4991
CAP 470 pF 50V CERM CHIP 0805 SMD
RES 4.99 kOhm 1/8W 1% 0805 SMD
 2008-2014 Microchip Technology Inc.
DS70000336C-page 51
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
TABLE B-1:
DNP Qty
X
BILL OF MATERIALS (CONTINUED)
Ref.
Description
Mfgr.
Mfgr. Part No.
4
R13, R24, RES 20.0 kOhm 1/8W 1% 0805 SMD
R55, R6
Rohm
MCR10EZHF2002
6
R14, R25, RES 2.20 kOhm 1/8W 1% 0805 SMD
R7, R47,
R57, R58,
Rohm
MCR10EZHF2201
1
R37
Panasonic – ECG
ERJ-6ENF4700V
5
R22, R39, RES 1.00 kOhm 1/8W 1% 0805 SMD
R4, R42,
R54
Rohm
MCR10EZHF1001
2
R23, R5
RES 20.0 Ohm 1/8W 1% 0805 SMD
Rohm
MCR10EZHF20R0
5
R26, R27, RES 22.0 Ohm 1/8W 1% 0805 SMD
R52, R8,
R9
Rohm
MCR10EZHF22R0
4
R41, R59, RES 10.0 kOhm 1/8W 1% 0805 SMD
R60, R45
Rohm
MCR10EZHF1002
1
R53
RES .50 Ohm 1W 1% 2512 SMD
Vishay/Dale
WSL2512R5000FEA
1
R44
RESISTOR WIREWOUND 5.0 Ohm 5W
Ohmite
25J5R0E
RES 470 Ohm 1/16W 1% 0805 SMD
2
U1, U2
IC DVR HALF-BRIDGE HV 8-SOIC
National Semiconductor
LM5101M/NOPB
4
Q1, Q2,
Q6, Q7
30V N-CH FAST SWITCH POWER TR
MOSFET
Fairchild Semiconductor
FDS6298A
1
Q13
30V 9A 11.5 Ohm NCH POWER TR
Fairchild Semiconductor
FDS6692A
1
Q14
MOSFETs SOT-223 N-CH 30V
Fairchild Semiconductor
FDT459N
7
D1, D2,
D4, D5,
D6, D9,
D8
DIODE SW 75V 215 mA HS SOT-23
NXP
BAS16 T/R
4
Q11, Q4,
Q3, Q8
TRANS NPN 40V 0.8A SOT-23
Fairchild Semiconductor
BSR14
1
Q12
TRANS PNP 60V 0.8A SOT-23
Fairchild Semiconductor
BSR16
4
Buck1+,
Buck2+,
Boost+,
VIN
TEST POINT PC MULTI-PURPOSE RED
Keystone
5010
4
GND,
GND,
GND,
GND
TEST POINT PC MULTI-PURPOSE BLACK
Keystone
5011
3
J6, J12,
J13
SHUNT LP W HANDLE 2 POS SN
Tyco Electronics Amp
4-881545-2
2
TX1, TX2
SMT CUR SENSE XFMR
CoilCraft
CST1_060L
2
L3, L4
INDUCTOR 10 µH 3.9A
CoilCraft
DO3316P-103ML
1
L5
INDUCTOR 22 µH 2.7A
CoilCraft
DO3316P-223ML
1
U3
IC MOSFET DVR 1.2A DUAL HS 8-SOIC
Microchip Technology Inc. TC1428COA
D17, D18
DIODE SCHOTTKY 30V 300 mA SOT-23
Micro Commercial Co.
BAT54S-TP
X
J3
CONN HEADER 6 POS .100" SNGL TIN
Samtec Inc
TSW-106-05-T-S
X
J11
CONN HEADER 2 POS .100" SNGL GOLD
Samtec Inc
TSW-102-07-S-S
X
R46
RESISTOR WIREWOUND 5.0 Ohm 5W
Ohmite
25J5R0E
DS70000336C-page 52
 2008-2014 Microchip Technology Inc.
Bill of Materials (BOM)
TABLE B-1:
DNP Qty
BILL OF MATERIALS (CONTINUED)
Ref.
X
J10
X
X
X
X
Description
Mfgr.
Mfgr. Part No.
CONN HEADER 2 POS .100" SNGL GOLD
Samtec Inc
RP1
POT 5.0 kOhm THUMBWHEEL CERM ST
Bourns Inc.
R21
DNP
—
—
R3
DNP
—
—
TP3
DNP
—
—
X
TP4
DNP
—
—
X
TP5
DNP
—
—
X
TP6
DNP
—
—
X
TP7
DNP
—
—
X
TP14
DNP
—
—
X
TP15
DNP
—
—
X
TP16
DNP
—
—
X
R1, R2
DNP
—
—
X
R35, R36
DNP
—
—
 2008-2014 Microchip Technology Inc.
TSW-102-07-S-S
3352T-1-502
DS70000336C-page 53
Buck/Boost Converter PICtail™ Plus Daughter Board User’s Guide
NOTES:
DS70000336C-page 54
 2008-2014 Microchip Technology Inc.
BUCK/BOOST CONVERTER
PICtail™ PLUS DAUGHTER
BOARD USER’S GUIDE
Index
A
I
ADC Interrupt ..................................................................... 41
Additional Features ............................................................ 16
Integral Error Gain (I-Gain) ................................................ 39
Internet Address .................................................................. 9
B
J
Bill of Materials (BOM) ....................................................... 51
Block Diagrams
16-Bit 28-Pin Starter Board with Daughter Board ...... 14
Daughter Board ......................................................... 13
Explorer 16 Board with Daughter Board 1.................... 5
Boost Converter ................................................................. 28
Boost Converters ............................................................... 11
Buck 1 Converter ............................................................... 28
Buck 2 Converter ............................................................... 28
Buck Converters ................................................................ 11
Buck/Boost Converter PICtail Plus
Daughter Board (figure) ............................................. 18
Buck/Boost Converter PICtail Plus Daughter Board
Hardware Elements (figure) ....................................... 19
Building the Code .............................................................. 36
Jerk Error Gain (J-Gain) .................................................... 39
Jumpers ............................................................................. 22
C
Code Demonstration .......................................................... 41
Connectors
16-Bit 28-Pin Starter Development Board (J2) .......... 20
Auxiliary Input Power (J9) .......................................... 19
Daughter Board ......................................................... 17
Explorer 16 Development Board (J1) ........................ 21
PMBus Interface (J3) ................................................. 19
VOUT1 (J4) ............................................................... 22
VOUT2 (J5) ............................................................... 22
VOUT3 (J8) ............................................................... 22
Current-Limit Gain ............................................................. 40
Customer Change Notification Service ................................ 9
Customer Support .............................................................. 10
D
Daughter Board Block Diagram ......................................... 11
Daughter Board Connected to 16-Bit 28-Pin
Starter Board (figure) ................................................. 26
Daughter Board Connected to Explorer 16
Board (figure) ............................................................. 24
Daughter Board Power ...................................................... 16
DC/DC Synchronous Buck Converters .............................. 11
Dead-Time Gain ................................................................ 40
Derivative Error Gain (D-Gain) .......................................... 39
Documentation
Conventions ................................................................. 8
Layout .......................................................................... 7
M
Microchip Internet Web Site ................................................ 9
MPLAB X IDE
Project Wizard
Compiler Selection ............................................ 33
Creating the Project .......................................... 30
Device Selection ............................................... 31
Hardware Tool Selection ................................... 32
Naming and Saving the Project ......................... 34
Viewing the Project ........................................... 35
P
Potentiometer and LED ..................................................... 23
Power Stages .................................................................... 16
Programming the Device ................................................... 37
Proportional Error Gain (P-Gain) ....................................... 39
Proportional-Integral-Derivative (PID) ............................... 11
R
Recommended Reading ...................................................... 9
Revision History ................................................................ 10
S
Second Derivative Gain (J-Gain) ....................................... 39
Soft Start ........................................................................... 41
Switch Mode Power Supply (SMPS) ................................. 11
System Initialization Routines ........................................... 41
Constants .................................................................. 41
Interrupts ................................................................... 41
Peripherals ................................................................ 41
System Stabilization .................................................. 41
Variables ................................................................... 41
T
Test Points ........................................................................ 23
Feedback Signal ....................................................... 23
Power ........................................................................ 23
PWM ......................................................................... 23
W
WWW Address .................................................................... 9
F
Fault Check ........................................................................ 41
Feed Forward Gain ............................................................ 39
Feedback Jumpers (figure) ................................................ 27
 2008-2014 Microchip Technology Inc.
DS70000336C-page 55
Worldwide Sales and Service
AMERICAS
ASIA/PACIFIC
ASIA/PACIFIC
EUROPE
Corporate Office
2355 West Chandler Blvd.
Chandler, AZ 85224-6199
Tel: 480-792-7200
Fax: 480-792-7277
Technical Support:
http://www.microchip.com/
support
Web Address:
www.microchip.com
Asia Pacific Office
Suites 3707-14, 37th Floor
Tower 6, The Gateway
Harbour City, Kowloon
Hong Kong
Tel: 852-2943-5100
Fax: 852-2401-3431
India - Bangalore
Tel: 91-80-3090-4444
Fax: 91-80-3090-4123
Austria - Wels
Tel: 43-7242-2244-39
Fax: 43-7242-2244-393
Denmark - Copenhagen
Tel: 45-4450-2828
Fax: 45-4485-2829
Atlanta
Duluth, GA
Tel: 678-957-9614
Fax: 678-957-1455
Austin, TX
Tel: 512-257-3370
Boston
Westborough, MA
Tel: 774-760-0087
Fax: 774-760-0088
Chicago
Itasca, IL
Tel: 630-285-0071
Fax: 630-285-0075
Cleveland
Independence, OH
Tel: 216-447-0464
Fax: 216-447-0643
Dallas
Addison, TX
Tel: 972-818-7423
Fax: 972-818-2924
Detroit
Novi, MI
Tel: 248-848-4000
Houston, TX
Tel: 281-894-5983
Indianapolis
Noblesville, IN
Tel: 317-773-8323
Fax: 317-773-5453
Los Angeles
Mission Viejo, CA
Tel: 949-462-9523
Fax: 949-462-9608
New York, NY
Tel: 631-435-6000
San Jose, CA
Tel: 408-735-9110
Canada - Toronto
Tel: 905-673-0699
Fax: 905-673-6509
DS70000336C-page 56
Australia - Sydney
Tel: 61-2-9868-6733
Fax: 61-2-9868-6755
China - Beijing
Tel: 86-10-8569-7000
Fax: 86-10-8528-2104
China - Chengdu
Tel: 86-28-8665-5511
Fax: 86-28-8665-7889
China - Chongqing
Tel: 86-23-8980-9588
Fax: 86-23-8980-9500
China - Hangzhou
Tel: 86-571-8792-8115
Fax: 86-571-8792-8116
China - Hong Kong SAR
Tel: 852-2943-5100
Fax: 852-2401-3431
China - Nanjing
Tel: 86-25-8473-2460
Fax: 86-25-8473-2470
China - Qingdao
Tel: 86-532-8502-7355
Fax: 86-532-8502-7205
China - Shanghai
Tel: 86-21-5407-5533
Fax: 86-21-5407-5066
China - Shenyang
Tel: 86-24-2334-2829
Fax: 86-24-2334-2393
China - Shenzhen
Tel: 86-755-8864-2200
Fax: 86-755-8203-1760
China - Wuhan
Tel: 86-27-5980-5300
Fax: 86-27-5980-5118
China - Xian
Tel: 86-29-8833-7252
Fax: 86-29-8833-7256
India - New Delhi
Tel: 91-11-4160-8631
Fax: 91-11-4160-8632
France - Paris
Tel: 33-1-69-53-63-20
Fax: 33-1-69-30-90-79
India - Pune
Tel: 91-20-3019-1500
Japan - Osaka
Tel: 81-6-6152-7160
Fax: 81-6-6152-9310
Germany - Dusseldorf
Tel: 49-2129-3766400
Germany - Munich
Tel: 49-89-627-144-0
Fax: 49-89-627-144-44
Japan - Tokyo
Tel: 81-3-6880- 3770
Fax: 81-3-6880-3771
Germany - Pforzheim
Tel: 49-7231-424750
Korea - Daegu
Tel: 82-53-744-4301
Fax: 82-53-744-4302
Italy - Milan
Tel: 39-0331-742611
Fax: 39-0331-466781
Korea - Seoul
Tel: 82-2-554-7200
Fax: 82-2-558-5932 or
82-2-558-5934
Italy - Venice
Tel: 39-049-7625286
Malaysia - Kuala Lumpur
Tel: 60-3-6201-9857
Fax: 60-3-6201-9859
Netherlands - Drunen
Tel: 31-416-690399
Fax: 31-416-690340
Malaysia - Penang
Tel: 60-4-227-8870
Fax: 60-4-227-4068
Poland - Warsaw
Tel: 48-22-3325737
Philippines - Manila
Tel: 63-2-634-9065
Fax: 63-2-634-9069
Singapore
Tel: 65-6334-8870
Fax: 65-6334-8850
Taiwan - Hsin Chu
Tel: 886-3-5778-366
Fax: 886-3-5770-955
Spain - Madrid
Tel: 34-91-708-08-90
Fax: 34-91-708-08-91
Sweden - Stockholm
Tel: 46-8-5090-4654
UK - Wokingham
Tel: 44-118-921-5800
Fax: 44-118-921-5820
Taiwan - Kaohsiung
Tel: 886-7-213-7830
Taiwan - Taipei
Tel: 886-2-2508-8600
Fax: 886-2-2508-0102
Thailand - Bangkok
Tel: 66-2-694-1351
Fax: 66-2-694-1350
China - Xiamen
Tel: 86-592-2388138
Fax: 86-592-2388130
China - Zhuhai
Tel: 86-756-3210040
Fax: 86-756-3210049
03/25/14
 2008-2014 Microchip Technology Inc.