Do you understand the implications of the bitwise AND operation I pointed out in reply #3? Do you understand PWM?