Actually, the CPU load is zero while that $1 microcontroller is generating the 20KHz sine wave. You can just as easily generate any frequency up to about 250KHz with that device. Here is staircase waveform on the same MCU - great for doing things like testing power supplies, etc.
Bookmarks