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.

TMDSHVMTRPFCKIT: Question about clarke1.As

Part Number: TMDSHVMTRPFCKIT

Dear team:

Routine: C:\ti\controlSUITE\development_kits\HVMotorCtrl+PfcKit_v2.1\HVPM_Sensored

Build level: Level 2

After make the below modification, my customer find that the value of "clarke1.As" & "clarke1.Bs" will maintain at the initial value.

In f2833xdrvlib.h:

// Used to indirectly access all EPWM modules
volatile struct EPWM_REGS *ePWM[] =
{ &EPwm1Regs, //intentional: (ePWM[0] not used)
&EPwm1Regs,
&EPwm2Regs,
&EPwm3Regs,
&EPwm4Regs,
&EPwm5Regs,
&EPwm6Regs,
&EPwm7Regs,
};

In DSP2833x_Headers_nonBIOS.cmd:

EPWM1 : origin = 0x006800, length = 0x000022 /* Enhanced PWM 1 registers */
EPWM2 : origin = 0x006840, length = 0x000022 /* Enhanced PWM 2 registers */
EPWM3 : origin = 0x006880, length = 0x000022 /* Enhanced PWM 3 registers */
EPWM4 : origin = 0x0068C0, length = 0x000022 /* Enhanced PWM 4 registers */
EPWM5 : origin = 0x006900, length = 0x000022 /* Enhanced PWM 5 registers */
EPWM6 : origin = 0x006940, length = 0x000022 /* Enhanced PWM 6 registers */
EPWM7 : origin = 0x006980, length = 0x000022 /* Enhanced PWM 7 registers */

And:

EPwm1RegsFile : > EPWM1 PAGE = 1
EPwm2RegsFile : > EPWM2 PAGE = 1
EPwm3RegsFile : > EPWM3 PAGE = 1
EPwm4RegsFile : > EPWM4 PAGE = 1
EPwm5RegsFile : > EPWM5 PAGE = 1
EPwm6RegsFile : > EPWM6 PAGE = 1
EPwm7RegsFile : > EPWM7 PAGE = 1

In DSP2833x_EPwm.h:

//
// External References & Function Declarations
//
extern volatile struct EPWM_REGS EPwm1Regs;
extern volatile struct EPWM_REGS EPwm2Regs;
extern volatile struct EPWM_REGS EPwm3Regs;
extern volatile struct EPWM_REGS EPwm4Regs;
extern volatile struct EPWM_REGS EPwm5Regs;
extern volatile struct EPWM_REGS EPwm6Regs;
extern volatile struct EPWM_REGS EPwm7Regs;

In addition, the following warnings will appear after compiling:

Best regards,

Green

  • The example project is for the F28035 device,  it may need to make a few minor changes on device initialization codes and on .cmd file as well according to the F28335 device.

    Please recommend that the customer to use the example labs in MotorControl SDK.with the newer C2000 device.  You may aware of that controlSUITE is no longer being updated. The latest software releases for C2000 are now provided through C2000Ware with application examples through the DigitalPower SDK and MotorControl SDK.

  • Hi Yanming:

    Thank you for your advice, But customer feedback that currently they have no plan to replace the chip, so you may need to help to provide what needs to be modified to make the routine applicable to F28335.

    Best regards,

    Green

  • Change the PWM, ADC and GPIO configuration codes in the project according to the device the customer used. It's difficult to provide a detailed modification to any customers on E2E like this as you required.

    You may refer to the example in the folder below. Don't use the EPWM6& for the PWMDAC.

    C:\ti\controlSUITE\development_kits\HVMotorCtrl+PfcKit_v2.1\HVPM_Sensorless_2833x