-
MPLAB® Code Configurator Switch Mode Power Supply
Library User's Guide
Preface
Important: Notice to customers:All documentation becomes dated,
and this manual is no exception. Microchip tools and
documentationare constantly evolving to meet customer needs, so
some actual dialogs and/or tool descriptions may differfrom those
in this document. Please refer to our website (www.microchip.com)
to obtain the latestdocumentation available.
Documents are identified with a “DS” number. This number is
located on the bottom of each page, in frontof the page number. The
numbering convention for the DS number is “DSXXXXXA”, where “XXXXX”
is thedocument number and “A” is the revision level of the
document.
For the most up-to-date information on development tools, see
the MPLAB® Integrated DevelopmentEnvironment (IDE) online help.
Select the Help menu, and then Topics to open a list of available
onlinehelp files.
OverviewThis document describes how to install, configure and
use the MPLAB Code Configurator (MCC) Switch Mode PowerSupply
(SMPS) Library before starting or during the development process of
an embedded software applicationdesigned with hybrid PIC®
microcontrollers.
Recommended ReadingThis user's guide refers to the MCC SMPS
Library only. Other useful documents are listed below. The
followingMicrochip documents are available and recommended as
supplemental reference resources:
• MPLAB Code Configurator User's Guide• MPLAB X IDE User’s
Guide
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
1
-
Table of Contents
Preface...........................................................................................................................................................1
1.
Introduction.............................................................................................................................................
3
2.
Installation...............................................................................................................................................
4
2.1. Installing the MCC SMPS Library from the Microchip
Website.................................................... 42.2.
Updating the MCC SMPS
Library.................................................................................................52.3.
Loading Different MCC SMPS Library
Versions...........................................................................52.4.
Older MCC SMPS Library
Versions.............................................................................................
6
3. User
Interface..........................................................................................................................................7
3.1. Information
Tab.............................................................................................................................73.2.
Configuration
Tab.........................................................................................................................
73.3. Schematic
Tab..............................................................................................................................83.4.
Pin Manager
Section....................................................................................................................8
4. MCC SMPS Library
Modules..................................................................................................................
9
4.1. CIP
Blocks..................................................................................................................................104.2.
Control
Modes............................................................................................................................144.3.
Power Supply
Topologies...........................................................................................................154.4.
Demos........................................................................................................................................17
5. Sample
Application...............................................................................................................................
18
5.1. Synchronous Buck
PCMC..........................................................................................................185.2.
SEPIC with LED
Dimming..........................................................................................................25
6.
Appendix...............................................................................................................................................
34
7. Revision
History....................................................................................................................................
35
The Microchip
Website.................................................................................................................................36
Product Change Notification
Service............................................................................................................36
Customer
Support........................................................................................................................................
36
Microchip Devices Code Protection
Feature................................................................................................
36
Legal
Notice.................................................................................................................................................
36
Trademarks..................................................................................................................................................
37
Quality Management
System.......................................................................................................................
37
Worldwide Sales and
Service.......................................................................................................................38
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
2
-
1. IntroductionThe MCC SMPS Library allows quick and easy
configuration, and code generation for 8-bit PIC MCU
SMPSapplications. This library contains a set of modules for
generic fundamental SMPS building blocks and topologies.These
support PIC device families designed for CIP Hybrid Power
Controllers. The MCC SMPS Library is an add-onlibrary that needs to
be installed on top of the MCC plug-in tool and the MPLAB X IDE.
Instructions on how to installthe library are in the 2.
Installation section. The 3. User Interface and 4. MCC SMPS Library
Modules sectionsdiscuss the library interface and currently
available modules. The 5. Sample Application section provides a
sampleapplication of the library and how to configure the project
using the library's modules.
The MCC SMPS Library is currently available for the
PIC16(L)F176X and the PIC16(L)F177X device families.
Additional support for other devices will be available in a
future release of a new version of the library.
Introduction
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
3
-
2. InstallationThe MCC SMPS Library can be installed via the
Microchip website. The following chapters describe theseprocedures
and the library update process.
2.1 Installing the MCC SMPS Library from the Microchip
WebsiteThe library can be downloaded from the Microchip website by
typing the address www.microchip.com/mcc in a webbrowser, selecting
the Current Download tab and downloading the current version of the
.zip file. The library canalso be found on
www.microchip.com/CIP-power. See Figure 2-1.
Figure 2-1. Downloading the MCC SMPS Library from the Microchip
Website
Once downloaded, extract the archive that contains the library
to a preferred location (see Figure 2-2). To install thelibrary,
complete the following instructions:
1. Open MPLAB X IDE.2. Go to Tools → Options → Plug-ins.3.
Select MPLAB Code Configurator 3.x tab from Plug-ins option.4.
Click on Install Library/Open Library Folder.5. Navigate to the
folder where the downloaded .zip file has been extracted and select
the
SMPSPowerLibrary_vX.X.X.jar file.6. Restart MPLAB X IDE
(optional).
Installation
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
4
http://www.microchip.com/mcchttps://www.microchip.com/design-centers/8-bit/development-tools/pic-hardware/cip-hybrid-power-development-board
-
Figure 2-2. Installing the MCC SMPS Library from the Downloaded
File
2.2 Updating the MCC SMPS LibraryWhen a new version of the
library is available, the download link on the Current Download tab
will be replaced withthe latest version. To update the library,
download the new archive corresponding to the version of the
software andfollow the same steps as in 2.1 Installing the MCC SMPS
Library from the Microchip Website. Once installed, thenew version
will be added to the Versions tab of the library in MCC.
2.3 Loading Different MCC SMPS Library VersionsIf more than one
version of the library is currently installed, switching between
versions is possible through thefollowing steps:
1. Open MPLAB Code Configurator v3 from the Tools → Embedded
menu.2. Expand the Versions tab under Software/SMPS Power Library
(the loaded version is indicated by the green
mark in Figure 2-3).3. Right click on the desired version of the
library and select Mark for load.4. Click on Load Selected
Libraries button to load the library.
Installation
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
5
-
Figure 2-3. Library Version Marked as Loaded
2.4 Older MCC SMPS Library VersionsOlder versions of the library
will be available at the same www.microchip.com/mcc address, under
the ArchiveDownload tab.
Installation
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
6
http://www.microchip.com/mcc
-
3. User InterfaceThe MCC SMPS Library user interface has four
main areas listed below and shown in Figure 3-1.
Figure 3-1. MCC SMPS Library Module User Interface
1. Information tab – This tab contains general information about
the building block/topology module.2. Configuration tab – This tab
is the main area that displays the configurable parameters and
settings of the
building block/topology.3. Schematic tab – This tab shows the
visual representation of the building block/topology module.4. Pin
Manager section – Each building block/topology has its
corresponding section in the Pin Manager.
3.1 Information TabThis tab displays the functional description
of the building block/topology driven by the module. It contains a
briefoverview of the parameters and may also contain links to
relevant webpages or documentation.
3.2 Configuration TabThis tab is divided in two sections, as
shown in Figure 3-2.
User Interface
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
7
-
Figure 3-2. MCC SMPS Library Module Configuration Tab
Sections
1. Hardware Settings – This section contains the various
configurable parameters.2. Submodule Selection – This section
contains the Upload All button and a list of selectable
submodules/
peripherals.
Each parameter is connected to a specific peripheral setting and
directly updates those settings without going into theperipheral
module. The Upload All button of the Submodule Selection loads all
submodules and peripherals used bythe building block/topology.
Also, the listed submodule/peripheral has its own Upload button for
selective loading.
3.3 Schematic TabThe schematic image displayed in this tab shows
the connectivity between the loaded peripherals or submodules.This
tab shows the available I/O pin functions found in 3.4 Pin Manager
Section. The 4. MCC SMPS LibraryModules section shows the schematic
image for each available MCC SMPS Library module.
3.4 Pin Manager SectionThe pins contained in every MCC SMPS
Library module section are connected to specific peripheral I/O
pinfunctions. Some pins are only visible once the peripheral
connected to the pins’ function is loaded.
MCC SMPS Library pins are managed by following the hierarchy
shown in Figure 4-2. Pins from the upper levels ofthe hierarchy
directly configure the pins from the lower level modules that it
controls. However, changing a pin in thelower level modules cannot
control its corresponding pin on the upper level module.
User Interface
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
8
-
4. MCC SMPS Library ModulesThe MCC SMPS Library modules fall
under four categories, as shown in Figure 4-1.
Figure 4-1. List of MCC SMPS Library Modules
These modules operate in a hierarchical manner illustrated in
Figure 4-2.
Figure 4-2. Operational Hierarchy of MCC SMPS Library
Modules
Appication
SyncBuck
VMCPCMC
Modulator Block (PCMC)
Compensator Block
Modulator Block (VMC)Fault Block
CMPDACFVR
PRGCOGPWMTMRCMPDACFVR
OPADACFVR
PRGCOGPWMTMRCMPFVR
Control Modes
CIP Blocks
Topology
Peripheral Drivers
SEPIC_LED
Pulse Modulator Block
PRGCOGDSM
10bit PWM16bit PWM
TMRCMPFVR
CIP_SEPIC_LED_Driver CIP_HybridPower_SK_PCMC
CIP_HybridPower_SK_VMCDemos
Each level of the hierarchy represents one of the
categories:
1. CIP Blocks: These modules are the fundamental building blocks
of an SMPS application, and control a set ofCore Independent
Peripherals (CIPs).
2. Control Modes: These modules control a set of CIP blocks and
function as an independent PWM controller.3. Power Supply
Topologies: These modules configure Control Mode modules for
specific topologies.4. Demos: These modules provide predefined
parameters for the power supply topology modules with a
specific
hardware platform.
MCC SMPS Library Modules
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
9
-
Modules from the upper level of the hierarchy can load the lower
level modules (submodules) they configure. When amodule is removed,
the submodules are removed with it. However, when a submodule is
removed, the users mustmanually load it again directly from the
Device Resources. Configuration flexibility increases when using
modules inthe lower levels of the hierarchy.
The modules’ configurable parameters and pins are set in a
unidirectional behavior. When a parameter is changed inthe higher
level module GUI (i.e., PCMC > Duty Cycle), the same value is
passed on to a similar parameter in thelower level module GUI
(i.e., Modulator Block > Duty Cycle). However, changing the
parameter in the lower levelmodule does not update the similar
parameter in the higher level module. This unidirectional behavior
avoids circulardependencies between each module.
Multiple instances of these modules are available for multiple
PWM driver applications. Each instance consists ofdefault
peripheral combinations determined by a PWM Controller Block (refer
to Appendix).
If different peripherals are required in place of the default
peripherals, users can still change the peripherals set in theCIP
Block modules. However, this change in peripherals will not update
the list of pins in the Control Mode andTopology modules. The
updated pins must be assigned in the CIP Block modules.
4.1 CIP BlocksThe CIP blocks act as fundamental building blocks
of an SMPS application. The configurable parameters directlycontrol
CIP settings where users only need to have basic knowledge of the
CIPs. This eases the development of anSMPS application by not
requiring the users to load and configure each CIP individually.
The users can still tailor theCIPs for custom configurations. The
drivers generated by these modules contain basic peripheral
operations neededby the block.
4.1.1 Compensator BlockThis block configures the error amplifier
of the feedback loop, including its programmable reference source
andpinout options to connect an external RC compensation network.
The Compensator Block consists of the followingCIPs, as shown in
Figure 4-3:
1. Operational Amplifier (OPA)2. Digital-to-Analog Converter
(DAC)3. Fixed Voltage Reference (FVR)
The voltage reference for the error amplifier is supplied by a
variable voltage reference configured through the DAC.The DAC
reference is derived from the FVR or the VDD of 5V. The error
amplifier operation can be overridden to keepit from saturation
during dimming off-time.
Figure 4-3. Compensator Block Schematic
DACOPA
+
_
FVR
EA_OUT FB
to PWMComparator orSlopeCompensation
Output Feedback Signal(select pin)
Set Reference Voltage
Error Amplifier Outputconnected to theCompensation
Network(select pin)
5V
to PWM override
MCC SMPS Library Modules
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
10
-
4.1.2 Modulator Block PCMCThis block is a feedback loop
modulator for the Peak Current Mode Control (PCMC). It compares the
error signalfrom the Compensator Block and the input current sense
signal to change the duty cycle of the PWM drive signal.This block
consists of the following CIPs, as shown in Figure 4-4:
1. Pulse-Width Modulator (PWM)2. Programmable Ramp Generator
(PRG)3. Complementary Output Generator (COG)4. Comparator (CMP)5.
Fixed Voltage Reference (FVR)6. Timer
Note: The module only loads a timer peripheral if a 16-bit PWM
is loaded.
Figure 4-4. Modulator Block PCMC Schematic
Set value of Slope Compensation
signal from the EA_OUT of the Compensator Block
Input Current Sense Signal (select pin)
Set Switching Frequency and
Max. Duty Cycle
Set dead-band of the complementary outputs
PRG
FS OUT IN
RS
PWM
OUT_H OUT_LCS
+
_
CMP
High-Side Switch PWM Drive (select pin)
Low-Side Switch PWM Drive (select pin)
Half-Bridge Mode/Single-Ended Mode
Set blanking time for the Rising Source Signal
signal from FAULT BLOCK trigger
COGRS
FS B/D
A/C
AS*for Half-Bridge Mode only
The configurable parameters include the following:
1. PWM Output mode, switching frequency and maximum duty cycle2.
Slope rate of the ramp generator3. Comparator inputs4.
Rising/falling edge dead-time and blanking for nonoverlapping PWM
drive signals
There is also an option for a stand-alone open-loop PWM
operation. This option establishes the connection of theCOG to the
PWM only. This peripheral interconnection provides a fixed
frequency and duty cycle that will help thedesigner to analyze the
operation of the power plant during hardware validation and design
optimization (e.g., FETdrive circuit and feedback signal
integrity). However, as the regulation is disabled when this option
is selected, lies inthe responsibility of the designer to select a
switching frequency and duty ratio carefully to prevent
damages.
4.1.3 Modulator Block VMCThis block is a feedback loop modulator
block for the Voltage Mode Control (VMC). It compares the
internallygenerated sawtooth ramp voltage and the EA_OUT signal
(error signal) of the Compensator Block to change the dutycycle of
the PWM drive signal. The Modulator Block VMC consists of the CIPs
listed in 4.1.2 Modulator Block PCMCwith an additional DAC, as
shown in Figure 4-5. It also contains similar configurable
parameters like PCMC.
MCC SMPS Library Modules
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
11
-
Figure 4-5. Modulator Block VMC Schematic
PWM
OUT_H OUT_L
PRG
FS OUT IN
RS
DAC
High-Side Switch PWM Drive (select pin)
Low-Side Switch PWM Drive (select pin)
signal from the EA_OUT of the Compensator Block OPA3OUT or
OPA4OUT
Set dead-band of the complementary outputs
Set start and stop value of artificial ramp
Set Switching Frequency and
Max. Duty Cycle
Half-Bridge Mode/Single-Ended Mode
COGRS
FS B/D
A/C
AS
+ _
CMP
TMR
*for Half-Bridge Mode only
signal from FAULT BLOCK trigger
4.1.4 Pulse Modulator BlockThis block is a feedback loop
modulator block for PCMC with enhanced LED dimming method. The
enhanceddimming technique provides more visually attractive dimming
and protects the LEDs from overcurrent. This is doneby
synchronously turning off the load switch and the converter PWM
output to cut the path of the decaying currentfrom the output
capacitor discharge and allow the LED to turn off faster.
In addition to the CIPs and parameters listed in 4.1.2 Modulator
Block PCMC, the Pulse Modulator block has anadditional 16-bit
resolution PWM for the dimming frequency, and a Digital Signal
Modulator (DSM) as shown in Figure4-6. Both the dimming frequency
and duty cycle can be configured through this block.
MCC SMPS Library Modules
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
12
-
Figure 4-6. Pulse Modulator Block Schematic
Set value of Slope Compensation
signal from the EA_OUT of the Compensator Block
Input Current Sense Signal (select pin)
Set Switching Frequency and
Max. Duty Cycle
Set dead-band of the complementary outputs
PRGFS
OUT IN RS
DSM
OUT_H OUT_LCS
+
_
CMP
High-Side Switch PWM Drive (select pin)
Low-Side Switch PWM Drive (select pin)
Half-Bridge Mode/Single-Ended Mode
Set blanking time for the Rising Source Signal
signal from FAULT BLOCK trigger
COG
FS B/D AS
16-bit PWM
10-bit PWM CARH
CARL MOD Q
Set Pulse Modulating Frequency and
Duty Cycle
EXT_DIM External Dimming Output pin
RS A/C
*for Half-Bridge Mode only
4.1.5 Fault BlockThe Fault Block protects the power supply from
failure caused by abnormal input and output conditions. This
blockcompares the FAULT input of the PWM output logic COG and
supports programmable thresholds for the referencevoltage levels.
When the FAULT input exceeds the set reference voltage, the Fault
protection will be triggered andthe PWM drive signal will shut
down.
The Fault Block consists of the following CIPs, as shown in
Figure 4-7:
1. Comparator (CMP)2. Digital-to-Analog Converter (DAC)3. Fixed
Voltage Reference (FVR)
Figure 4-7. Fault Block Schematic
DAC+
_
FAULT
CMP
FAULT Input (select pin)
Set Reference Voltage
to COG shutdown source 5V
FVR
MCC SMPS Library Modules
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
13
-
4.2 Control ModesThese modules utilize the existing CIP blocks
previously described to operate as a closed-loop PWM
controller.These blocks do not allow the selection of specific CIP
blocks and refer to high-level design parameters only. Thegenerated
drivers contain a basic soft start code for a proper start-up of
the power supply. However, there is nooption for influencing the
ramp-up timing. The effective start-up time will, therefore, depend
on the feedback loopbandwidth determined by the feedback loop
compensator design.
4.2.1 Peak Current Mode Control (PCMC)The PCMC module is
composed of the Compensator and a Modulator Block, as shown in
Figure 4-8. This moduleuses two feedback loops: an outer loop,
incorporating the nominal power supply output voltage or current
value, andan inner inductor current loop.
The Compensator Block processes the voltage difference between
the output feedback signal and the referencevoltage to generate the
error signal, which is used as reference signal of the inner
current loop. The current referencesignal is modulated by the slope
compensation ramp to avoid subharmonic oscillation.
The Modulator Block compares the inductor current feedback
signal with the modulated current reference signal. Theresult of
the comparison determines the required duty cycle to maintain the
power supply output in regulation.
Figure 4-8. PCMC Module Schematic
+ -
VIN
VIN
L
C LOAD
VOUT
RFB1
+
_
DAC+
_
FVR
COMPENSATOR BLOCK (OPA+DAC+FVR)
EA_OUT FB
PRGFS
OUT IN RS
COGRS
FS B/D
A/C
OUT_H OUT_LCS
+
_
CMP
OPA
PCMC/PULSE MODULATOR BLOCK (PWM+COG+CMP+PRG)+DSM
RFB2
5V
*for Half-Bridge Mode only
PWM
EXT_DIM
*for LED Dimming only
PWM
DSM
The configurable parameters include the following:
1. PWM output mode, switching frequency and maximum duty cycle2.
Slope rate of the ramp generator3. Comparator inputs4.
Rising/Falling edge dead-time and blanking
MCC SMPS Library Modules
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
14
-
5. Error amplifier reference voltage
The PCMC module also has an option to support linear or weber
LED dimming. This option has the PCMC moduleuse the Pulse Modulator
Block instead of the Modulator Block PCMC.
4.2.2 Voltage Mode Control (VMC)The VMC module is composed of
the Compensator and the Modulator Block VMC, as shown in Figure
4-9. Thismodule compares the output voltage feedback signal with
the programmable internal reference voltage.
The Compensator Block produces the voltage error between the
output feedback signal with the set referencevoltage. The Modulator
Block VMC compares the error signal and the internally generated
sawtooth waveform signal.The result of the comparison determines
the duty cycle to keep the power supply output in regulation.
Figure 4-9. VMC Module Schematic
+ -
VIN
VIN
L
C LOAD
VOUT
RFB1
+
_
DAC+
_
5V
COMPENSATOR BLOCK (OPA+DAC+FVR)
EA_OUT FB
PWM
OUT_H OUT_L
OPA
VMC MODULATOR BLOCK (PWM+COG+CMP+PRG+DAC)
RFB2
PRGFS
OUT IN RS
DAC
+ _
CMP
COGRS
FS B/D
A/C
FVR
*for Half-Bridge Mode only
In addition to the parameters listed in 4.2.1 Peak Current Mode
Control (PCMC), the VMC module includes the Startand Stop voltage
of the rising ramp. These voltages, together with the switching
frequency and duty cycle, determinethe slew rate of the resulting
rising ramp (see Equation 4-1).
Equation 4-1. VMC Rising Ramp Slew Rate ComputationSlew Rate =
Stop Voltage − Start Voltage × Sw Frequency in Hz)/ 1000000 × Duty
Cycle volts per microsecond4.3 Power Supply Topologies
These modules support specific SMPS topologies that operate in
either Peak Current or Voltage Mode Control.Based on the selected
mode, the PCMC or VMC module is loaded and configured for the
selected topology. Thesemodules provide an ease in setting the
parameters of the chosen topology as well as the parameters for the
PWMdrive signals.
MCC SMPS Library Modules
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
15
-
4.3.1 Synchronous Buck (SyncBuck)A buck converter is designed to
produce lower average output voltage than the input voltage. It
uses synchronousswitching where the low-side switch requires a
second PWM signal that is complement of the high-side switch
signal.This block supports asynchronous and synchronous operation.
By default, it uses synchronous switching byincorporating an active
low-side switch to rectify the inductor current during the off-time
(active rectification).However, the modulator subblock allows the
user to turn off the synchronous switch drive signal and thus to
operatethe converter in Asynchronous mode (passive rectification).
See Figure 5-1.
The configurable parameters include:
1. Control mode2. PWM switching frequency and maximum duty
cycle3. Reference voltage of the error amplifier4. Rising/Falling
edge dead-time and blanking5. Slope rate of the slope
compensation/ramp generator6. Start and Stop of the voltage ramp
(see Note below)
Figure 4-10. SyncBuck Module Schematic
VOUT
CS
8-BIT PIC®MICROCONTROLLER
+
-VIN
VIN
L
C LOAD
Note: This is only available for VMC operation.
4.3.2 Single-Ended Primary Inductance Converter with LED Dimming
(SEPIC_LED)A Single-Ended Primary Inductance Converter (SEPIC) is
an attractive LED driver solution for automotiveapplications. The
SEPIC provides a regulated output even if the supply goes below or
above the output voltage.Simultaneously, the SEPIC can also provide
a noninverted output referring to the same ground potential as its
input.In LED dimming, when the automotive electrical supply voltage
drops below or rises above the LED’s voltage, theSEPIC can maintain
the LED current constant.
The SEPIC_LED module provides an ease in setting the PWM drive
signals as well as the LED dimming method andLED dimming steps.
This module uses the PCMC Control mode module in Single-Ended mode,
with the dimmingoption enabled.
The configurable parameters include:
1. PWM switching frequency and maximum duty cycle2. Reference
voltage of the error amplifier3. Leading edge blanking4.
Overvoltage protection reference voltage5. Slope rate of the slope
compensation6. Dimming frequency and duty cycle7. Dimming mode and
resolution
MCC SMPS Library Modules
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
16
-
Figure 4-11. SEPIC_LED Module Schematic
VOUT
CS8-BIT PIC®
MICROCONTROLLER
+
-VIN
VIN
COUT
L1 Cc
L2
D
OUT_H
LED
EXT_DIM
4.4 DemosThese modules support SMPS-specific topology hardware
that operates in either Peak-Current or Voltage modecontrol. Based
on the selected demo module, the corresponding topology module is
loaded and configured to supportthe demo. Demo modules serve as
sample applications when using the SMPS library.
4.4.1 CIP_HybridPowerSK_PCMCThe CIP_HybridPower_SK_PCMC demo
runs a Synchronous Buck Converter in Peak-Current mode control,
usingthe SyncBuck3 Topology module on the CIP Hybrid Power Starter
Kit depicted in Figure 5-12.
The CIP Hybrid Power Starter Kit is a hardware platform designed
to demonstrate the flexibility of Microchip’s CIPHybrid Power
microcontroller, as used in an SMPS application.
CIP_HybridPower_SK_PCMC provides the predefineparameters and pins
to run this hardware platform with no additional software code to
be added.
Click Upload All to load all the necessary modules, then click
Generate. To adjust the switching frequency,maximum duty cycle, and
other parameters, go into the SyncBuck3 Topology module.
4.4.2 CIP_HybridPower_SK_VMCThe CIP_HybridPower_SK_VMC demo runs
a Synchronous Buck Converter in Voltage mode control, using
theSyncBuck2 Topology module on the CIP Hybrid Power Starter Kit.
Like the CIP_HybridPower_SK_PCMC, all theparameters and pin
assignment used to run the CIP Hybrid Power Starter Kit in Voltage
mode control are alreadydefined in this module.
Click the Upload All button to load all the necessary modules,
then click on Generate. To adjust the switchingfrequency, maximum
duty cycle and other parameters, go into the SyncBuck2 Topology
module.
4.4.3 CIP_SEPIC_LED_DRIVERThe CIP_SEPIC_LED_DRIVER demo runs a
SEPIC LED Driver in Peak-Current mode control with dimming
depictedin Figure 5-12, using the SEPIC_LED Topology module. Click
the Upload All button to load all the necessarymodules, then click
Generate.
To adjust the switching frequency, maximum duty cycle and other
parameters, go into the SEPIC_LED Topologymodule.
MCC SMPS Library Modules
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
17
https://www.microchip.com/Developmenttools/ProductDetails/DM164147
-
5. Sample ApplicationThis section contains examples on how to
use the library for specific topologies.
5.1 Synchronous Buck PCMCThis sample application is based on a
PCMC Closed Loop Demo of the CIP Hybrid Power Starter Kit. The
MCCSMPS Library can set up a Synchronous Buck PCMC in three
ways:
1. Using the CIP blocks2. Using the Control mode - PCMC module3.
Using the SyncBuck module4. Using the Demo -
CIP_HybridPower_SK_PCMC
The project may be configured with the following parameters:
• Switching Frequency = 500 kHz• Maximum Duty Cycle = 90%• Slope
Compensation = 0.3 V/us• Rising Edge Dead-time = 15 ns• Falling
Edge Dead-time = 60 ns• Leading Edge Blanking = 250 ns• Error
Amplifier Reference Voltage = 2.5V• OVP Protection = 2V
Device Recommendation: PIC16F1779.
5.1.1 Using the CIP BlocksThe CIP blocks provide a modular way
of configuring the Synchronous Buck PCMC. Below are the steps
ondeveloping the project using the CIP blocks:
1. Create a new project in MPLAB X and open MCC.2. Set up the
System Module (i.e., System Clock of 8 MHz with PLL).3. Expand the
SMPS Power Controllers/CIP Blocks section of the MCC device
resources.4. Load and configure the Modulator PCMC, Compensator and
Fault Block in no definite order (see 5.1.1.1
Configuring the Modulator Block PCMC, 5.1.1.2 Configuring the
Compensator Block and 5.1.1.3 Configuringthe Fault Block
sections).
5. Click Generate and MCC will produce the respective C source
and header files for each block and CIPs.6. Use the generated
APIs/functions to run the application.
The following sections list the step-by-step procedure on
configuring the CIP blocks:
5.1.1.1 Configuring the Modulator Block PCMC1. Select a set of
compatible peripherals on the Submodule Selection pane (see Note
below).2. Click Upload All to load the CIPs and the CS and OUT_H/L
pin selections.3. Keep Stand-alone Open Loop PWM unchecked.4.
Configure the parameters with the required values (see Figure
5-1).5. Select the desired CS input and OUT_H/L pins.
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
18
http://ww1.microchip.com/downloads/en/DeviceDoc/CIP-Hybrid-Power-Starter-Kit-40002086A.pdf
-
Figure 5-1. Modulator Block PCMC Configuration
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
19
-
5.1.1.2 Configuring the Compensator Block1. Select a set of
compatible peripherals on the Submodule Selection pane (see Note
below). The users can also
select a feedback input (FB) pin which preselects the CIPs and
the EA_OUT pin. The selected OPA outputmust be available as an
input source for the Modulator Block's ramp generator (refer to
Figure 5-1).
2. Click Upload All to load the CIPs.3. Configure the parameters
with the required values (see Figure 5-2).
Figure 5-2. Compensator Block Configuration
5.1.1.3 Configuring the Fault Block1. Select a set of compatible
peripherals on the Submodule Selection pane (see Note below). The
selected CIPs
must be compatible with the other blocks’ CIPs.2. Click Upload
All to load the CIPs and the Fault pin selection.3. Configure the
parameters with the required values (see Figure 5-3).4. Indicate
the COG used by the Modulator Block.5. Select the desired Fault
input pin.
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
20
-
Figure 5-3. Fault Block Configuration
Note: To verify the compatibility of the selected peripherals,
refer to the device data sheet or use one of the
higherconfiguration hierarchy layers like Control mode or topology
modules (see 5.1.2 Using the Control Mode - PCMCModule and 5.1.3
Using the SyncBuck Module sections).
5.1.2 Using the Control Mode - PCMC ModuleThis section provides
an easier way to configure the Synchronous Buck PCMC using the PCMC
module. Forconvenience, these modules have up to four preselected
CIP groups, which are determined by the selected FB pin.Below are
the steps on developing the project using the PCMC module.
1. Create a new project in MPLAB X and open MCC.2. Set up the
System Module (i.e., System Clock of 8 MHz with PLL).3. Expand the
SMPS Power Controllers/Control Modes section of the MCC device
resources.4. Load the PCMC module.5. Select an FB pin to preselect
the EA_OUT pin and the CIPs loaded by the CIP blocks (see Note
below).6. Click Upload All to load the other pin selections, the
CIP blocks and its peripherals.7. Check Enable Soft Start to enable
the quick soft start sequence.8. Configure the parameters with the
required values (see Figure 5-4).9. Assign pins for the CS, OUT_H
and OUT_L pins.10. Load the Fault Block and follow the steps in
5.1.1.3 Configuring the Fault Block for the Fault protection.11.
Click Generate and MCC will produce the respective C source and
header files.
Note: The FB pin determines which CIPs are compatible to the
Compensator Block’s Op Amp. The Appendix showsthe CIP combinations
determined by the FB pin (or PWM Controller Block in the Topology
level) for thePIC16F176X/7X devices.
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
21
-
Figure 5-4. PCMC Module Configuration
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
22
-
5.1.3 Using the SyncBuck ModuleThe easiest way to configure a
Synchronous Buck PCMC is through the SyncBuck module in PCMC mode.
Thismodule provides up to four PWM Controller Block channels that
correspond to the CIP groups of the Control modemodules. Below are
the steps on developing the project using the SyncBuck module:
1. Create a new project in MPLAB X and open MCC.2. Set up the
System Module (i.e., System Clock of 8 MHz with PLL).3. Expand the
SMPS Power Controllers/Power Supply Topologies section of the MCC
device resources.4. Load the SyncBuck module.5. Set the mode to
PCMC.6. Select a PWM Controller Block.7. Click Upload All to load
the other pin selections, the PCMC module and its CIP blocks and
peripherals.8. Configure the parameters with the required values
(see Figure 5-5).9. Assign pins for the CS, OUT_H and OUT_L
pins.10. Follow steps 10 to 12 from 5.1.2 Using the Control Mode -
PCMC Module.
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
23
-
Figure 5-5. SyncBuck Module Configuration
5.1.4 Using the Demo – CIP_HybridPower_SK_PCMCThis module serves
as an example module for the CIP Hybrid Power Starter Kit. Below
are the steps on developingthe project using the CIP Hybrid Power
Starter Kit
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
24
-
1. Create a new project in MPLAB X and open MCC2. Set up the
System Module (i.e., System Clock of 8 MHz with PLL)3. Expand the
SMPS Power Controllers/Demos section of the MCC device resources4.
Load the CIP_HybridPower_SK_PCMC5. Click Upload All to load the
SyncBuck3 topology, the PCMC module and its CIP blocks and
peripherals, as
seen in Figure 5-66. Click Generate and MCC will produce the
respective C source and header files
Figure 5-6. CIP_HybridPower_SK_PCMC
5.2 SEPIC with LED DimmingThis sample application is based on a
SEPIC LED Driver Demo Board Application Note. The MCC SMPS Library
canset up a SEPIC with LED dimming in three ways:
1. Using the CIP blocks2. Using the Control mode - PCMC module3.
Using the SEPIC_LED module4. Using the CIP_SEPIC_LED_DRIVER
The project may be configured with the following parameters:
• Switching Frequency = 350 kHz• Maximum Duty Cycle = 90%
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
25
http://ww1.microchip.com/downloads/en/AppNotes/00001978B.pdf
-
• Slope Compensation = 0.2 V/us• Leading Edge Blanking = 250 ns•
Error Amplifier Reference Voltage = 2.5V• OVP Protection = 2V•
Dimming Frequency = 1 kHz• Dimming Duty Cycle = 50%
Device Recommendation: PIC16F1769
5.2.1 Using the CIP BlocksThe CIP blocks provide a modular way
of configuring the SEPIC with LED dimming. Below are the steps
ondeveloping the project using the CIP blocks:
1. Create a new project in MPLAB X and open MCC.2. Set up the
System Module (i.e., System Clock of 8 MHz with PLL).3. Expand the
SMPS Power Controller/CIP blocks section of the MCC device
resources.4. Load and configure the Pulse Modulator, Compensator
and Fault Block in no definite order (see 5.2.1.1
Configuring the Pulse Modulator Block, 5.2.1.2 Configuring the
Compensator Block and 5.2.1.3 Configuringthe Fault Block
sections).
5. Click Generate and MCC will produce the respective C source
and header files for each block and CIPs.6. Use the generated
APIs/functions to run the application.
The following sections list the step-by-step procedure on
configuring the CIP blocks:
5.2.1.1 Configuring the Pulse Modulator Block1. Select a set of
compatible peripherals on the Submodule Selection pane (see Note
below).2. Click Upload All to load the CIPs and the CS, OUT_H/L and
EXT_DIM pin selections.3. Keep Stand-alone Open Loop PWM
unchecked.4. Configure the parameters with the required values (see
Figure 5-7).5. Select the desired CS input and OUT_H and EXT_DIM
pins.
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
26
-
Figure 5-7. Pulse Modulator Block Configuration
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
27
-
5.2.1.2 Configuring the Compensator Block1. Select a set of
compatible peripherals on the Submodule Selection pane (see Note
below). The users can also
select a feedback input (FB) pin which preselects the CIPs and
the EA_OUT pin. The selected OPA outputmust be available as an
input source for the Modulator Block's ramp generator (refer to
Figure 5-7).
2. Click Upload All to load the CIPs.3. Configure the parameters
with the required values (see Figure 5-8).
Figure 5-8. Compensator Block Configuration
5.2.1.3 Configuring the Fault Block1. Select a set of compatible
peripherals on the Submodule Selection pane (see Note below).2.
Click Upload All to load the CIPs and the Fault pin selection.3.
Configure the parameters with the required values (see Figure
5-9).4. Indicate the COG used by the Modulator Block.5. Select the
desired Fault input pin.
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
28
-
Figure 5-9. Fault Block Configuration
Note: To verify the compatibility of the selected peripherals,
refer to the device data sheet or use one of the
higherconfiguration hierarchy layers like Control mode or topology
modules (see 5.2.2 Using the Control Mode - PCMCModule and 5.2.3
Using the SEPIC_LED Module sections).
5.2.2 Using the Control Mode - PCMC ModuleThis section provides
an easier way to configure the SEPIC with LED dimming using the
PCMC module. It has anadditional option to set the dimming steps to
a maximum of 2048 incremental steps. For convenience, these
moduleshave up to four preselected CIP groups which are determined
by the selected FB pin. Below are the steps ondeveloping the
project using the PCMC module:
1. Create a new project in MPLAB X and open MCC.2. Set up the
System Module (i.e., System Clock of 8 MHz with PLL).3. Expand the
SMPS Power Controller/Control Modes section of the MCC device
resources.4. Load the PCMC module.5. Check the Enable Dimming
Checkbox.6. Select an FB pin to preselect the EA_OUT pin and the
CIPs loaded by the CIP blocks (See the Note in 5.1.2
Using the Control Mode - PCMC Module section).7. Click Upload
All to load the other pin selections, the CIP blocks and its
peripherals.8. Configure the parameters with the required values
(see Figure 5-10).9. Assign pins for the CS, OUT_H and EXT_DIM
pins.10. Load the Fault Block and follow the steps in 5.2.1.3
Configuring the Fault Block for the Fault protection (See
Note below).11. Click Generate and MCC will produce the
respective C source and header files.
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
29
-
Figure 5-10. PCMC Module Configuration
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
30
-
Note: For consistency with the SEPIC LED Driver Application
Note, interchange the selected comparators of theloaded Pulse
Modulator Block and Fault Block by clicking the individual Upload
buttons. However, this will not updatethe list of CS and Fault pins
in the Control mode and topology modules. The appropriate CS and
Fault pins must bereassigned in the CIP block modules.
5.2.3 Using the SEPIC_LED ModuleThe easiest way to configure a
SEPIC with LED dimming is through the SEPIC_LED module. This module
providesup to four PWM Controller Block channels which corresponds
to the CIP groups of the Control mode modules. Beloware the steps
on developing the project using the SEPIC_LED module:
1. Create a new project in MPLAB X and open MCC.2. Set up the
System Module (i.e., System Clock of 8 MHz with PLL).3. Expand the
SMPS Power Controller/Power Supply Topologies section of the MCC
device resources.4. Load the SEPIC module.5. Select a PWM
Controller Block.6. Click Upload All to load the other pin
selections, the PCMC module and its CIP blocks and peripherals
(See
Note above).7. Configure the parameters with the required values
(see Figure 5-11).8. Assign pins for the CS, OUT_H, EXT_DIM and
Fault pins.9. Follow steps 11 and 12 of 5.2.2 Using the Control
Mode - PCMC Module.
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
31
-
Figure 5-11. SEPIC_LED Module Configuration
5.2.4 Using the Demo – CIP_SEPIC_LED_DriverThis module serves as
an example module for SEPIC LED Driver Demo Board. Below are the
steps on developingthe project using the CIP_SEPIC_LED_Driver
1. Create a new project in MPLAB X and open MCC2. Set up the
System Module (i.e., System Clock of 8Mhz with PLL)3. Expand the
SMPS Power Controllers/Demos section of the MCC device resources4.
Load the CIP_SEPIC_LED_Driver5. Click Upload All to load the
SEPIC_LED topology, the PCMC module and its CIP blocks and
peripherals, as
seen in Figure 5-126. Click Generate and MCC will produce the
respective C source and header files
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
32
-
Figure 5-12. CIP_SEPIC_LED_Driver
Sample Application
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
33
-
6. AppendixTable 6-1. Peripheral Combinations Assigned to Each
PWM Controller Block for the PIC16F1773/6/8 Device
PWMController
Block
CompensatorBlock
Fault Block Modulator Block (PCMC/VMC) Pulse Modulator Block
Channel OPA 10-bitDAC
CMP 5-bitDAC
COG PRG PWM(Switching)
CMP 5-bit DAC(for VMC
only)
PWM(Switching)
PWM(Dimming)
DSM
CH1 OPA1 DAC1 CMP2 DAC3 COG1 PRG1 10-bitPWM3+TMR2
CMP1 DAC3 10-bitPWM3+TMR2
16-bitPWM5
DSM1
CH2 OPA2 DAC2 CMP4 DAC4 COG2 PRG2 10-bitPWM4+TMR2
CMP3 DAC4 10-bitPWM4+TMR2
16-bitPWM6
DSM2
CH3 OPA3 DAC5 CMP6 DAC7 COG3 PRG3 16-bit PWM11 CMP5 DAC7
10-bitPWM9+TMR2
16-bitPWM11
DSM3
Table 6-2. Peripheral Combinations Assigned to Each PWM
Controller Block for the PIC16F1777/9 and 176x Devices
PWMController
Block
CompensatorBlock
Fault Block Modulator Block (PCMC/VMC) Pulse Modulator Block
Channel OPA 10-bitDAC
CMP 5-bitDAC
COG PRG PWM(Switching)
CMP 5-bit DAC(for VMC
only)
PWM(Switching)
PWM(Dimming)
DSM
CH1 OPA1 DAC1 CMP2 DAC3 COG1 PRG1 10-bitPWM3+TMR2
CMP1 DAC3 10-bitPWM3+TMR2
16-bitPWM5
DSM1
CH2 OPA2 DAC2 CMP4 DAC4 COG2 PRG2 10-bitPWM4+TMR2
CMP3 DAC4 10-bitPWM4+TMR2
16-bitPWM6
DSM2
CH3 OPA3 DAC5 CMP7 DAC7 COG3 PRG3 16-bit PWM12 CMP8 DAC7
10-bitPWM10+TMR2
16-bitPWM12
DSM3
CH4 OPA4 DAC6 CMP6 DAC8 COG4 PRG4 16-bit PWM11 CMP5 DAC8
10-bitPWM9+TMR2
16-bitPWM11
DSM4
Note: CH3 and CH4 are for the 1777/9 devices only.
Table 6-3. Feedback Pins Assigned to Each PWM Controller
Block
PWM Controller Block Feedback (FB) Pin
Channel 1764/5 1768/9 177X
CH1 RC1 RB4 RA5
CH2 - RC6 RB2
CH3 - - RC7
CH4 - - RD2
Appendix
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
34
-
7. Revision HistoryDoc Rev. Date Comments
C 03/2020 Added Demos under MCC SMPS Library Modules. Added
Using the Demo –CIP_HybridPower_SK_PCMC and Using the Demo –
CIP_SEPIC_LED_DRIVER underSample Application. Updated 7
figures.
B 07/2019 PIC16(L)F176X device support, PCMC with dimming, and
SEPIC_LED topology modules.Added Pulse Modulator Block,
Single-Ended Primary Inductance Converter with LED
Dimming(SEPIC_LED) Modules and SEPIC with LED Dimming Sample
Application sections. AddedAppendix with 2 tables. Added up to 4
instances of each SMPS module. Removed table 5-1.Other minor
corrections.
A 12/2018 Initial document release.
Revision History
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
35
-
The Microchip WebsiteMicrochip provides online support via our
website at http://www.microchip.com/. This website is used to make
filesand information easily available to customers. Some of the
content available includes:
• Product Support – Data sheets and errata, application notes
and sample programs, design resources, user’sguides and hardware
support documents, latest software releases and archived
software
• General Technical Support – Frequently Asked Questions (FAQs),
technical support requests, onlinediscussion groups, Microchip
design partner program member listing
• Business of Microchip – Product selector and ordering guides,
latest Microchip press releases, listing ofseminars and events,
listings of Microchip sales offices, distributors and factory
representatives
Product Change Notification ServiceMicrochip’s product change
notification service helps keep customers current on Microchip
products. Subscribers willreceive email notification whenever there
are changes, updates, revisions or errata related to a specified
productfamily or development tool of interest.
To register, go to http://www.microchip.com/pcn and follow the
registration instructions.
Customer SupportUsers of Microchip products can receive
assistance through several channels:
• Distributor or Representative• Local Sales Office• Embedded
Solutions Engineer (ESE)• Technical Support
Customers should contact their distributor, representative or
ESE for support. Local sales offices are also available tohelp
customers. A listing of sales offices and locations is included in
this document.
Technical support is available through the website at:
http://www.microchip.com/support
Microchip Devices Code Protection FeatureNote 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 operatingspecifications contained in
Microchip’s Data Sheets. Most likely, the person doing so is
engaged in theft ofintellectual 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 protectionfeatures of
our products. Attempts to break Microchip’s code protection feature
may be a violation of the DigitalMillennium Copyright Act. If such
acts allow unauthorized access to your software or other
copyrighted work, youmay have a right to sue for relief under that
Act.
Legal NoticeInformation contained in this publication regarding
device applications and the like is provided only for
yourconvenience and may be superseded by updates. It is your
responsibility to ensure that your application meets with
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
36
http://www.microchip.com/http://www.microchip.com/pcnhttp://www.microchip.com/support
-
your specifications. MICROCHIP MAKES NO REPRESENTATIONS OR
WARRANTIES OF ANY KIND WHETHEREXPRESS OR IMPLIED, WRITTEN OR ORAL,
STATUTORY OR OTHERWISE, RELATED TO THE INFORMATION,INCLUDING BUT
NOT LIMITED TO ITS CONDITION, QUALITY, PERFORMANCE, MERCHANTABILITY
ORFITNESS FOR PURPOSE. Microchip disclaims all liability arising
from this information and its use. Use of Microchipdevices 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 suchuse. No licenses are conveyed, implicitly or
otherwise, under any Microchip intellectual property rights
unlessotherwise stated.
TrademarksThe Microchip name and logo, the Microchip logo,
Adaptec, AnyRate, AVR, AVR logo, AVR Freaks, BesTime,BitCloud,
chipKIT, chipKIT logo, CryptoMemory, CryptoRF, dsPIC, FlashFlex,
flexPWR, HELDO, IGLOO, JukeBlox,KeeLoq, Kleer, LANCheck, LinkMD,
maXStylus, maXTouch, MediaLB, megaAVR, Microsemi, Microsemi logo,
MOST,MOST logo, MPLAB, OptoLyzer, PackeTime, PIC, picoPower,
PICSTART, PIC32 logo, PolarFire, Prochip Designer,QTouch, SAM-BA,
SenGenuity, SpyNIC, SST, SST Logo, SuperFlash, Symmetricom,
SyncServer, Tachyon,TempTrackr, TimeSource, tinyAVR, UNI/O,
Vectron, and XMEGA are registered trademarks of Microchip
TechnologyIncorporated in the U.S.A. and other countries.
APT, ClockWorks, The Embedded Control Solutions Company,
EtherSynch, FlashTec, Hyper Speed Control,HyperLight Load,
IntelliMOS, Libero, motorBench, mTouch, Powermite 3, Precision
Edge, ProASIC, ProASIC Plus,ProASIC Plus logo, Quiet-Wire,
SmartFusion, SyncWorld, Temux, TimeCesium, TimeHub, TimePictra,
TimeProvider,Vite, WinPath, and ZL are registered trademarks of
Microchip Technology Incorporated in the U.S.A.
Adjacent Key Suppression, AKS, Analog-for-the-Digital Age, Any
Capacitor, AnyIn, AnyOut, BlueSky, BodyCom,CodeGuard,
CryptoAuthentication, CryptoAutomotive, CryptoCompanion,
CryptoController, dsPICDEM,dsPICDEM.net, Dynamic Average Matching,
DAM, ECAN, EtherGREEN, In-Circuit Serial Programming, ICSP,INICnet,
Inter-Chip Connectivity, JitterBlocker, KleerNet, KleerNet logo,
memBrain, Mindi, MiWi, MPASM, MPF,MPLAB Certified logo, MPLIB,
MPLINK, MultiTRAK, NetDetach, Omniscient Code Generation,
PICDEM,PICDEM.net, PICkit, PICtail, PowerSmart, PureSilicon,
QMatrix, REAL ICE, Ripple Blocker, SAM-ICE, Serial QuadI/O,
SMART-I.S., SQI, SuperSwitcher, SuperSwitcher II, 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.
The Adaptec logo, Frequency on Demand, Silicon Storage
Technology, and Symmcom are registered trademarks ofMicrochip
Technology Inc. in other countries.
GestIC is a registered trademark of Microchip Technology Germany
II GmbH & Co. KG, a subsidiary of MicrochipTechnology Inc., in
other countries.
All other trademarks mentioned herein are property of their
respective companies.© 2020, Microchip Technology Incorporated,
Printed in the U.S.A., All Rights Reserved.
ISBN: 978-1-5224-5829-6
Quality Management SystemFor information regarding Microchip’s
Quality Management Systems, please visit
http://www.microchip.com/quality.
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
37
http://www.microchip.com/quality
-
AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPECorporate Office2355
West Chandler Blvd.Chandler, AZ 85224-6199Tel: 480-792-7200Fax:
480-792-7277Technical Support:http://www.microchip.com/supportWeb
Address:http://www.microchip.comAtlantaDuluth, GATel:
678-957-9614Fax: 678-957-1455Austin, TXTel:
512-257-3370BostonWestborough, MATel: 774-760-0087Fax:
774-760-0088ChicagoItasca, ILTel: 630-285-0071Fax:
630-285-0075DallasAddison, TXTel: 972-818-7423Fax:
972-818-2924DetroitNovi, MITel: 248-848-4000Houston, TXTel:
281-894-5983IndianapolisNoblesville, INTel: 317-773-8323Fax:
317-773-5453Tel: 317-536-2380Los AngelesMission Viejo, CATel:
949-462-9523Fax: 949-462-9608Tel: 951-273-7800Raleigh, NCTel:
919-844-7510New York, NYTel: 631-435-6000San Jose, CATel:
408-735-9110Tel: 408-436-4270Canada - TorontoTel: 905-695-1980Fax:
905-695-2078
Australia - SydneyTel: 61-2-9868-6733China - BeijingTel:
86-10-8569-7000China - ChengduTel: 86-28-8665-5511China -
ChongqingTel: 86-23-8980-9588China - DongguanTel:
86-769-8702-9880China - GuangzhouTel: 86-20-8755-8029China -
HangzhouTel: 86-571-8792-8115China - Hong Kong SARTel:
852-2943-5100China - NanjingTel: 86-25-8473-2460China - QingdaoTel:
86-532-8502-7355China - ShanghaiTel: 86-21-3326-8000China -
ShenyangTel: 86-24-2334-2829China - ShenzhenTel:
86-755-8864-2200China - SuzhouTel: 86-186-6233-1526China -
WuhanTel: 86-27-5980-5300China - XianTel: 86-29-8833-7252China -
XiamenTel: 86-592-2388138China - ZhuhaiTel: 86-756-3210040
India - BangaloreTel: 91-80-3090-4444India - New DelhiTel:
91-11-4160-8631India - PuneTel: 91-20-4121-0141Japan - OsakaTel:
81-6-6152-7160Japan - TokyoTel: 81-3-6880- 3770Korea - DaeguTel:
82-53-744-4301Korea - SeoulTel: 82-2-554-7200Malaysia - Kuala
LumpurTel: 60-3-7651-7906Malaysia - PenangTel:
60-4-227-8870Philippines - ManilaTel: 63-2-634-9065SingaporeTel:
65-6334-8870Taiwan - Hsin ChuTel: 886-3-577-8366Taiwan -
KaohsiungTel: 886-7-213-7830Taiwan - TaipeiTel:
886-2-2508-8600Thailand - BangkokTel: 66-2-694-1351Vietnam - Ho Chi
MinhTel: 84-28-5448-2100
Austria - WelsTel: 43-7242-2244-39Fax: 43-7242-2244-393Denmark -
CopenhagenTel: 45-4485-5910Fax: 45-4485-2829Finland - EspooTel:
358-9-4520-820France - ParisTel: 33-1-69-53-63-20Fax:
33-1-69-30-90-79Germany - GarchingTel: 49-8931-9700Germany -
HaanTel: 49-2129-3766400Germany - HeilbronnTel:
49-7131-72400Germany - KarlsruheTel: 49-721-625370Germany -
MunichTel: 49-89-627-144-0Fax: 49-89-627-144-44Germany -
RosenheimTel: 49-8031-354-560Israel - Ra’ananaTel:
972-9-744-7705Italy - MilanTel: 39-0331-742611Fax:
39-0331-466781Italy - PadovaTel: 39-049-7625286Netherlands -
DrunenTel: 31-416-690399Fax: 31-416-690340Norway - TrondheimTel:
47-72884388Poland - WarsawTel: 48-22-3325737Romania - BucharestTel:
40-21-407-87-50Spain - MadridTel: 34-91-708-08-90Fax:
34-91-708-08-91Sweden - GothenbergTel: 46-31-704-60-40Sweden -
StockholmTel: 46-8-5090-4654UK - WokinghamTel: 44-118-921-5800Fax:
44-118-921-5820
Worldwide Sales and Service
© 2020 Microchip Technology Inc. User Guide DS50002835C-page
38
http://www.microchip.com/supporthttp://www.microchip.com
PrefaceTable of
Contents1. Introduction2. Installation2.1. Installing
the MCC SMPS Library from the Microchip Website2.2. Updating
the MCC SMPS Library2.3. Loading Different MCC SMPS Library
Versions2.4. Older MCC SMPS Library Versions
3. User Interface3.1. Information
Tab3.2. Configuration Tab3.3. Schematic Tab3.4. Pin
Manager Section
4. MCC SMPS Library Modules4.1. CIP
Blocks4.1.1. Compensator Block4.1.2. Modulator Block
PCMC4.1.3. Modulator Block VMC4.1.4. Pulse Modulator
Block4.1.5. Fault Block
4.2. Control Modes4.2.1. Peak Current Mode Control
(PCMC)4.2.2. Voltage Mode Control (VMC)
4.3. Power Supply Topologies4.3.1. Synchronous Buck
(SyncBuck)4.3.2. Single-Ended Primary Inductance Converter
with LED Dimming (SEPIC_LED)
4.4. Demos4.4.1. CIP_HybridPowerSK_PCMC4.4.2. CIP_HybridPower_SK_VMC4.4.3. CIP_SEPIC_LED_DRIVER
5. Sample Application5.1. Synchronous Buck
PCMC5.1.1. Using the CIP Blocks5.1.1.1. Configuring the
Modulator Block PCMC5.1.1.2. Configuring the Compensator
Block5.1.1.3. Configuring the Fault Block
5.1.2. Using the Control Mode - PCMC
Module5.1.3. Using the SyncBuck Module5.1.4. Using the
Demo – CIP_HybridPower_SK_PCMC
5.2. SEPIC with LED Dimming5.2.1. Using the CIP
Blocks5.2.1.1. Configuring the Pulse Modulator
Block5.2.1.2. Configuring the Compensator
Block5.2.1.3. Configuring the Fault Block
5.2.2. Using the Control Mode - PCMC
Module5.2.3. Using the SEPIC_LED Module5.2.4. Using the
Demo – CIP_SEPIC_LED_Driver
6. Appendix7. Revision HistoryThe Microchip
WebsiteProduct Change Notification ServiceCustomer SupportMicrochip
Devices Code Protection FeatureLegal NoticeTrademarksQuality
Management SystemWorldwide Sales and Service