I am not a programmer, but if you set the port high, loop the 50 mS twice,
set the port low, loop the 50 mS 10 times and you will have the wanted result.
Setup up a timer that will cause an interrupt every 50ms. The PIC spec PDF will detail which settings to use to get that.
Then have a variable count the timer ticks (occurs every interrupt) . Reset your tick counter to 0 when it reaches 12.
Activate a port pin digital output on the 16f887 when the tick value is <3, and shut it off (low) when tick >=3.
Setup up a timer that will cause an interrupt every 50ms. The PIC spec PDF will detail which settings to use to get that.
Then have a variable count the timer ticks (occurs every interrupt) . Reset your tick counter to 0 when it reaches 12.
Activate a port pin digital output on the 16f887 when the tick value is <3, and shut it off (low) when tick >=3.
________________________________________________________________
I am not clear with this idea
Can you please explain once again