EveryCircuit
Contact
Reviews
Home
snowfats
modified 3 years ago

PWM Bit Bang to Mimic Sine Pulse Train

2
0
384
02:21:14
This sim is showing a bit bang approach to creating a sine wave by filtering a pulse train with an RC filter. Red is an ideal sinusoidal wave. Green is a filtered pulse train from a classical method for generating a PWM signal using a sine wave & high frequency triangle wave as inputs for a comparator. Blue is a filtered pulse train from manually set pulse trains to simulate a microcontroller’s bit bang output. This should also be possible by frequently micromanaging a PWM signal on (nearly) every counter overflow to update the pulse width.
published 3 years ago

EveryCircuit is an easy to use, highly interactive circuit simulator and schematic capture tool. Real-time circuit simulation, interactivity, and dynamic visualization make it a must have application for professionals and academia. EveryCircuit user community has collaboratively created the largest searchable library of circuit designs. EveryCircuit app runs online in popular browsers and on mobile phones and tablets, enabling you to capture design ideas and learn electronics on the go.

Copyright © 2026 by MuseMaze, Inc.     Terms of use     Privacy policy