Dear All,
We are generating two identical pulse signals from the ehrPWM1 and ehrPWM2 modules of OMAP L138 LCDK. I've used the Starterware ehrPWM example. The following shows the results of these two signals on our oscilloscope:
As you can see, the blue signal has a little delay (or phase) in comparison with yellow signal. I would like to achieve the following two goals:
Goal 1: Synchronize both signals. Both signals should start at same time (or one signal starts a little later to achieve the following result.
Goal 2: Invert one of the two ehrPWM signals. In other words, when ehrPWM1 is on, ehrPWM2 should be off. When ehrPWM2 is on, ehrPWM1 should be off. The following image demonstrate our final goal:
Some hints that might help you better answer my question:
- Perhaps, should we use the synchronization on ehrPWM module? I'm talking about EHRPWMTimebaseSyncEnable() function.
Thank you in advance