Hi,
I need to calibrate PWM duty cycle. The output PWM signal (from my circuit) has approximately 27.5us delay [On state: 6.5us delay and in OFF state: 34us delay] compare to the CPU generated PWM signal. How can I calibrate the duty cycle? The delays are constant according to the frequency and duty cycle percentage. I have added the signal diagram!

I mean (Pulse with modulation) pulse duty cycle calibration! I have generated a 200hz PWM signal with 50% duty cycle (see previously attached picture). But after my circuit on/off delay, it introduces 27.5us (34-6.5) difference of the pulse width of 50% of 200hz. How do I compensate (calibrate with 50% duty cycle) this delay by software?

I mean (Pulse with modulation) pulse duty cycle calibration! I have generated a 200hz PWM signal with 50% duty cycle (see previously attached picture). But after my circuit on/off delay, it introduces 27.5us (34-6.5) difference of the pulse width of 50% of 200hz. How do I compensate (calibrate with 50% duty cycle) this delay by software?