Hi drfrefw123,
I see only option to measure pulse of the current period and calculate the trigger point for the next period.
if center aligned PWM is used, the middle of the pulse should be still the same place within the period.

so would suggest:
1) to measure PWM period ( timebase channel and channel in IPM mode are needed).
2) to adjust timebase to PWM frequency
3) to measure every cycle rising and falling edge of the pulse (Timebase channel and channel in IPWM mode are needed) and adjust the trigger based on the measured edges. The same timebase can be used for the trigger and also channel in OPWMB mode.
In my opinion adjustment will be needed for every cycle.
Best regards,
Tomas Fedor.