See Also:
PWM for simulation for Arduino
PWM for simulation for F281X, MSP430, STM32
PWM for simulation for Linux Raspberry Pi