PWM Modulation: Voltage, Current, and Hysteresis Control
What You'll Learn
- 1Generate duty cycles with trailing edge and dual edge PWM
- 2Explain peak current mode and slope compensation
- 3Describe constant switching frequency hysteresis control
- 4Compare control schemes for stability and transient response
Pulse width modulation converts an analog or computed control signal into a duty cycle that the power stage follows. Voltage mode closes a single loop on output voltage, while current mode adds an inner loop on inductor current that behaves like a controlled current source. Hysteresis control sets explicit limits on a variable and switches instantly, giving excellent transient response at the cost of variable frequency. Choosing among them is a core control decision in every converter.
Voltage Mode PWM
A ramp waveform is compared against the error amplifier output, and the crossing instant sets the duty each cycle. Voltage mode gives a fixed switching frequency and straightforward compensation, but it must wait for output voltage to move before correcting a disturbance. The power stage contributes a double pole at the LC resonant frequency that the compensator must handle with adequate phase margin.
Feedforward from input voltage cancels line disturbances before they reach the output by scaling the ramp amplitude. Dual edge modulation, which distributes the on time around a center point, reduces output ripple and improves transient resolution.
Peak Current Mode and Slope Compensation
In peak current mode the error amplifier commands a current reference, and the inner loop compares inductor current against it to terminate the on pulse. The inner loop makes the converter behave like a transconductance amplifier, simplifying compensation to a single pole pair at the output capacitor. Duty above 0.5 makes the inner loop unstable without a compensating ramp added to the sensed current.
Slope compensation must be at least half the downslope of the inductor current for subharmonic stability. Current mode also gives inherent cycle by cycle current limiting, which protects the switch without extra sensing.
Hysteresis and Other Modulation Styles
Hysteresis control switches whenever the controlled variable touches a band edge, so it reacts within a single cycle to any disturbance. The price is a switching frequency that varies with input voltage, output load, and component tolerance, which complicates filter and EMI design. Constant on time and constant off time variants preserve some simplicity while varying frequency in a predictable way.
Digital control enables average current mode, adaptive dead time, and variable frequency patterns tuned for efficiency. Modulation choice always balances transient speed against predictable frequency and component size.
Control Scheme Comparison
| Scheme | Switching Frequency | Strength |
|---|---|---|
| Voltage mode | Fixed | Simple compensation, predictable EMI |
| Peak current mode | Fixed | Fast inner loop, cycle current limit |
| Average current mode | Fixed | Accurate current shaping, PFC friendly |
| Hysteresis | Variable | Fastest transient response |
| Constant on time | Variable | Simple and fast at light load |
| Burst mode | Intermittent | Best standby efficiency |
Real-World Examples
- Voltage mode buck â Single error amplifier compensates the LC double pole with feedforward from the input rail.
- Peak current controlled supply â Sensed inductor current terminates the on pulse and gives immediate short circuit protection.
- PFC average current control â The inner loop shapes line current into a sine while the outer loop holds DC bus voltage.
- Hysteresis motor current loop â Inverter switching occurs on band contact, giving tight current tracking for stepper or servo drives.
đSubharmonic Oscillation Is Real
Common Mistakes
Designing peak current mode without slope compensation
Fix: Above duty 0.5 the loop oscillates with alternating wide and narrow pulses.
Ignoring variable frequency in hysteresis filters
Fix: Filter components sized at one frequency perform differently across the operating range.
Compensating voltage mode as if it were current mode
Fix: The LC double pole needs different zeros than a current mode single pole pair.
Key Takeaways
- PWM maps a control signal onto duty at a defined switching frequency.
- Current mode adds an inner loop that simplifies compensation and limits current.
- Slope compensation prevents subharmonic oscillation at high duty.
- Hysteresis control trades fixed frequency for fastest transient response.
Frequently Asked Questions
Why is slope compensation needed?
Perturbations in inductor current grow each cycle above duty 0.5 unless a ramp is added to the sensed signal.
Which mode is better for a PFC stage?
Average current mode shapes line current accurately and tolerates the varying duty of a boost PFC.
Does hysteresis control cause EMI problems?
Variable frequency spreads noise rather than concentrating it, which can help but complicates filter tuning.
Interview Questions
Q1: Compare voltage mode and peak current mode.
Voltage mode has one loop on output and needs careful LC compensation but gives fixed frequency. Current mode adds an inner current loop for fast response and current limiting, requiring slope compensation at high duty.
Q2: What does the error amplifier actually command in current mode?
It commands an inductor current reference, not a duty cycle, so the outer loop shapes current while the inner loop realizes it each cycle.
Extended Learning: Beyond the Basics
Key Concepts Summary
This lesson covers fundamental concepts that serve as building blocks for more advanced topics. Master these basics before moving to intermediate and advanced material.
Prerequisite Knowledge
Before studying this topic in depth, ensure you understand:
- Basic definitions and terminology
- Core formulas and their derivations
- Common applications in real-world scenarios
- Typical pitfalls and misconceptions
Step-by-Step Walkthrough
Let us work through a complete example to solidify understanding:
Step 1: Identify the problem type. Determine which category this problem falls into and which approach is most appropriate.
Step 2: Apply the relevant formula. Substitute known values into the appropriate equation, paying attention to units and constraints.
Step 3: Simplify and solve. Work through the algebra step by step, checking each intermediate result.
Step 4: Verify the answer. Check that the solution satisfies the original conditions and makes logical sense.
Common Mistakes to Avoid
- Misidentifying the problem type â Always start by categorizing the problem
- Incorrect formula application â Verify the formula applies to your specific case
- Unit errors â Always check units are consistent throughout
- Sign errors â Pay careful attention to positive and negative values
- Rounding too early â Keep full precision until the final answer
- Forgetting constraints â Check that solutions satisfy all given conditions
Real-World Applications
Understanding this concept is essential for:
- Advanced problem solving in examinations
- Building intuition for more complex topics
- Developing analytical thinking skills
- Applying mathematical reasoning to practical situations
Practice Exercises
- Basic: Solve 5 problems of increasing difficulty using the core concept.
- Intermediate: Apply the concept to word problems with multiple steps.
- Advanced: Combine this concept with 2-3 other topics in a comprehensive problem.
- Challenge: Create your own problem that requires this concept plus additional knowledge.
Interview and Exam Tips
- Common question patterns: Identify which exam or interview formats test this topic
- Time management: Practice completing problems within time constraints
- Common traps: Know the typical mistakes examiners set as distractors
- Verification strategy: Develop a quick method to check your answer
Related Topics
- Previous Topic â Build on the foundation laid here
- Next Topic â See how this concept extends to more advanced material
- Practice Problems â Additional exercises with solutions
- Video Explanation â Visual walkthrough of key concepts
Quick Reference Card
| Concept | Formula/Rule | Key Insight | Common Use |
|---|---|---|---|
| Core Definition | See main text | Understand the intuition | Foundation for all applications |
| Key Formula | See main text | Memorize the derivation | Direct problem solving |
| Special Case | See main text | Recognize when it applies | Simplifies complex problems |
| Edge Case | See main text | Know the limitations | Avoids errors |
Further Reading
For students who want to go deeper:
- Standard textbooks on the subject
- Research papers applying this concept
- Online courses with video explanations
- Practice problem collections with detailed solutions