Tool/software: Code Composer Studio
Hello!
I'm develop a dual core project. EPWMs control are separated by different cores. EPWM1-3 is controlled by CPU1 and EPWM1-3 is controlled by CPU2. I'm need to sync Time Base Clock between different cores.
For single core project I'm used TBCLKSYNC register and all working ok:
void pwmSetupSingleCore(void)
{
EALLOW;
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 0;
EDIS;
setupPwm1();
setupPwm2();
setupPwm3();
setupPwm4();
setupPwm5();
setupPwm6();
EALLOW;
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
EDIS;
}
But for dual core firmware another solution is needed. In "Table 2-173. PCLKCR0 Register Field Descriptions" (SPRUHM8F) there is information about GTBCLKSYNC field. But there no any examples or any other information abiut of using this feature.
I need an information about GTBCLKSYNC feed. How to sync EPWM Time Base Clock between different cores?