Changing the CCRx register will change the duty cycle. With preload enabled (OCxPE bit), you would wait for an update, change CCRx to the new value, wait for another update, then change CCRx back. It's doable.
"If you feel a post has answered your question, please click ""Accept as Solution""."
> I want to know if i can do it without coding. Your description is light on details, but I don't think you're going to get very far if your requirement is no coding. If you want a long pulse, then some short pulses, then another long pulse, in a uniform pattern, possible this can be done with DMA.
"If you feel a post has answered your question, please click ""Accept as Solution""."