Synchronized PWM outputs with offset?
Is it possible in the STM32 world to have two synchronized PWM - but with an offset separating the outputs?
Here's the problem in picture form:
Both the blue and red traces are the same frequency and duty cycle, but in this case trace red is offset 50 mS from trace blue.
I managed this on another micro (NXP) where their SCTimer function allows "events" to be associated with the first/red PWM. In this case there are essentially two events tied to trace blue (an on and an off) which result in the trace blue.
Alas, nothing quite so simple appears in the STM32 world, or at least that I've been able to identify (which is probably why NXP crows so much about there SCTimer). Right now, I am thinking I can fiddle with trace red as sort of a modified inverse one shot of trace blue. Seems a little crude, however, I assume there's got to be a better way.
I guess the question has two parts: First, is the above possible and second (optional) some pointers on the requisite setup.
I admit this question was recently posted (in much more general terms). Admonishment to read the manual appeared - which is undoubtedly true in the larger sense. But I'm not ashamed to admit, however, I'm trying to piggyback on existing knowledge. Something like not re-inventing the wheel if the requisite technique is public knowledge (or cheating a bit from another perspective).
Well, thanks much if you can offer any ideas. Meanwhile I'll be rooting around in that user manual....
The target in this case is an STM32G0B1, if that matters.
doug
