Other Parts Discussed in Thread: C2000WARE
HI ,expert:
I see that TI has some problems with the motor drive example (example path: D:\ TI \C2000 \C2000Ware_MotorControl_SDK_3_01_00_00\ Solutions \ tMDXIDDK379d \ F28004x). I need your guidance:
1.I saw such a paragraph in the f280049c example (line 609 - line 620). Why route GPIO11 out of ADCSOCA?
// GPIO11 routes out ADC SOCA, which can be used for timing measurements // enable ADCSOCAEN in Sync SOC Regs, this will be linked to // OUTPUT7 of the OutputXBar and OUTPUT7 is coming out on // GPIO11, GPIO Peripheral mux 3 SysCtl_enableExtADCSOCSource(SYSCTL_ADCSOC_SRC_PWM1SOCA); //select Output XBAR, OUTPUT7 MUX13 for ADCSOCAO XBAR_setOutputMuxConfig(XBAR_OUTPUT7, XBAR_OUT_MUX13_ADCSOCA); XBAR_enableOutputMux(XBAR_OUTPUT7, XBAR_MUX13); // OUTPUT7 of the OutputXBar and OUTPUT7 is coming out on GPIO11 GPIO_setPinConfig(GPIO_11_OUTPUTXBAR7);
2. If I change the GPIO port configuration of the three pairs of EPWM in the example to EPWM1, EPWM4 and EPWM5.Now I plan to use F280049C-Launchpad control board to verify SVPWM and ADC. Is it feasible if I follow the following method?
(1) First add corresponding signals (sinusoidal, square wave or other) using signal generators at ADC input ports INA2 and INB2;
(2) Test whether the waveforms of EPWM1, EPWM4 and EPWM5 change?If the changes occur, it indicates that SVPWM and ADC work well.Otherwise, an exception occurs.
(3) In the simulation state, check whether the parameters obtained by ADC sampling in "Expression" have changed.
I sincerely hope to get your guidance, thank you!
Best Regards
Johnson Alanl