Interpolate missing samples in PWM interrupt