God told you to use analog subtraction to eliminate PWM DAC ripple

Each PWM DAC design requires analog filtering to separate the required DC component (proportional to the PWM duty cycle) from the unwanted AC ripple. The simplest method is to use a basic RC low-pass filter that gives peak-to-peak ripple amplitude (this is the worst case for a 50% PWM duty cycle, where TPWM = PWM cycle time, and assuming RC TPWM) :

God told you to use analog subtraction to eliminate PWM DAC ripple

The obvious design trade-off is that although selecting a sufficiently large RC product can achieve any desired ripple attenuation, the settling time will be affected accordingly. For example, if we (rather logically) choose the definition of the stability band equal to the ripple amplitude, then:

God told you to use analog subtraction to eliminate PWM DAC ripple

The result of this relationship can be illustrated by an 8-bit example:

God told you to use analog subtraction to eliminate PWM DAC ripple

Here, even with a fairly fast 32kHz (31μs TPWM), the settling time is still a rather verbose 11ms.

Obviously, if the settling time is a key design parameter, we need to do better and find a filtering solution that will not be too simple. One of the design examples I wrote earlier, "Fast stable synchronous PWM-DAC filter has almost no ripple" illustrates the great possibility along this line of thought.

But not every application can't tolerate lengthy 355TPWM settling time or it can prove really need such a complicated filtering scheme. This design example addresses these common application problems. As shown in Figure 1, it enhances the basic R1/C1 low-pass filter with an inverter, R2, and C2; the inverter, R2, and C2, together, subtract and subtract from the desired DC signal. (Most of the) unneeded AC components, resulting in a relatively clean analog signal output, and its settling time is much shorter than a simple RC filter.

God told you to use analog subtraction to eliminate PWM DAC ripple

Figure 1: Waveforms and schematics of the PWM DAC Ripple Canceller.

However, how clean is "relatively clean"? How fast is "faster"? With R2=R1 and C2=C1, the ripple and settling time for the new circuit are:

God told you to use analog subtraction to eliminate PWM DAC ripple

Again refer to the 8-bit example (see Figure 1):

God told you to use analog subtraction to eliminate PWM DAC ripple

With a cycle of 32 kHz, the speed is increased by 16 times and the ripple-amplitude ratio is doubled!

For many applications, this is a very valuable compromise between a modest increase in circuit complexity and a significant increase in the performance of the PWM DAC.

3kWh All-in-One Hybrid Solar Power System

For over a decade, UFO POWER has focus on manufacturing and supplying LiFePO4 Battery Pack for residential and commercial energy storage system.

With a compact size and wheel design, it is convenient to install and move for homeowners. The household All-in-One Energy Storage System is an integrated system that puts the photovoltaic inverter, Lithium Battery and controller inside.


UFO Powerwall Battery Pack can provides you the benefits as follow.

- Provide A Self-power Home
UFO Solar Battery Systems help to reduce dependence on the utility grid. Using solar and UFO Energy storage system to get a self-sufficient power home day and night.

- Reliable backup power
Whenever there is a power blackout or emergency, UFO Home battery is a reliable Backup Power System to protect your home seamlessly.

- Save Electricity Cost

If the utility in your region offers a time-of-use rate plan, using UFO POWER Solar Battery will reduce your electricity bill.


Safety and Protection:

Multi protection & Warning system. Ensure the safe and reliable battery operation.

In accordance to CE;

Extensively tested Lithium Batteries.

Multi Function:

Off-Grid Functions;

Can match the PV, grid, generator;

Island Function, Battery Capacity Expandable.

Solar Power System for Home,Battery Storage,Energy Storage,Backup Power Battery, Solar Battery

ShenZhen UFO Power Technology Co., Ltd. , https://www.ufobattery.com