I think what you want is to simply have a 50uSec pulse triggered by probably
the rising edge of the 'variable' pulse.
Look in the CCP data sheet at 'special event trigger' mode. What you do
is have one CCP set to this mode that resets a timer. Then have a second
CCP to generate a fixed width pulse from this timer.
When the timer resets, the second CCP generates the pulse.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum