Boost Converter Using The PIC16F753 Analog Features: Performance Specifications

Download as pdf or txt
Download as pdf or txt
You are on page 1of 9

TB3104

Boost Converter Using the PIC16F753 Analog Features

Author: Mihnea Rosu-Hamzescu


PERFORMANCE SPECIFICATIONS
Microchip Technology Inc. Electrical specifications over operating range:
3V ≤ VDD ≤ 5V.
INTRODUCTION
TABLE 1: ELECTRICAL SPECIFICATIONS
This technical brief describes a boost power supply
based on the PIC16F753, using 100% analog control Input Voltage Range 3-5 Volts DC
for output regulation. The implementation has the Output Voltage 5 Volts DC
advantage of not using any processor power, leaving Output Current 2 Amperes
the core free for more complex firmware. Also, the
Output Power 10 Watts
analog loop has a much faster response time to load
steps and input voltage changes, making it useful for Code Size 99 Words
many applications. Ram Size 0 Bytes
The peripherals needed for the application are: Efficiency 87% Measured at 2A
• One Complementary Output Generator (CWG) Available Code Size 1949 Words
• One Comparator (COMP) Available RAM Size 128 Bytes
• One Operational Amplifier (OPA)
• One 9-bit Digital-to-Analog Converter (DAC)
• One Fixed Voltage Reference (FVR)
• One Slope Compensation Module (SC)
• One Capture/Compare/PWM Module (CCP)
The peripherals are internally connected through
firmware, significantly reducing the number of external
pins needed for the implementation.

 2013 Microchip Technology Inc. DS90003104A-page 1


TB3104
BLOCK DIAGRAM Figure 1 illustrates the block diagram of the power
supply.
The output voltage is regulated using Peak Current
mode control. The output voltage is compared to the
reference voltage by the error amplifier (OPA) and the
result is fed to the peak current comparator. The
internal slope compensation module subtracts a
software programmable ramp from the error amplifier
output before the peak current comparator.
The CCP provides a fixed-frequency, fixed duty cycle
control signal and the peak current comparator output
is selected as a second (level-based) source for the
COG falling edge.

FIGURE 1: BLOCK DIAGRAM

VIN

Load

COG1OUT0
CCP COG
PIC16F753

Falling Edge Event


ISense

+ - COMP
SC
1.2V FVR DAC

OA +
FB
-

DS90003104A-page 2  2013 Microchip Technology Inc.


TB3104
FIGURE 2: EFFICIENCY
94,00 %

92,00 %

90,00 %

88,00 %

86,00 % 4V Input
3V Input
84,00 %

82,00 %

80,00 %

78,00 %
50 mA 100 250 500 750 1000 1200 1400 1600 1800 2000
mA mA mA mA mA mA mA mA mA mA

FUNCTIONAL DESCRIPTION Output current limiting is not integrated into the control
loop, thus a second comparator should be used for this
This power supply is a fixed-frequency Peak Current purpose and selected as an auto-shutdown source for
mode converter. The operational amplifier (OPA) is the COG. The error amplifier output is the inductor peak
used as an error amplifier (EA) for the output voltage, current limit, so keeping this value low by a resistor
and a comparator limits the peak inductor current on divider helps with inrush current problems and
each switching cycle, based on the EA feedback. The catastrophic short-circuit conditions. Of course, the
voltage reference for the EA is generated by the DAC downside of this approach is that the system gain is
and can be changed on-the-fly in firmware. The CCP reduced and that it will respond slower to transients.
peripheral generates a fixed frequency, fixed duty cycle The OPA output pin is the same as the slope
control signal for the COG. The peak current compensation module input pin, so the two peripherals
comparator is used to close the loop through by can be used together without any additional external
selecting it as a second falling edge event source connectivity. If a resistor divider is used to limit OPA
(limits duty cycle on each switching pulse based on EA output voltage, it must be routed externally to the FVR
feedback). buffer input pin.
After the peripherals are configured and connected Input voltage is connected to the microcontroller using
together, the control loop runs by itself, requiring 0% a small diode and is bootstrapped to the output. Thus,
processor time. when the output voltage rises, it will power the
Peak current control schemes require slope microcontroller and MOSFET driver. This is more
compensation for duty cycles over 50% to prevent efficient because a higher VGS will improve RDS(ON)
oscillation. For lower duty cycles, slope compensation and the interval below 4.5V is problematic for most
will also help stabilize the control loop, if the current power transistors. This also makes the FVR the only
shunt is small. The internal slope compensation stable reference available, and the circuit requires a
module subtracts a software programmable ramp from few changes to ensure that the loop reference voltage
the error amplifier output before the peak current is always independent from the supply or output
comparator. voltage. Since the control loop reference voltage is
derived from the DAC, this peripheral needs to have a
For the boost topology, the inductor current is equal to
stable reference, too. The FVR of 1.2V is selected as
the input current. The peak inductor current is
the DAC reference, thus fulfilling all the mentioned
measured directly on a resistor placed between the
requirements.
transistor source and the ground.

 2013 Microchip Technology Inc. DS90003104A-page 3


TB3104
It is important to mention that the boost topology has a APPLICATIONS
clear DC path from the power source to the output,
through the inductor and rectifier diode, even if the The analog control loop makes the power supply fast
switching transistor is blocked. The current limiting loop enough for dynamic loads and input voltage changes.
can only prevent overcurrent until the switching fre- For current-controlled loads like LEDs or
quency becomes zero. From this point on, catastrophic thermoelectric cells, the voltage feedback can be
short-circuit events can occur without an additional pro- replaced by average current feedback. The power
tection switch. A second transistor can be placed on supply can be also used for applications which require
the output low side to cut off the load in case of a short both voltage and current control like CC/CV battery
circuit. chargers. The PIC16F753 DAC has nine bits of
For comparator-based short-circuit protection, the resolution, which translate into a minimum voltage step
reference must be stable over the whole voltage of 50 mV with a 1/5 output divider.
operating range. Since the output current shunt voltage
is usually too small to use with the 1.2V FVR directly, it
needs to be routed outside through the FVR buffer and
then through a resistive divider to obtain the desired
reference voltage for the comparator. Since the FVR
buffer is used this way, the OPA output must be used
directly with the SC, without the additional divider. This
solution uses 0% processor time but also uses more
pins and peripherals. For ADC-based short-circuit
protection, the current shunt voltage and the FVR are
read in firmware. The FVR voltage is necessary to
calculate VDD (when <5V), which in this case is the
ADC reference voltage. While this second solution
does not use the extra comparator, I/O pins and
external resistors, it will need some program space and
processor time.
The component values shown in this document are to
be treated only as a starting point. They need to be
tuned for each design. The converter must be
compensated for a specific load and the stability must
be verified across the entire range of operating
conditions.
Compared to a solution using a specialized PWM
controller chip, performance is similar, but a PIC®
microcontroller-based solution adds invaluable
flexibility. Also, the analog control loop runs by itself, so
the microcontroller core is 100% free to run user
algorithms, measure power supply parameters or
transmit relevant information.

DS90003104A-page 4  2013 Microchip Technology Inc.


TB3104
MCU PERIPHERAL CONFIGURATION The input-only digital pin, MCLR, can be used for a
button or a similar functionality. During run-time, the
DRAWING
programming data I/O pin (PGD) are free for user-
The application needs one OPA, one comparator and specific functionality.
one DAC. The DAC output can be internally routed to
the OPA, so this feature saves one pin. The CCP
TABLE 2: PIC16F753 PERIPHERAL
module generates a fixed-frequency, fixed duty cycle
signal for the COG. Depending on the user option to CONFIGURATION
limit the OPA output, the resistor divider needs to be Pin
Name Function
externally connected to the FVR buffer input. If not No.
using the resistor divider, only one pin is used instead 1 VDD Supply voltage
of two. In this case, the OPA output, which is the same
14 VSS Ground connection
as the SC input, is configured as an analog pin and
should not be used for other purposes. 10 RC0 Analog input (COMP) – peak
current sensing
9 RC1 Analog input (OPA) – output
voltage feedback
8 RC2 Analog output (OPA) – error
amplifier output
12 RA1/PGC/ Analog input FVR buffer input
FVRIN for peak current limit from error
amplifier/ Programming clock
13 PGD Programming data
5 COG1OUT0/ Transistor control signal (PWM)
RC5

FIGURE 3: PERIPHERAL CONFIGURATION

COG1OUT0
COG PWM
RC5

CCP

COMP 2

+ -

SC ISense

FVR DAC

OPA_EA VREF
+

- FB
RC1
RC2

OPA_OUT

 2013 Microchip Technology Inc. DS90003104A-page 5


TB3104
PLOTS OF KEY PARAMETERS TABLE 3: POWER SUPPLY
CHARACTERISTICS
Table 3 contains some characteristics of the charger
Output
obtained with an input of 3V and an output of 5V. The Duty Cycle Efficiency
Current
switching frequency is 250 kHz. (%) (%)
(mA)
500 43.9 91.4
TABLE 3: POWER SUPPLY
750 44.6 90.8
CHARACTERISTICS
1000 45.3 90.1
Output
Duty Cycle Efficiency 1200 45.7 89.6
Current
(%) (%) 1400 46.4 89.0
(mA)
0 skipping N/A 1600 46.9 88.3
50 26.3 83.5 1800 47.4 87.6
100 37.2 87.8 2000 48.2 86.8
250 43.2 90.4 Note 1: Efficiency is calculated including power
loss on current shunt.

FIGURE 4: DUTY CYCLE vs. LOAD CURRENT


60,0 %

50,0 %

40,0 %

30,0 % 4V Input
3V Input
20,0 %

10,0 %

0,0 %
50 mA 100 250 500 750 1000 1200 1400 1600 1800 2000
mA mA mA mA mA mA mA mA mA mA

Figure 4 shows the converter operating frequency for GLOSSARY


3V and 4V input at different output currents. Once the
inductor current becomes continuous, the duty cycle TABLE 4: ACRONYMS
changes very little, only to compensate for component PWM Pulse-Width Modulation
power losses. The power loss becomes very easy to ADC Analog-to-Digital Converter
see on the efficiency graph (see Figure 2).
DAC Digital-to-Analog Converter
COG Complementary Output Generator
FVR Fixed Voltage Reference
OPA Operational Amplifier
EA Error Amplifier
SC(M) Slope Compensation (Module)
CCP Capture Compare PWM

DS90003104A-page 6  2013 Microchip Technology Inc.


TB3104
APPENDIX A:

FIGURE A-1: SCHEMATIC

 2013 Microchip Technology Inc. DS90003104A-page 7


Note the following details of the code protection feature on Microchip devices:
• Microchip products meet the specification contained in their particular Microchip Data Sheet.

• Microchip believes that its family of products is one of the most secure families of its kind on the market today, when used in the
intended manner and under normal conditions.

• There are dishonest and possibly illegal methods used to breach the code protection feature. All of these methods, to our
knowledge, require using the Microchip products in a manner outside the operating specifications contained in Microchip’s Data
Sheets. Most likely, the person doing so is engaged in theft of intellectual property.

• Microchip is willing to work with the customer who is concerned about the integrity of their code.

• Neither Microchip nor any other semiconductor manufacturer can guarantee the security of their code. Code protection does not
mean that we are guaranteeing the product as “unbreakable.”

Code protection is constantly evolving. We at Microchip are committed to continuously improving the code protection features of our
products. Attempts to break Microchip’s code protection feature may be a violation of the Digital Millennium Copyright Act. If such acts
allow unauthorized access to your software or other copyrighted work, you may have a right to sue for relief under that Act.

Information contained in this publication regarding device Trademarks


applications and the like is provided only for your convenience
The Microchip name and logo, the Microchip logo, dsPIC,
and may be superseded by updates. It is your responsibility to
FlashFlex, KEELOQ, KEELOQ logo, MPLAB, PIC, PICmicro,
ensure that your application meets with your specifications.
PICSTART, PIC32 logo, rfPIC, SST, SST Logo, SuperFlash
MICROCHIP MAKES NO REPRESENTATIONS OR
and UNI/O are registered trademarks of Microchip Technology
WARRANTIES OF ANY KIND WHETHER EXPRESS OR
Incorporated in the U.S.A. and other countries.
IMPLIED, WRITTEN OR ORAL, STATUTORY OR
OTHERWISE, RELATED TO THE INFORMATION, FilterLab, Hampshire, HI-TECH C, Linear Active Thermistor,
INCLUDING BUT NOT LIMITED TO ITS CONDITION, MTP, SEEVAL and The Embedded Control Solutions
QUALITY, PERFORMANCE, MERCHANTABILITY OR Company are registered trademarks of Microchip Technology
FITNESS FOR PURPOSE. Microchip disclaims all liability Incorporated in the U.S.A.
arising from this information and its use. Use of Microchip Silicon Storage Technology is a registered trademark of
devices in life support and/or safety applications is entirely at Microchip Technology Inc. in other countries.
the buyer’s risk, and the buyer agrees to defend, indemnify and
Analog-for-the-Digital Age, Application Maestro, BodyCom,
hold harmless Microchip from any and all damages, claims,
chipKIT, chipKIT logo, CodeGuard, dsPICDEM,
suits, or expenses resulting from such use. No licenses are
dsPICDEM.net, dsPICworks, dsSPEAK, ECAN,
conveyed, implicitly or otherwise, under any Microchip
ECONOMONITOR, FanSense, HI-TIDE, In-Circuit Serial
intellectual property rights.
Programming, ICSP, Mindi, MiWi, MPASM, MPF, MPLAB
Certified logo, MPLIB, MPLINK, mTouch, Omniscient Code
Generation, PICC, PICC-18, PICDEM, PICDEM.net, PICkit,
PICtail, REAL ICE, rfLAB, Select Mode, SQI, Serial Quad I/O,
Total Endurance, TSHARC, UniWinDriver, WiperLock, ZENA
and Z-Scale 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.
GestIC and ULPP are registered trademarks of Microchip
Technology Germany II GmbH & Co. KG, a subsidiary of
Microchip Technology Inc., in other countries.
All other trademarks mentioned herein are property of their
respective companies.
© 2013, Microchip Technology Incorporated, Printed in the
U.S.A., All Rights Reserved.
Printed on recycled paper.
ISBN: 9781620777497

QUALITY MANAGEMENT SYSTEM Microchip received ISO/TS-16949:2009 certification for its worldwide
headquarters, design and wafer fabrication facilities in Chandler and
CERTIFIED BY DNV Tempe, Arizona; Gresham, Oregon and design centers in California
and India. The Company’s quality system processes and procedures
are for its PIC® MCUs and dsPIC® DSCs, KEELOQ® code hopping
== ISO/TS 16949 == devices, Serial EEPROMs, microperipherals, nonvolatile memory and
analog products. In addition, Microchip’s quality system for the design
and manufacture of development systems is ISO 9001:2000 certified.

DS90003104A-page 8  2013 Microchip Technology Inc.


Worldwide Sales and Service
AMERICAS ASIA/PACIFIC ASIA/PACIFIC EUROPE
Corporate Office Asia Pacific Office India - Bangalore Austria - Wels
2355 West Chandler Blvd. Suites 3707-14, 37th Floor Tel: 91-80-3090-4444 Tel: 43-7242-2244-39
Chandler, AZ 85224-6199 Tower 6, The Gateway Fax: 91-80-3090-4123 Fax: 43-7242-2244-393
Tel: 480-792-7200 Harbour City, Kowloon Denmark - Copenhagen
India - New Delhi
Fax: 480-792-7277 Hong Kong Tel: 45-4450-2828
Tel: 91-11-4160-8631
Technical Support: Tel: 852-2401-1200 Fax: 45-4485-2829
Fax: 91-11-4160-8632
http://www.microchip.com/ Fax: 852-2401-3431
India - Pune France - Paris
support
Australia - Sydney Tel: 91-20-3019-1500 Tel: 33-1-69-53-63-20
Web Address:
Tel: 61-2-9868-6733 Fax: 33-1-69-30-90-79
www.microchip.com Japan - Osaka
Fax: 61-2-9868-6755 Germany - Dusseldorf
Atlanta Tel: 81-6-6152-7160
China - Beijing Tel: 49-2129-3766400
Duluth, GA Fax: 81-6-6152-9310
Tel: 86-10-8569-7000 Germany - Munich
Tel: 678-957-9614 Japan - Tokyo
Fax: 86-10-8528-2104 Tel: 49-89-627-144-0
Fax: 678-957-1455 Tel: 81-3-6880- 3770
China - Chengdu Fax: 49-89-627-144-44
Austin, TX Fax: 81-3-6880-3771
Tel: 86-28-8665-5511 Germany - Pforzheim
Tel: 512-257-3370 Korea - Daegu
Fax: 86-28-8665-7889 Tel: 49-7231-424750
Boston Tel: 82-53-744-4301
Westborough, MA China - Chongqing Fax: 82-53-744-4302 Italy - Milan
Tel: 774-760-0087 Tel: 86-23-8980-9588 Tel: 39-0331-742611
Korea - Seoul
Fax: 774-760-0088 Fax: 86-23-8980-9500 Fax: 39-0331-466781
Tel: 82-2-554-7200
Chicago China - Hangzhou Fax: 82-2-558-5932 or Italy - Venice
Itasca, IL Tel: 86-571-2819-3187 82-2-558-5934 Tel: 39-049-7625286
Tel: 630-285-0071 Fax: 86-571-2819-3189 Netherlands - Drunen
Malaysia - Kuala Lumpur
Fax: 630-285-0075 China - Hong Kong SAR Tel: 60-3-6201-9857 Tel: 31-416-690399
Cleveland Tel: 852-2943-5100 Fax: 60-3-6201-9859 Fax: 31-416-690340
Independence, OH Fax: 852-2401-3431 Poland - Warsaw
Malaysia - Penang
Tel: 216-447-0464 China - Nanjing Tel: 48-22-3325737
Tel: 60-4-227-8870
Fax: 216-447-0643 Tel: 86-25-8473-2460 Fax: 60-4-227-4068 Spain - Madrid
Dallas Fax: 86-25-8473-2470 Tel: 34-91-708-08-90
Philippines - Manila
Addison, TX China - Qingdao Fax: 34-91-708-08-91
Tel: 63-2-634-9065
Tel: 972-818-7423 Tel: 86-532-8502-7355 Fax: 63-2-634-9069 Sweden - Stockholm
Fax: 972-818-2924
Fax: 86-532-8502-7205 Tel: 46-8-5090-4654
Singapore
Detroit China - Shanghai Tel: 65-6334-8870 UK - Wokingham
Novi, MI Tel: 86-21-5407-5533 Fax: 65-6334-8850 Tel: 44-118-921-5800
Tel: 248-848-4000 Fax: 86-21-5407-5066
Taiwan - Hsin Chu Fax: 44-118-921-5820
Houston, TX
China - Shenyang Tel: 886-3-5778-366
Tel: 281-894-5983
Tel: 86-24-2334-2829 Fax: 886-3-5770-955
Indianapolis Fax: 86-24-2334-2393
Noblesville, IN Taiwan - Kaohsiung
China - Shenzhen Tel: 886-7-213-7830
Tel: 317-773-8323
Tel: 86-755-8864-2200
Fax: 317-773-5453 Taiwan - Taipei
Fax: 86-755-8203-1760 Tel: 886-2-2508-8600
Los Angeles
China - Wuhan Fax: 886-2-2508-0102
Mission Viejo, CA
Tel: 86-27-5980-5300 Thailand - Bangkok
Tel: 949-462-9523
Fax: 86-27-5980-5118 Tel: 66-2-694-1351
Fax: 949-462-9608
China - Xian Fax: 66-2-694-1350
New York, NY
Tel: 631-435-6000 Tel: 86-29-8833-7252
Fax: 86-29-8833-7256
San Jose, CA
Tel: 408-735-9110 China - Xiamen
Tel: 86-592-2388138
Canada - Toronto
Fax: 86-592-2388130
Tel: 905-673-0699
Fax: 905-673-6509 China - Zhuhai
Tel: 86-756-3210040
10/28/13
Fax: 86-756-3210049

 2013 Microchip Technology Inc. DS90003104A-page 9

You might also like