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.

DRV8412-C2-KIT: control register for A and B

Other Parts Discussed in Thread: CONTROLSUITE, DRV8312

Hello everyone,

I will try to make my question more clear:

In code "Stepper.c" of Microstepping project we see

EPwm1Regs.AQCSFRC.bit.CSFB = 0; EPwm1Regs.AQCSFRC.bit.CSFA = 1;

Which enables A and disables B. I assume, with a configuration are A and B with EPwm1Regs related.

Where can I find this kinda configuration? I could only find the address for control register GPIOCtrlReg.GPAMUX1.bit.GPIO0....

Long

  • Long,

    When you have the project open in CCS. Ctrl+RightClick the variable EPwm1Regs, this will take you to DSP2803x_EPwm.h header file and you will be able to see all the controls you can do with this register. Alternatively you can go to Includes -> C:/TI/controlSUITE/device_support/f2803x/v122/DSP2803x_headers/include and you will find all the peripheral headers there.

    LT

  • Hi LT,

    Thanks for your reply. The header file DSP2803x_EPwm.h explains what is the register. I want to know, how are the registers with outputs connected.

    E.g. in Microstepping EPwm1Regs is connected to OUT_A and OUT_B, EPwm2Regs controls OUT_C and OUT_D. In my application, I want EPwm1Regs controls A,EPwm2Regs controls B and EPwm3Regs controls C.

    I know the trick, that I can take over the project PMSM from DRV8312. But I would like to understand the programm structure.

    Long

  • I hope, I get it now.

    In the file Stepper-DevInit_F2803x. we can set A, B, C and D to the responded register.

     GpioCtrlRegs.GPAMUX1.bit.GPIO0 = 1; //EPwm1A

     GpioCtrlRegs.GPAMUX1.bit.GPIO1 = 1; //EPwm1B

     GpioCtrlRegs.GPAMUX1.bit.GPIO2 = 1; //EPwm2A

     GpioCtrlRegs.GPAMUX1.bit.GPIO3 = 1; //EPwm2B

    So this file is a kind of configuration, where I can change the configuration.

     Long