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.

MCU-PLUS-SDK-AM263X: Definition of CSL_EPWM_AQCTLA and others

Part Number: MCU-PLUS-SDK-AM263X
Other Parts Discussed in Thread: SYSCONFIG

I am trying to understand ePWM registers.  There is a Register Addendum manual (spruj42d.pdf) that gives a definition for the AQCTL register, associated with a memory offset of 0x20 (Table 3-704).  In the SDK, this is defined in the file cslr_etpwm.h as follows:

#define CSL_EPWM_AQCTL                                                         (0x00000020U)

My question is what about the later registers, defined in this same file as:

#define CSL_EPWM_AQCTLA                                                        (0x00000080U)
#define CSL_EPWM_AQCTLA2                                                       (0x00000082U)
#define CSL_EPWM_AQCTLB                                                        (0x00000084U)
#define CSL_EPWM_AQCTLB2                                                       (0x00000086U)

What is their definition? 

I ask because I have received some code that is setting the location (CONFIG_EPWM0_BASE_ADDR+CSL_EPWM_AQCTLA+2) to values such as

0x0012 0x0048 0x0840 0x0060 0x0090 0x0600 0x0900

And some of these are setting what would be reserved bits or bits that only matter if SHDWAQxMODE is set to 1 while setting SHDWAQxMODE to 0.

  • Hi,

    AQCTLA/B and AQCTLA2/B2 is the action qualifier registers for outputA/B, it specifies what actions to take based on the specified event. For example, set epwmA/B output to low/high/toggle on specific event (like when counter = zero or counter compare A on up count etc.)

    Can you please let me know from where did you receive the code? Is this code is generated by sysconfig or is it present in SDK?

    For now, you can refer the below API to configure AQCTLA/B and AQCTLA2/B2 registers.

    Regards,

    Meghavi

  • Thank you.  This is helpful.  The code was from a collaborator using ePWM on a C2000, not the AM263x.