Digital Power BoosterPack
Digital Power BoosterPack
Description Features
TI Designs provide the foundation that you need • Features a Non-Isolated, Digitally-Controlled DC-
including methodology, testing and design files to DC Buck Converter
quickly evaluate and customize the system. TI Designs • Offers a Quick and Easy Way to Learn About
help you accelerate your time to market. Digital Power Supply Control Using C2000™ MCUs
– Controlled by the F280049C LaunchPad
Resources
– Voltage Mode Control (VMC)
TIDM-DC-DC-BUCK Tool Folder Containing Design Files – Peak Current Mode Control (PCMC)
• Offers an Onboard Active Load for Transient
Performance Testing
Ask our TI E2E™ support experts • Offers Various powerSUITE Tools
– Software Frequency Response Analyzer
(SFRA)
– Compensation Designer
– Solution Adapter
Applications
• Server Power Supplies
• Telecom Rectifiers
• Industrial Power Supplies
• UPS Systems
• Smart Grid and Energy
• Automotive Charging
• Data Storage
Vin Vout
+
An IMPORTANT NOTICE at the end of this TI reference design addresses authorized use, intellectual property matters and other
important disclaimers and information.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 1
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Introduction www.ti.com
1 Introduction
This document offers a step-by-step guide to controlling the C2000™ Digital Power Buck Converter
BoosterPack (BOOSTXL-BUCKCONV) power stage using Voltage Mode Control (VMC) and Peak Current
Mode Control (PCMC). Both control mode examples start with open-loop excitation before proceeding to a
tunable closed-loop system. The reader is expected to have a basic understanding of power converters
and control using feedback loops.
The BOOSTXL-BUCKCONV provides a quick and easy way to learn about digital power supply control
and design using C2000 devices. This board consists of a DC-DC synchronous buck power stage
controlled by a compatible C2000 LaunchPad™. The example solutions for this guide use the
LAUNCHXL-F280049C. (1)
The software accompanying this design is packaged in the DigitalPower SDK for C2000. These examples
allow for programming the TMS320F280049C microcontroller (MCU) and experimenting with control
parameters to tune the loop for optimal system performance. This kit supports powerSUITE tools including
Compensation Designer, Software Frequency Response Analyzer (SFRA), and Solution Adapter for the
evaluation of the complete system.
1.1 Trademarks
C2000, BoosterPack, TI E2E, LaunchPad, Code Composer Studio, NexFET are trademarks of Texas
Instruments.
All other trademarks are the property of their respective owners.
(1)
The first release of TIDM-DC-DC-BUCK used LAUNCHXL-F28069M as the controller LaunchPad. This F2806x-based user's guide and
accompanying software can be downloaded with controlSUITE.
(2)
The powerSUITE tools for TIDM-DC-DC-BUCK require CCS v9.3 or later.
(3)
The examples for TIDM-DC-DC-BUCK are available in C2000Ware_DigitalPower_SDK v3.00.00.00 and later.
2 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Hardware and Resources Guide
The LaunchPad interfaces with the buck converter through the BoosterPack headers. The nominal input
bus voltage is 9 VDC, which can be supplied through the power terminal block at JP1. The DC-DC
synchronous buck power stage is designed to regulate the nominal output voltage at 2 VDC. The active
load provides a software-controlled switched load, which is useful for testing transient performance and
loop tuning.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 3
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Hardware and Resources Guide www.ti.com
The key interface signals between the LAUNCHXL-F280049C and the BOOSTXL-BUCKCONV are
described in Table 2, followed by the associated portion of the schematic.
4 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Hardware and Resources Guide
The F280049C MCU on the LAUNCHXL-F280049C controls the synchronous buck operation by driving
the high-side and low-side switches of the NexFET power block N1 using on-chip PWM signals operated
at 200-kHz. Resistor R4 and op amp U2 are used to sense the current of inductor L1 and feed the
representative analog signal back to the MCU.
A static load PR1 is permanently connected between the synchronous buck output and ground. A dynamic
active load PR2 can be switched in and out of the circuit by driving the MOSFET switch Q1 with a 50%
duty cycle PWM signal. This capability provides an active load feature at run time to support transient
performance testing and tuning. PR2 can also be turned on continuously to increase output load which
causes the inductor current to stay positive and nonzero, thus providing better loop response
measurements.
WARNING
This EVM is intended to be operated in a lab environment and is
considered by TI to be an unfinished product fit for general
consumer use. This EVM must be used only by qualified engineers
and technicians familiar with the risks associated with handling
electrical and mechanical components, systems, and subsystems.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 5
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Software Overview www.ti.com
3 Software Overview
C Programming Environment
Main
Initialization
System Configuration
Peripheral Configuration ePWM
Program Variables (5-us)
Software Libraries
Hardware Interrupts
ADC ISR
Control Update
Timer 1 Tasks
Timer 1 Yes Vout Slew
Task Due?
SFRA GUI SFRA Collect
(1-ms)
HRPWM Calibration
No
Exit
Timer 2 Tasks
Timer 2 Yes
Task Due? LED Heartbeat
(10-ms) SFRA Background
No
Timer 3 Tasks
Timer 3 Yes
Task Due? User Status
(100-ms) User Configuration
No
6 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Software Overview
The SFRA library is designed to enable frequency response analysis on digitally-controlled power
converters using software, without requiring external lab equipment. For high-frequency power conversion
applications, the SFRA library can measure the open-loop and plant characteristics of the system to
calculate loop stability parameters such as bandwidth, gain margin, and phase margin. Refer to the C2000
Software Frequency Response Analyzer (SFRA) Library and Compensation Designer in SDK Framework
User's Guide for more information.
This kit also supports Compensation Designer and Solution Adapter for system evaluation, tuning, and
porting to custom hardware. Figure 5 shows the typical process flow for designing and tuning a system
using the powerSUITE tools.
Solution Adapter demonstrates how the TI digital power supply kit example can be ported to a custom
digital power supply system that uses the same topology and similar MCU resources. The GUI provides
an easy interface for selecting the solution to adapt, selecting the relevant options for that solution, and
customizing those options to other hardware designs.
Compensation Designer is a software utility that helps with visualizing the behavior of the compensated
control system. The effects of the user-designed compensation scheme are estimated through the
analysis of system response data from SFRA measurements or from a simulated model. Solution Adapter
incorporates the generated compensator coefficients directly into the software project.
NOTE: In this guide, Compensation Designer support is only available for the VMC lab.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 7
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Software Overview www.ti.com
8 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
4.1 Objective
The objective of this lab is to verify the operation of the VMC hardware using an open-loop system. The
user will become familiar with the system hardware and how the buck output voltage can be controlled
using direct PWM duty cycle adjustments without a feedback loop. Because this system is running as an
open-loop, the ADC measured values are used only for user observation in this build. The PWM duty
cycle is adjusted manually using the Expressions window. A CCS graph will be used to visualize the
sensed output voltage, and SFRA will be used to measure the frequency response of the plant at run-time.
4.2 Overview
Lab 1 is configured to accept user input from the CCS Expressions window to set the duty cycle of the
PWM output that drives the complementary PWM-HI and PWM-LO signals on the BOOSTXL-
BUCKCONV.
A single Enhanced Pulse Width Modulator (ePWM) module controls the PWM signals and also triggers
ADC conversions to sense the plant feedback signals at a frequency of 200-kHz. Updates to the PWM
duty cycle are prepared in the ADC ISR such that they take affect in the following PWM cycle.
-Period-
EPWM[TBCTR] = EPWM[TBPRD]
-Duty Cycle-
EPWM[TBCTR] EPWM[TBCTR] = EPWM[CMPA]
EPWM[TBCTR] = 0
EPWM_A
(PWM-HI)
Complementary Dead-Band
EPWM_B
(PWM-LO)
In this project, the ePWM Time Base Counter Register (TBCTR), is configured to count-up from 0 until it
matches the Time Base Period Register (TBPRD). Once the period is reached, EPWM[TBCTR] will reset
to 0 on the next clock cycle, which will mark the beginning of the next ePWM period. Therefore, the
effective PWM frequency is determined by the amount of time needed for EPWM[TBCTR] to count from 0
to EPWM[TBPRD], plus one additional clock cycle to reset EPWM[TBCTR] back to 0.
The duty-cycle is controlled through the Counter Compare A Register (CMPA). At the beginning of each
ePWM period, the PWM-HI signal (controlled by EPWM_A) is driven high until EPWM[TBCTR] matches
EPWM[CMPA]. Upon reaching EPWM[CMPA], the ePWM will drive PWM-HI low until the next ePWM
period.
The ePWM Dead-Band Generator Submodule is configured to output a PWM-LO signal (controlled by
EPWM_B) that is complementary to PWM-HI, with inserted dead-band.
An on-chip analog Comparator Subsystem (CMPSS), with integrated reference DAC, is configured to
continuously monitor the current sense feedback (ILFB) signal for overcurrent events. In this project, an
overcurrent trip event will drive the PWM-HI signal low to stop conduction of the input voltage, and the
PWM-LO signal will continue to operate for debug visibility.
The main() background loop uses a timer-based state machine to schedule low-priority recurring tasks,
such as accepting user input. Three task scheduling queues are paced using three C28x CPU Timers that
are configured to expire at interval periods of 1 ms (A-tasks), 10 ms (B-tasks), and 100 ms (C-tasks).
Each priority queue will execute a single task in round-robin sequence whenever its respective pace timer
expires and resets.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 9
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
4.3 Procedure
• Install jumpers on JP1, JP2, and JP3 to share power between the XDS110 and the rest of the
LaunchPad
• Install jumpers on RXD, TXD, TMS, and TCK of J101 to enable XDS110 emulation and COM port
access
• Uninstall jumper on JP9 to use the 5-V supply from the USB port
• Install jumper on 3V3 of JP8 to make power available on Connector Site 2 (4) (this jumper is
optional if using Connector Site 1)
• Select GPIO28 and GPIO29 for UART pin selection on S8
• Select UART for GPIO28 and GPIO29 routing on S6
• Select Wait Boot (GPIO24 = On and GPIO32 = Off) on S2
(4)
A jumper on 5V0 of JP8 will have no effect.
10 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
• Install a jumper between J1[1] and J1[2] to select signal H3[2] as the source for PWM-LO
• Install a jumper on J2 to provide power to the MOSFET driver of the active load
• Turn off toggle switch SW1 (pointing away from the heatsinks) to isolate JP1 from the plant
• Insert the lead wires of the de-energized 9-VDC power supply into terminal block JP1:
– Follow the +Vin and GND polarity markings
– Tighten the terminal screws with the screwdriver to secure the wires in place
– Green light LD1 should be off
4. Plug the BOOSTXL-BUCKCONV into Site 2 (headers J5-J8) of the LAUNCHXL-F280049C (5)
5. Connect the LAUNCHXL-F280049C to the host computer using the micro-USB cable
6. Red lights LED0 and LED1 on the LAUNCHXL-F280049C should turn on
(5)
See Section 9.1 for additional plug-in options.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 11
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
4. Click on either the Import to CCS IDE shortcut from the navigation tree or the Import F280049C Project
shortcut from the kit page
5. If prompted, select Save the project into workspace and click the OK button
12 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
6. The buck_F28004x project will be imported into the Project Explorer window and the main.syscfg panel
will launch automatically
NOTE: The main.syscfg panel can be launched manually by double-clicking on the main.syscfg file
in the Project Explorer pane
2. Right-click on the buck_F28004x project in the Project Explorer window to activate the context menu
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 13
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
3. Select Rebuild Project to build the project using the settings configured with main.syscfg
4. The Console window will display build activity and indicate completion with **** Build Finished ****
5. Click on the buck_F28004x project in the Project Explorer window to select it as the focused project
6. Click on the Debug shortcut to launch the target configuration and load the project to LAUNCHXL-
F280049C
7. The C28xx CPU of the F280049C should now be connected and halted in buck_main.c, ready to run
the program in the CCS Debug perspective
14 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 15
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
b. Click on the Run Script option to clear and fill the Expressions window with the Lab 1 debug
variables described in Table 4
16 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
b. Click on Properties
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 17
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
18 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
NOTE: Selecting Yes will clear the Debug Enable Mask (DBGM) bit of Status Register 1 (ST1).
When DGBM is cleared to 0, memory and register values can be passed to the host
processor for updating the debugger windows.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 19
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
c. Increase the Continuous refresh interval value to 1000 ms and click on Apply
NOTE: The refresh operation introduces overhead to system debug and may degrade the
reliability of the debug link if the refresh intervals are too short. 1000-ms is a safe starting
value to use when experimenting with a new system. The refresh interval may be
changed at the discretion of the user.
d. Click on the Continuous Refresh shortcut in the Expressions window to enable periodic updates of
the variable values
e. Click on the Enable Continuous Refresh shortcut in the Single Time graph window to enable
periodic updates of the graph data
2. Red light LED4 on LAUNCHXL-F280049C will blink to indicate that the program is running
3. The BUCK_vInSensed_Volts value in the Expressions window should be close to 0-V (6)
4. Turn on the 9-VDC power supply
(6)
Noise in the 0-mV to 20-mV range is normal.
20 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
5. The BUCK_vInSensed_Volts value should now resemble the 9-VDC supply voltage
NOTE: The feedback voltage from the 9-VDC supply is always present on the ADC input pin of the
MCU, even when SW1 is turned off. To prevent damage to the MCU, avoid turning on the 9-
VDC supply while the LAUNCHXL-F280049C is powered off.
9. Confirm that the updated 30% duty cycle state is operating correctly, as Table 6 details:
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 21
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
22 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
1. Expand the BUCK_vOutLogRef structure in the Expressions window to access the member variables:
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 23
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
NOTE: Zoom-in on the graph by using the left-click selection on the label of either axis to
determine the viewing area. Use the Reset Zoom shortcut in the Single Time graph
window to return to the default zoom level.
NOTE: If the TCM does not trigger, try to adjust the BUCK_vOutLogRef.trigMin_V trigger level:
1. Clear BUCK_activeLoadEnable to 0
2. Change BUCK_vOutLogRef.trigMin_V to a value closer to
BUCK_vOutLogRef.triggered_V
3. Write 1 to BUCK_vOutLogRef.armTrig
4. Set BUCK_activeLoadEnable to 1
24 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
1. Enable the continuous active load mode to ensure that the buck converter operates in continuous
conduction mode:
• Set BUCK_activeLoadEnable to 1
• Set BUCK_activeLoadContEnable to 1
• Confirm the variable values as Table 9 shows:
2. Return to main.syscfg either by clicking on the open tab or by double-clicking on the file in the Project
Explorer window
3. Click the RUN SFRA button to launch the SFRA GUI window
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 25
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
26 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
NOTE: The COM port device description is XDS110 Class Application/User UART.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 27
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
12. The SFRA chart will update when the sweep is complete
28 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 1: Open-Loop Check for VMC
13. Record the results under the SFRA chart for comparison with the compensated VMC results in Lab 2
(Section 5.3.6)
14. The raw SFRA data is saved to the project workspace for offline inspection and for use with
Compensation Designer in Lab 2 (Section 5.3.2)
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 29
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 1: Open-Loop Check for VMC www.ti.com
6. Continue to the next lab, or disconnect LAUNCHXL-F280049C with the following steps:
a. Click the Terminate shortcut to disconnect the debug connection
b. Close CCS
c. Disconnect the LAUNCHXL-F280049C micro-USB cable to power off the board
30 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 2: Closed-Loop Control with VMC
5.1 Objective
The objective of this lab is to demonstrate the regulation of the buck converter output voltage using a VMC
feedback control-loop that is implemented in software. Compensation Designer will be used to configure
the performance of the control loop, and SFRA will be used to validate the results at run-time. An active-
load circuit that is controlled by the software will provide a switched load to test the transient performance
of the system. A method for fine-tuning at run-time will also be used.
The control loop in this lab was manually tuned to meet generic stability and performance targets for
demonstration purposes. Custom tuning can be achieved using the same tools and procedures described
in this lab.
NOTE: Lab 2 should only be attempted after the Lab 1 operational checks have been completed
(Section 4.3.6 and Section 4.3.7).
5.2 Overview
Lab 2 uses the same code base as Lab 1 except for the following build-time changes:
• Lab 2 responds to user requests for a regulated output voltage level using BUCK_vOutSetRef_Volts
instead of a PWM duty-cycle using BUCK_dutySetRef_pu
• Lab 2 introduces a compensated voltage-loop to dynamically adjust the PWM duty-cycle to follow the
requested output voltage
The software has been configured to provide closed-loop VMC control for the buck power stage. A 2-pole
2-zero DCL compensator (DF22) implements the control law for the control loop. The DF22 compensator
accepts the output voltage error as its input and returns the compensated control effort.
The output voltage error (ek) is calculated as the difference between the user-requested output voltage
versus the ADC-sensed output voltage.
The control effort (uk) is interpreted as a per-unit duty cycle that is converted to a proportionate
EPWM[CMPA] value to realize the approximate duty cycle for driving the FET switches on the buck
converter.
BUCK_vOutSensed
5.3 Procedure
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 31
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 2: Closed-Loop Control with VMC www.ti.com
32 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 2: Closed-Loop Control with VMC
NOTE: The path of SFRAData.csv can be found by inspecting its file properties in the Project
Explorer tree (buck_F28004x » SFRAData » SFRAData.csv).
c. Click Open
d. Change the Plant Option from Modelled to SFRA Data
4. Fill in the Pole Zero parameter values as Table 11 shows:
NOTE: Compensation Designer will not act upon typed values until the user presses the Enter key
in the input field.
5. Confirm that the Digital Compensator results match the values in Table 12:
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 33
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 2: Closed-Loop Control with VMC www.ti.com
NOTE: If needed, review Lab 1 (Section 4.3.3) for the detailed steps to build and load projects with
CCS.
1. Confirm that the main.syscfg selections still match the project settings from Table 10
2. Rebuild the project
3. Load the program
• If starting from a new CCS session, use the Debug shortcut to launch the target configuration and
load the program
• If continuing uninterrupted from Lab 1, CCS may prompt to reload the program automatically after
rebuilding the project
34 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 2: Closed-Loop Control with VMC
NOTE: If needed, review Lab 1 (Section 4.3.4 and Section 4.3.4) for the detailed steps to prepare
the debug windows and enable the Real-time Debug mode.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 35
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 2: Closed-Loop Control with VMC www.ti.com
NOTE: If the program is allowed to run before the 9-VDC supply and SW1 are turned on, the system
may enter into a tripped state (BUCK_iOutTripFlag = 1). This happens because the control
loop will attempt to regulate the output voltage while the input voltage is off, which results in
a very large PWM duty cycle that will trigger the overcurrent protection when the supply is
eventually turned on. To clear the fault condition, perform these steps:
1. Reduce BUCK_vOutSetRef_Volts to 0.0 V
2. Write 1 to BUCK_iOutTripFlagClear
3. Confirm that BUCK_iOutTripFlag self-clears to 0
4. Restore BUCK_vOutSetRef_Volts back to 2.0 V
NOTE: If needed, review Lab 1 (Section 4.3.9) for the detailed steps to run a frequency sweep with
SFRA.
36 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 2: Closed-Loop Control with VMC
• The crossover frequency, gain margin, and phase margin values should be similar to the values
estimated by Compensation Designer (Section 5.3.2)
• Compare the performance to the open-loop measurements from Lab 1 (Section 4.3.9)
• Record the results for comparison with a modified compensator (Section 5.3.8) and PCMC in Lab
4 (Section 7.3.4)
7. Click Disconnect
8. Close the SFRA window
9. Clear BUCK_activeLoadEnable to 0
10. Clear BUCK_activeLoadContEnable to 0
NOTE: If needed, review Lab 1 (Section 4.3.8) for the detailed steps to graph the output voltage.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 37
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 2: Closed-Loop Control with VMC www.ti.com
3. Set BUCK_activeLoadEnable to 1
4. Record the voltage drop and recovery time shown in the graph for comparison with a modified
compensator (Section 5.3.8)
5. Clear BUCK_activeLoadEnable to 0
1. Expand the BUCK_ctrlRef structure to access the member variables shown in Table 15:
38 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 2: Closed-Loop Control with VMC
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 39
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 2: Closed-Loop Control with VMC www.ti.com
7. Repeat the load transient response graphing procedure from Section 5.3.7
8. Compare the initial response to this modified response
NOTE: If needed, review Lab 1 (Section 4.3.10) for the detailed steps to disable Real-time Mode
and disconnect the LAUNCHXL-F280049C.
40 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 3: Open-Loop Check for PCMC
6.1 Objective
The objective of this lab is to verify the operation of the PCMC hardware using an open voltage-loop
system. The user will be introduced to the concept of indirectly influencing the PWM duty cycle by setting
a peak current limit.
Without the ability to control the duty cycle directly, there is an increased potential for the system to
encounter unfavorable boundary conditions and become unstable. Therefore, Lab 3 will have fewer
exercises than the other labs.
6.2 Overview
Lab 3 is configured to accept user input from the CCS Expressions window to vary the peak ILFB current
limit that applies to each PWM cycle. Each PWM cycle will start by driving PWM-HI high until the peak
current threshold is reached, at which time, the PWM-HI signal will be driven low for the rest of the PWM
cycle. As with VMC, the ePWM Dead-Band Generator Submodule will produce a complementary PWM-
LO signal with inserted dead-band.
-Period-
EPWM[TBCTR] = EPWM[TBPRD]
EPWM[TBCTR]
EPWM[TBCTR] = 0
CMPSS[DACVAL]
ILFB
-Duty Cycle-
EPWM_A
(PWM-HI)
Complementary Dead-Band
EPWM_B
(PWM-LO)
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 41
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 3: Open-Loop Check for PCMC www.ti.com
The peak current limit is enforced using a CMPSS module with the following embedded components:
ILFB
CMPSS
+
Buck
Comp ePWM
Ramp Converter
DAC ±
Generator
• Comparator — Continuously monitors the voltages on its inputs for level crossing. For PCMC, the
comparator monitors the inductor feedback current signal against the peak current threshold that is
approximated by the internal reference DAC voltage. The comparator generates a trip signal to the
driving ePWM when the current limit is met, which then responds by driving PWM-HI low.
• Reference DAC — Provides an internal reference voltage to the inverting input of the comparator. For
PCMC, the DAC value represents the peak current threshold. The Ramp Generator is leveraged to
control the DAC with value updates that are synchronized with the driving ePWM and the comparator
state.
• Ramp Generator — Controls the reference DAC value using a state machine that is designed to
generate a series of decreasing values for PCMC slope compensation.
Although overcurrent protection is inherent in the peak current loop, a redundant protection path is
implemented in the program using spare comparator resources on the MCU.
A general overview of implementing PCMC using a digital controller is found in the Digital Peak Current
Mode Control With Slope Compensation Using the TMS320F2803x Application Report . (8)
6.3 Procedure
NOTE: If needed, review Lab 1 (Section 4.3.3) for the detailed steps to build and load projects with
CCS.
42 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 3: Open-Loop Check for PCMC
NOTE: If needed, review Lab 1 (Section 4.3.4 and Section 4.3.4) for the detailed steps to prepare
the debug windows and enable the Real-time Debug mode.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 43
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 3: Open-Loop Check for PCMC www.ti.com
NOTE: If needed, review Lab 1 (Section 4.3.10) for the detailed steps to disable Real-time Mode
and disconnect the LAUNCHXL-F280049C.
44 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 4: Closed-Loop Control with PCMC
7.1 Objective
The objective of this lab is to demonstrate the regulation of the buck converter output voltage using a
PCMC feedback control-loop that is implemented on the LAUNCHXL-F280049C MCU. Loop tuning will
rely on the run-time method that was introduced in Lab 2 (Section 5.3.8) because Compensation Designer
does not support PCMC-based buck converters. SFRA and load transient response measurements will be
taken for comparison against VMC.
The control loop in this lab was manually tuned to meet generic stability and performance targets for
demonstration purposes. Custom tuning can be achieved using the same tools and procedures described
in this lab.
7.2 Overview
Lab 4 uses the same code base as Lab 3 except for the following build-time changes:
• Lab 4 responds to user requests for a regulated output voltage level using BUCK_vOutSetRef_Volts
instead of a current-loop limit using BUCK_dacSetRef_pu
• Lab 4 introduces a compensated voltage-loop to dynamically adjust the current-loop threshold to follow
the requested output voltage
The PCMC solution shares the same DF22 compensator and output voltage error calculations from the
VMC solution, but the control effort is converted to a proportionate CMPSS[DACVAL] value to set the
current threshold for PCMC instead of a PWM duty cycle for VMC.
ILFB
+
Buck
BUCK_vOutSet ek uk Comp ePWM
Ramp Converter
± DCL DF22
Generator
DAC ±
BUCK_vOutSensed
7.3 Procedure
NOTE: If needed, review Lab 1 (Section 4.3.3) for the detailed steps to build and load projects with
CCS.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 45
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 4: Closed-Loop Control with PCMC www.ti.com
NOTE: If needed, review Lab 1 (Section 4.3.4 and Section 4.3.4) for the detailed steps to prepare
the debug windows and enable the Real-time Debug mode.
46 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 4: Closed-Loop Control with PCMC
5. Confirm that the default 2-V output state is operating correctly as Table 20 shows:
NOTE: If the program is allowed to run before the 9-VDC supply and SW1 are turned on, the system
may enter into a tripped state (BUCK_iOutTripFlag = 1). This happens because the control
loop will attempt to regulate the output voltage while the input voltage is off, which results in
a very large peak current threshold that will trigger the overcurrent protection when the
supply is eventually turned on. To clear the fault condition, perform these steps:
1. Reduce BUCK_vOutSetRef_Volts to 0.0 V
2. Write 1 to BUCK_iOutTripFlagClear
3. Confirm that BUCK_iOutTripFlag self-clears to 0
4. Restore BUCK_vOutSetRef_Volts back to 2.0 V
NOTE: If needed, review Lab 1 (Section 4.3.9) for the detailed steps to run a frequency sweep with
SFRA.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 47
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 4: Closed-Loop Control with PCMC www.ti.com
• The phase margin for PCMC is expected to be considerably better than VMC from Lab 2
(Section 5.3.6)
• The crossover frequency and gain margin are expected to be similar between PCMC and VMC
• Record the results for comparison with a modified compensator (Section 7.3.6)
NOTE: If needed, review Lab 1 (Section 4.3.8) for the detailed steps to graph the output voltage.
48 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 4: Closed-Loop Control with PCMC
4. Set BUCK_activeLoadEnable to 1
5. Record the voltage drop and recovery time for comparison with a modified compensator (Section 7.3.6)
NOTE: If needed, review Lab 2 (Section 5.3.8) for details regarding compensator updates at run-
time.
1. Expand BUCK_ctrlRef
2. Set BUCK_ctrlRef.ctrlFormat to Format_PID
3. Expand ctrlPid
4. Confirm the default PID values:
5. Reduce Kp to 20.0
6. Write 1 to BUCK_ctrlRef.ctrlUpdate
7. Repeat the SFRA procedure from Section 7.3.4 to measure the modified frequency response
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 49
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Lab 4: Closed-Loop Control with PCMC www.ti.com
50 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Lab 4: Closed-Loop Control with PCMC
NOTE: If needed, review Lab 1 (Section 4.3.10) for the detailed steps to disable Real-time Mode
and disconnect the LAUNCHXL-F280049C.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 51
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Adapting This Solution www.ti.com
Main
(buck_main.c)
System Solution
(buck.c, buck.h)
driverlib
C2000 MCU
52 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Adapting This Solution
Common configuration settings, such as pin selection, PWM frequency, and ADC conversion scaling, can
often be customized through buck_settings.h and buck_user_settings.h, with no additional files changes
required when running the solution on an MCU from the F28004x device family. The non-powerSUITE
version of the project is recommended for such customization because the buck_settings.h file will be
overwritten by powerSUITE at build-time.
To import the nonpowerSUITE version of the project into CCS, use the CCS Edit Perspective » Project
Menu » Import CCS Projects... function.
Updates to the buck_hal.c and buck_hal.h source files may be required when modifying the solution to
use different hardware capabilities, or to run on another C2000 device family. The register-level
abstraction provided by driverlib helps significantly when porting code between devices that both have
driverlib support.
Changes in software features, algorithm, and library usage are typically implemented in buck_main.c,
buck.c, and buck.h.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 53
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Appendix www.ti.com
9 Appendix
The equivalent J5–J8 socket strip connectors on the LAUNCHXL-F280049C are placed further away from
the short-edge board side when compared to the LAUNCHXL-F28069M. As such, the LAUNCHXL-
F280049C is not able to seat fully onto the BOOSTXL-BUCKCONV Rev 2.1 board because of mechanical
interference between the LAUNCHXL-F280049C board edge and BOOSTXL-BUCKCONV JP1 terminal
block. While not ideal, this partial seating is expected to suffice for running the labs in this guide.
54 C2000™ Digital Power BoosterPack™ TIDU986A – September 2015 – Revised May 2020
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
www.ti.com Appendix
The fit between the BOOSTXL-BUCKCONV Rev 2.1 and the LAUNCHXL-F280049C can be improved by
press-fitting a LaunchPad style passthrough socket strip connector (such as a Samtec SSQ-110-03-T-D)
between the two boards for the purpose of introducing additional clearance.
Similarly, the BOOSTXL-BUCKCONV Rev 2.1 board can be reworked to replace the terminal strip
connectors with LaunchPad style socket strip connectors to enable top-side plug-in access to both Site 1
and Site 2 of the LAUNCHXL-F280049C.
TIDU986A – September 2015 – Revised May 2020 C2000™ Digital Power BoosterPack™ 55
Submit Documentation Feedback
Copyright © 2015–2020, Texas Instruments Incorporated
Revision History www.ti.com
Revision History
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.
• This reference design is completely updated to take advantage of newer C2000 hardware and software features. ........ 1
TI PROVIDES TECHNICAL AND RELIABILITY DATA (INCLUDING DATASHEETS), DESIGN RESOURCES (INCLUDING REFERENCE
DESIGNS), APPLICATION OR OTHER DESIGN ADVICE, WEB TOOLS, SAFETY INFORMATION, AND OTHER RESOURCES “AS IS”
AND WITH ALL FAULTS, AND DISCLAIMS ALL WARRANTIES, EXPRESS AND IMPLIED, INCLUDING WITHOUT LIMITATION ANY
IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT OF THIRD
PARTY INTELLECTUAL PROPERTY RIGHTS.
These resources are intended for skilled developers designing with TI products. You are solely responsible for (1) selecting the appropriate
TI products for your application, (2) designing, validating and testing your application, and (3) ensuring your application meets applicable
standards, and any other safety, security, or other requirements. These resources are subject to change without notice. TI grants you
permission to use these resources only for development of an application that uses the TI products described in the resource. Other
reproduction and display of these resources is prohibited. No license is granted to any other TI intellectual property right or to any third
party intellectual property right. TI disclaims responsibility for, and you will fully indemnify TI and its representatives against, any claims,
damages, costs, losses, and liabilities arising out of your use of these resources.
TI’s products are provided subject to TI’s Terms of Sale (www.ti.com/legal/termsofsale.html) or other applicable terms available either on
ti.com or provided in conjunction with such TI products. TI’s provision of these resources does not expand or otherwise alter TI’s applicable
warranties or warranty disclaimers for TI products.
Mailing Address: Texas Instruments, Post Office Box 655303, Dallas, Texas 75265
Copyright © 2020, Texas Instruments Incorporated