Other Parts Discussed in Thread: C2000WARE, SYSCONFIG
Hi Team,
I understand that CLB clock for this processor comes from ePWM clock. Therefore before setting any of the CLB registers I enabled ePWM clock as below.
EALLOW;
// Enabling ePWM Clock corresponding to CLB tile 1
CpuSysRegs.PCLKCR2.bit.EPWM1 = 1;
Clb1LogicCtrlRegs.CLB_LOAD_EN.bit.GLOBAL_EN = 1;/* Enabling CLB tile 1 */
.....
However, the registers where not getting set and it was always 0. On inspection it was seen that, CPU has to be selected for ePWM1 by setting the DevCfgRegs.CPUSEL0.bit.EPWM1 bit and only then CLB registers get set.
Is this expected?
So my question is: Is there a limitation that CLB and the corresponding ePWM from which it derives clock should be on the same CPU?
Can I have a scenario where I configure CLB tile 1 in CPU1 and ePWM1 in CPU2?
Kind regards,
Irene