Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
Is it possible to start the PWM counter in up-down-mode by SYNC0 of the ESC and then let the counter freeze when it has counted down to zero again. So it would start the next up-count only when the next SYNC0 arrives?
We would like to sync the PWMs of multiple EtherCAT slaves. This can be done by using SYNC0 of ESCs of the slaves for triggering the SYNC input of the ePWMs. But as the SYNC0 period mieth not perectly match with the ePWM Period, we could get the effect, that the PWM counter would start counting up again slightly before the Trigger of the next period or slighty after. Thus we would have uncontrolled CTR=zero events. If we could run the PWM counter up and down as "one shot" we would start a single PWM period slightly shorter than the SYNC0 period. Thus we would get perfect PWM signals synchronized over the network. But I could not find any register for setting the PWM to one shot. My question is, if this is possible by using other triggers and registers (e.g. chanig automatically the mode to freeze when zero has reached ). If it is not possible we would need to constantly set the counter period to 99% of the SYNC0 period to be sure to get a CTR=zero before the next SYNC0. Thus we would loose 1% of the PWM range.
