cycle-accurate PWM tests