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.

CCS: Questions about Hercules_Motorware_Dec2012

Other Parts Discussed in Thread: DRV8301

Tool/software: Code Composer Studio

Hi team

I am using Hercules_Motorware_Dec2012 which was download at the following link:

http://processors.wiki.ti.com/index.php/TMS570LS12x_CNCD#Demo_Software 

What are the below parameters stand for? How large is the parameter value? For example, how much does 0.1 represent?

1 currentAB.value

2 adcData.dcBusV

3 ElecTheta

4 gPwmData.Tabc.value

BR,

Susan

  • Susan,

    The CCS code project defines these parameters.

    1 currentAB.value

    >> This is a scaled value of the bus current measured by the ADC. The value is assigned in the drv.h file. Look into this file to identify the scaling applied.

    2 adcData.dcBusV

    >> This is a scaled value of the DC bus voltage measured by the ADC.

    3 ElecTheta

    >> This is the electrical angle measured by the quadrature encoder interface.

    4 gPwmData.Tabc.value

    >> This is the duty cycle value computed in the control loop and used to update the PWMs.

  • Thanks for your reply.

    One more question:


    What value is currentAB.value converted to, for example, when currentAB.value [0] = 0.1, how many amps does A represent, or 10% of a certain current value?

    The voltage dcBusV is the AD value multiplied by the coefficient 0.00024414. What is the relationship? When dcBusV = 0.1, how many volts does it represent, or 10% of a certain voltage value?

    BR,

    susan

  • Susan,

    These parameters can be calculated from the DRV8301 board schematic and the scaling factors used. I do not have this information handy.

    Note that this kit is no longer available for purchase and is mostly unsupported.

    Regards, Sunil