Hello friends,
I am using PIC16F877A. By "turn off" I mean only one PWM cycle after turn on. I want to control every PWM cycle and decide when it starts, and when it stops.
PWM by definition has an off time and an on time, if all you want to do is produce a single pulse on demand, the better method is to simply set your output pin high for the 'on' period then reset it low again.