a warning to anybody trying to use this idea , its not fool proof and apart from the limitations as described by henrik its a bit risky too.
my tests indicate a minimum pwm duty of 30if you try to set the pwm duty below the number of timer ticks taken up during the interrupt latency the pwm pin will be driven high and may cause unexpected results
caveat emptor




Bookmarks