Other Parts Discussed in Thread: SYSCONFIG, C2000WARE
Dear Champs,
I am asking this for our customer.
They use the latest SYSCONFIG GUI (c2000ware V4.01) for EPWM setting including syncing in phase (i.e. EPWM1/2/3 are in phase).
It seems Sysconfig does not disable EPWM clock first when the user tries to sync EPWM in phase.
That is, after we manually added below two lines in yellow, then EPWMs were synced in phase as desired.
But by default, the GUI does not add these two lines in the board.c.
// Initialize PWM
SysCtl_disablePeripheral(SYSCTL_PERIPH_CLK_TBCLKSYNC); // Disable sync(Freeze clock to PWM as well)
board_init();
SysCtl_enablePeripheral(SYSCTL_PERIPH_CLK_TBCLKSYNC); // Enable sync and clock to PWM
Therefore,
We suggest that SYSCONFIG have below codes in board.c.
// Initialize PWM
SysCtl_disablePeripheral(SYSCTL_PERIPH_CLK_TBCLKSYNC); // Disable sync(Freeze clock to PWM as well)
EPWM_init();
SysCtl_enablePeripheral(SYSCTL_PERIPH_CLK_TBCLKSYNC); // Enable sync and clock to PWM
Would you please help clarify if this is a bug or if we miss anything in the GUI?
Wayne Huang