Hello TI community;
Shot question: I want to create a signal pattern which is , one long pulse and 3000 short pulses. (Counting the number is importan.)
Long: I have been reading the data sheet for 1-2 weeks and made some researches but could not find exact answer. To achieve my goal, I "think" I need a pwm signal which alternates the duty cycle by its own pulse number. Well, I am planning to use sync mode to make transition of duty cycle without any overly short or long pulse. Let me explain by example, let's say, my frequency is constant, and initially my duty cycle is 20% and just after first falling edge, I want to change my duty cycle to 1%, since I use sync mode, It will wait to complete the cycle(counter reaches 0) and then updates. Then for 3000 pulses my duty cycle is 1%. Just after 3000th pulse's falling edge again my duty cycle will be updated to be 20%.
Questions
1) Is my approach correct or is there a more robust and faster way than using pwm module (pwm is ok but with another approach)?
2) If my approach is correct, then how to implement it, let's say how to count falling edge which is created by pwm module.
Any suggestion is appreciated,
Regards