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.

TMS320F28069F: AQCTL register setup in the Motorware software

Part Number: TMS320F28069F
Other Parts Discussed in Thread: MOTORWARE

Hello,

I have a question on the Motorware software for TMS320F2806xF devices.

Specifically it is on the function of HAL_setupPwms() listed in the file of hal.c.

With respect to setting up the Action-Qualifier Output Register (AQCTL), only AQCTLA is setup; however AQCTLB does not seem to be setup.

The EPWM outputs EPWMxA and EPWMxB should be complementary.

Where is the AQCTLB register setup?

Meanwhile the function of mainISR() calls for HAL_writePwmData(halHandle,&gPwmData).

However it is found that the function of HAL_writePwmData() calls for only the function of PWM_write_CmpA().

Why is PWM_write_CmpB() not called for?

Thank you for your guidance.

With regards,

JS Yoo

  • If the EPWMxA and EPWMxB outputs are set to the complementary mode, only AQCTLA  and CMPA need to be configured and write. You might have a look at the EPWM chapter of the device technical manual if you want to know more. 

  • Hi Yanming Luo,

    I understood it by having a look at the EPWM chapter of the device technical manual.

    Meanwhile I have realized that I had already understood it last year.

    I might be absent-minded this week.

    Thank you for your guidance.

    With regards,

    JS Yoo