This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
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,
Hi Elizabeth,
I imported this project from ControlSUITE/Development Tools/Digital Power/HV Resonant LLC Developer's Kit/Example Projects/High Voltage LLC DC/DC Converter. then click the "Import the example project into CCS".
But "open declaration" still does not work.
I can find the declaration of ePWM[] in the file you mentioned. But this is still a declaration but not a definition of a register (i.e. not related to EPWM1REG). What do you think on this?
I found the following definition in the f2802_V3.2/include. But I am using f28069 and I replaced f2802x with f2806x library which does not include the definition of *ePWM[].
Do you have any suggestion on this?
Thanks,
Tian