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.

TMS320F28069M: ePWM8 is cannot be used.

Part Number: TMS320F28069M
Other Parts Discussed in Thread: MOTORWARE

Hi,

I am trying to use ePWM8 as a diagnostic PWMDAC output instead of ePWM5. However I can't get ePWM8 to work.

I am running the following project:

motorware_1_01_00_18/sw/solutions/instaspin_foc/src/proj_lab01.c

When I build and run the default code it works fine. However when I change the following line (to use ePWM8 instead of ePWM5) it doesn't work as expected.

hal.c, line 653

Default code:

obj->pwmDacHandle[1] = PWMDAC_init((void *)PWM_ePWM5_BASE_ADDR,sizeof(PWM_Obj));

New code:

obj->pwmDacHandle[1] = PWMDAC_init((void *)PWM_ePWM8_BASE_ADDR,sizeof(PWM_Obj));

The project builds fine, and I can run it. But when I use the code composer debug interface to look at the ePWM8 registers I can see that they are all 0. Also I cannot manually change the ePWM8 registers through the debug interface but I can change the registers for the other ePWMs. Is there something special about ePWM8? If I use ePWM7 instead it works fine.

Below are the registers for one of the "good" PWMDACs.

Below are the registers for PWMDAC1 (ePWM8):

Any help would be greatly appreciated.

Many thanks,

Fearghal Kineavy