Power Electronics / Power Management


Need another supply other than VDD? With a CCP, it is as easy as ABC

7 March 2007 Power Electronics / Power Management

In many applications, the power supply voltage is often dictated by an external design constraint such as battery voltage, bus-powered USB or something as mundane as a single-output, low-cost wall wart.

Unfortunately, these are also the applications that usually have a requirement for an additional supply that is not compatible with VDD. If the additional supply is lower, then an LDO solves the problem, but if it is higher, we have to go to a switcher.

In this article from microSOLUTIONS, Microchip Technology's Keith Curtis, shows an example of how some of the on-chip peripherals in a microcontroller can be used to create an impromptu switching regulator

While Microchip does make a line of switching regulators that fill this need quite nicely, there are some applications in which it is preferable to build the switcher out of peripherals built into the microcontroller. For this example, we will take a look at a simple hysteresis-feedback boost circuit using a comparator and the PWM function in a CCP (capture, compare, and PWM) module. The boost topology is used to generate a higher output voltage than the source voltage - so in this example, we are generating a supply voltage greater than VDD. The CCP modules that are found on many of Microchip's microcontrollers are used primarily for the measurement and control of time-based pulse signals.

Requirements

To build a switching regulator, you need a few things: a power switch, an inductor, a capacitor, a gated pulse generator, a voltage reference and a feedback path. In this example, the CCP will be our pulse generator, the 0,6 V comparator reference will be our voltage reference, and the comparator will be our feedback.

Figure 1 shows the circuit for our switching power supply, using the comparator and the CCP in PWM mode. The CCP generates the switching pulse, which turns on/off the switch Q1. D1 acts as the second half of the switch, connecting the inductor to the output during the discharge portion of the cycle. C1 accumulates the current flow from the inductor, smoothing out the pulses into a DC level. R1, R2, the comparator and the 0,6 V reference form the feedback path. When the divided output voltage is less than 0,6 V, then the comparator allows pulses from the CCP through the resistor to turn Q1 on. If the divided output is greater than, or equal to, the 0,6 V reference, the comparator shorts out the pulses by grounding the gate through a diode, and preventing the system from generating too high an output voltage. Figure 1 shows the waveforms generated both when the system has a low output, and when the system is at the desired voltage.

Figure 1. Boost topology schematic
Figure 1. Boost topology schematic

Note: (a) the pull-down resistor on the gate of the MOSFET is to hold the transistor off until the microcontroller configures the CCP and comparator. (b) if the CCP has the auto-shutdown feature, the resistor on the output of the CCP and the diode on the output of the comparator are not required, and the output of the comparator is connected to the CCP internally.

Calculations

Now, given that we have the circuit, we have to calculate a few component values. The first is the duty cycle of the boost circuit, which is determined by the source and output voltages. Equation 1 determines the minimum duty cycle required. Note that the duty cycle can be, and should be, a little larger than the value determined by Equation 1. The process of skipping pulses, based on the feedback, will reduce the average duty cycle to the optimal value when the system is running.

DutyCycle ≥ 1 - (VDD/VOUT) ……….[1]

The next value to determine is the inductance of the inductor; to simplify the calculation, we will first determine IRIPPLE, and then the size of the inductor. Equation 2 determines the necessary ripple current to keep the inductor current discontinuous (the inductor current goes to zero during the pulse cycle).

IRIPPLE = (2 x IOUT-MAX)/(1 - DutyCycle) ……….[2]

Given IRIPPLE, Equation 3 determines the necessary inductor value given the input voltage, the desired output voltage, the desired output current, and the switching frequency. One thing to note about the switching frequency (FSWITCH), it should be above 30 kHz to keep it inaudible and below 250 kHz to give a reasonable resolution for the PWM duty cycle (≤ 6,25%, assuming Fosc = 4 MHz)

Inductor = (VDD x DutyCycle)/IRIPPLE x FSWITCH) ……….[3]

The inductor chosen for the design should also have a saturation current at least two times IRIPPLE to prevent saturation and the violent failure of the MOSFET transistor.

The third value is the capacitance of the output capacitor C1. This capacitor acts as a filter, smoothing the pulse currents delivered from the inductor, into a DC voltage. To calculate the value, we need to know the maximum allowable output voltage ripple for the circuit. As this is determined by the load, the value must be supplied by the designer. Using this value, Equation 4 will determine the minimum capacitance required.

C1 ≥ (IRIPPLE x VRIPPLE)/(2 x Pi x FSWITCH) ………. [4]

One note on C1, while electrolytic capacitors are less expensive than Tantalum capacitors, electrolytic capacitors begin to act inductive above 50 to 100 kHz. If the switching frequency is much above 30 to 50 kHz, the added cost of the tantalum is often necessary to reduce switching noise in the output.

Three final choices must be made in the design; the minimum ratings for Q1 and D1, and the two resistors R1/R2.

Q1 should be rated for 2 x IRIPPLE and the gate charge QTOT should be kept as small as possible. If it is over 20-50 nC, or the source voltage to the boost circuit is greater than VDD, it will be necessary to use a MOSFET driver to boost the gate drive current/voltage. A low gate drive will result in the MOSFET transistor spending a large portion of each cycle in its linear region and that will drop efficiency and heat the transistor. Likewise, the current rating for the diode should be rated for 2 x IRIPPLE.

R1 and R2 form a voltage divider, and are chosen to produce a feedback voltage of 0,6 V when the output voltage of the circuit is at the desired voltage. See Equation 5.

R2 = ((VOUT - 0,6 V) x R1)/0,6 V ……….[5]

Summary

So, with a little maths, a few components, and a spare peripheral or two, it is possible to generate a supply voltage greater than VDD. More information can be found at Microchip's 'Intelligent Power Supply Design Center' at www.microchip.com/power.

For more information contact Arrow Altech Distribution, +27 (0)11 923 9600, Avnet Kopp, +27 (0)11 809 6100, Electrocomp, +27(0)11 458 9000, Future Electronics, +27 (0)21 880 0727 or Tempe Technologies, +27 (0)11 452 0530.



Credit(s)



Share this article:
Share via emailShare via LinkedInPrint this page

Further reading:

ABB’s Mission to Zero drives South Africa’s energy transition
ABB Electrification Products Power Electronics / Power Management
ABB Electrification is charting a bold path towards a net-zero future with its Mission to Zero programme, a blueprint that combines energy efficiency, electrification, and digital innovation to accelerate the transition to clean energy.

Read more...
Energy harvesting using a battery-less IoT system
NuVision Electronics Editor's Choice Power Electronics / Power Management
Energy Harvesting plays an essential role in the foundation of ambient IoT, a new generation of ultra-low power connected devices that operate by drawing energy from their environment instead of relying on traditional batteries.

Read more...
Driving power, defining performance
Future Electronics Power Electronics / Power Management
Vishay’s portfolio of inductors, current sense resistors, and MOSFETs provides a comprehensive solution for intelligent power management.

Read more...
Battery simulator module simplifies BMS testing
Test Dynamics Power Electronics / Power Management
The PXI/PXIe solution from Pickering Interfaces offers a scalable, modular design for faster development cycles, lower total cost of ownership, and improved safety.

Read more...
DC PSU: The cornerstone for efficient solar-storage systems
Vepac Electronics Power Electronics / Power Management
PV energy storage systems are evolving and DC power supplies, with their technical characteristics that are naturally compatible with new energy, have become a key carrier for improving system energy efficiency.

Read more...
Why local manufacturing, maintenance and support are key to the success of South Africa’s energy future
Power Electronics / Power Management
Although new renewable generation capacity is being developed, the current transmission infrastructure may not fully support the connection of these sources to the national grid or adequately deliver power to areas of high demand.

Read more...
Converter power modules for 48 V networks
Altron Arrow Power Electronics / Power Management
The economic and quality-of-life benefits of electrification is driving the adoption of HV to 48 V DC-DC conversion across many markets with 48 V power modules becoming more common.

Read more...
How a vision AI platform and the STM32N6 can turn around an 80% failure rate for AI projects
Altron Arrow AI & ML
he vision AI platform, PerCV.ai, could be the secret weapon that enables a company to deploy an AI application when so many others fail.

Read more...
Infineon’s OPTIGA for more secure AI and ML models
Future Electronics AI & ML
Infineon Technologies provides its OPTIGA Trust M security solution to Thistle Technologies for embedded computing products.

Read more...
Memory for asset tracking
Altron Arrow DSP, Micros & Memory
The Page EEPROM, ST’s latest memory, has been designed for efficient datalogging and fast firmware upload/download in battery-operated devices.

Read more...









While every effort has been made to ensure the accuracy of the information contained herein, the publisher and its agents cannot be held responsible for any errors contained, or any loss incurred as a result. Articles published do not necessarily reflect the views of the publishers. The editor reserves the right to alter or cut copy. Articles submitted are deemed to have been cleared for publication. Advertisements and company contact details are published as provided by the advertiser. Technews Publishing (Pty) Ltd cannot be held responsible for the accuracy or veracity of supplied material.




© Technews Publishing (Pty) Ltd | All Rights Reserved