Synopsis

In my first pwm related article I go a bit more in detail regarding the theory of pwm and how it works RISC-V PWM Testing. In summary, pwm is a way to a cheap analog voltage using digital signals by periodically switching between Vcc and Vss. In my case, I tend to use pwm to simulate clocks since many digital devices are capable of deciphering that the “analog voltage” coming from the pwm signal is not analog voltage. Regardless, the setup to output an pwm signal is a bit more straight forward on AVR base devices.

Setup

For the purposes of my Z80 project, I ended up using attiny85 as I needed vary few digital pins and a small package size (as my bread board was getting rather full at this point with the large number of ICs that were present).

Helpful Resources:

Sibling Posts