Other Parts Discussed in Thread: CONTROLSUITE
Tool/software: Code Composer Studio
Hello All,
I am using sample code frm controlSUIT HVLLC.
In the attachment "main", the EPWM is accessed twice: 1)line410: ePWM_CompairDB_CNF(); line 452: EPwm1Regs.ETSEL.bit.SOCAEN=1.
In the ePWM_CompairDB_CNF(); (*ePWM[n]). is used to access the pwm register which I thought is as same as EPwm1Regs. But now I found all of the codes related to the (*ePWM[n]).cannot change pwm registers.
After digging the definition and declaration of ePWM, only EPwm1Regs is mapped in the memory.
My question is how (*ePWM[n]) is referred to PWM registers?
Thanks,