Help with F28069 PWMs
Submitted by Joe on Wed, 02/01/2012 - 00:30
I'm trying to work with the Space Vector PWM 32 Block.
I am using a C2000 F28069 processor with the Texas Instruments High Voltage Digital Motor Control kit (TMDSHVMTRPFCKIT).
I configure the Space Vector PWM 32 block with the following parameters:
PWM Frequency = 10 kHz Event Manager A Pins 1,3,5 Active High, 2,4,6 Active Low When I attempt to compile, I get the following error: undefined first referenced
symbol in file
--------- ----------------
_F281X_EV2_PWM_Init OpenLoopVoltagesFixed.obj
_F281X_EV2_PWM_Update OpenLoopVoltagesFixed.obj
Any suggestions on where to go from here?
Thanks, Joe
Answers
-
Submitted by Anders89 on Wed, 02/01/2012 - 00:46.
Let me stop you right there. The Embedded > TI 32-bit Digital Motor Control > Space Vector PWM block is for the F2812 only. Somewhat confusingly, the F2812 is an older part with completely different and incompatible PWM subsystems from the ePWM units found on the F280x, F280xx Piccolo and F283xx Delfino parts. If you look at the example diagram under menu item:
Embedded > Examples > Digital Motor Control > AC Induction > HV-ACI-Sensorless-FOC
and Embedded > Examples > Digital Motor Control > PMSM > HVpmsm-28035
you will find ePWM blocks configured to drive the 3-phase IGBT inverter on the HV-kit with fault trip enabled. Those diagrams are configured for the F28035, but your F28069 shares identical ePWM units so all you need to do is choose the F28069 target in the MCU config dropdown.
Note that the other purely computational blocks under the Embedded > TI 32-bit Digital Motor Control menu are fine to use on either F2812 or F280x/Piccolo/Defino.0 -
Submitted by Ryan.Smith on Wed, 05/02/2012 - 16:34.
I tried running the HV-ACI-Sensorless-FOC model in an attempt to port it to the 28069 but I could not get it to run in simulation. It is giving fixed point overflow error(s.
0 -
Submitted by Anders89 on Thu, 05/03/2012 - 01:30.
Ryan, all you need to do to port to the F28069 from the F28035 is right click on the 'MCU Config...' block and select F28069 in the CPU drop down. The reason simulating gives you numeric errors is that it is a sensorless algorithm that relies on ADC input from phase currents. The ADC block produce a flat zero value in simulation mode, hence the errors. To run the simulation without error, you need to add a simulated ACI motor and connect the simulated phase currents to the variables that are connected to the ADC input blocks.
0