Isn't the normal PWM range 0 to 255? So, it could be overflow. Instead of 300 you get 45, while the 500 rolls over to 245. Try 255 and 256 and see what happens
Isn't the normal PWM range 0 to 255? So, it could be overflow. Instead of 300 you get 45, while the 500 rolls over to 245. Try 255 and 256 and see what happens