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.

LAUNCHXL-F28379D: help running dual_axis_drive project with different PWM configuration

Part Number: LAUNCHXL-F28379D
Other Parts Discussed in Thread: BOOSTXL-3PHGANINV

Hi 

I am having some trouble trying to get the dual axis project running with different PWM modules in one of my custom boards.

With the BOOSTXL-3PhGaNInv inverter PWM1,2,3 are used for the first motor and PWM 4,5,6 are used for the second motor.

The pin configuration in my custom board is exactly same as the BOOSTXL-3PhGaNInv hardware, with one change(Motor 1 Phase A pwm is connected to PWM11 and Motor 2 Phase A pwm is connected to PWM12)

I would like to use PWM11,2,3 for the first Motor and PWM12,5,6 for the second Motor.

In dual_axis_servo_drive_user.h, I tried changing the following:

Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
//#define M1_ADC_TRIGGER_SOC ADC_TRIGGER_EPWM1_SOCA // NC: Set up based board
#define M1_ADC_TRIGGER_SOC ADC_TRIGGER_EPWM11_SOCA
//#define M1_U_PWM_BASE EPWM1_BASE // NC: Set up based board
#define M1_U_PWM_BASE EPWM11_BASE
#define M1_V_PWM_BASE EPWM2_BASE // NC: Set up based board
#define M1_W_PWM_BASE EPWM3_BASE // NC: Set up based board
//#define M1_INT_PWM INT_EPWM1 // NC: Set up based board
#define M1_INT_PWM INT_EPWM11
//#define M2_ADC_TRIGGER_SOC ADC_TRIGGER_EPWM4_SOCA // NC: Set up based board
#define M2_ADC_TRIGGER_SOC ADC_TRIGGER_EPWM12_SOCA
//#define M2_U_PWM_BASE EPWM4_BASE // NC: Set up based board
#define M2_U_PWM_BASE EPWM12_BASE
#define M2_V_PWM_BASE EPWM5_BASE // NC: Set up based board
#define M2_W_PWM_BASE EPWM6_BASE // NC: Set up based board
//#define M2_INT_PWM INT_EPWM4 // NC: Set up based board
#define M2_INT_PWM INT_EPWM12
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

But when running Build level 1, to check the PWM pulses, the PWM ISR counter(motorVars[0].isrTicker) does not increment, which means that the PWM 11 interrupt is not generated.

Is there any other configuration settings that needs to be modified? 

Thanks,

AK