NI'm using a cro those <30ish pwm's cause the output pin to be permanently high when you expect a very small pw , in real life that could be nastyo I started PWM_VAL for zero and incremented up in steps of 1 and it worked all the way rolling over and starting from 0. If 0-29 does not work I could not detect it with my voltmeter
try a loop range yourself of 0 to say 28
Bookmarks