Ajuda com geração de sinal PWM

Tente usar a biblioteca timer

http://arduino.cc/playground/Code/Timer#Usage