Shifting on X axis

Check out this resource. It looks like it may be the PWM Edge Rising issue.