ニュース

Pin 9 generates a PWM signal using a time-honored technique. Suppose you want to generate 20/255 (about 8% duty cycle). You take an 8-bit accumulator and add 20 to it repeatedly.
But generating a smooth voltage in this way takes just a few more parts. [Scott Daniels] spent some time discussing the process of smoothing a PWM output by using a low pass filter.