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.

TMS320F28027: waveform and invSine value issues

Part Number: TMS320F28027
Other Parts Discussed in Thread: SFRA, CONTROLSUITE

Hi team,

Here're some issues from the customer may need your help:

The DC-AC currently uses an open loop inverting output 50-HZ sinusoidal waveform because during the debug phase, the Vbus bus voltage is powered in series with 4 12-V 7AH, so the bus voltage is 48 V~52 V, and the inverted H-bridge is shown in Figure 1.

The PWM2A drives Q1 through the drive circuit output, the PWM2B drives Q2 through the drive circuit output and the PWM2 drives at 20 KHZ.

The PWM3A drives Q3 through the drive circuit output, the PWM3B drives Q4 through the drive circuit output, and the PWM3 drives at 50HZ.

And the PWM2 and PWM3 match the code of the reference project9(tidm_hv_1ph_dcac  project). Because TMS320F28027 this chip does not support floating-point operations, the following code is executed in the PWM2 interrupt:

RAMPGEN_run(&rgen1);

//
// Use the angle value to compute the sine value
//
invSine = sinf((rgen1.out)*6.283185307f);

The execution of the above code program has a significant delay, so the number (1-abs (iinvSine * invModIndex)) is set to 200 elements of the uint16 type, calling the same array each time the zero is passed (ZeroCross). However, following this procedure, the waveform of the first half of each halfshaft (that is, one-fourth of the full cycle at a time of zero crossing) will exhibit an exception (as shown in Figure 2). See Figure 3 for a schematic overview of the H-bridge.

Figure 1

Figure 2

Figure 3

Issues:

1) Why does this scheme have waveform abnormalities when crossing zero, how can it be improved in the program? Note: the code is purely open loop inverting and does not use SFRA and DCL.

2) Does the invSine value conform to SPWM's laws? How is the invSine value generated modulated? Unipolar SPWM or bipolar SPWM?

3) Is there any reference could help when make an inverter? And it would be better with a detailed inverting process and waveform.

Could you help check this case? Thanks.

Best Regards,

Cherry

  • Hi,

    May I know is there any update?

    Thanks,

    Cherry

  • Cherry,

    this is a customer design, and it is not possible to solve the challenges through e2e as this will constitute engineering consulting. We can offer answers on questions related to the device. I will still offer from pointers as below:

    1. If they want to look at how to drive PWM in open loop on fixed point processor they can look at solar explorer kit, C:\ti\controlSUITE\development_kits\SolarExplorer_v1.1 this is available in controlSUITE and used fixed point processor. Doing floating point conversion in fixed point processor is going to be very inefficient.

    2. I will suggest them to move to F280025

    3. If the ringing is happening in open loop, it must be something in the circuit that is resonating. I see they have some interesting resistor dividers that connect to the DC bus from the line, is there any need for those? 

  • Hi Manish,

    No resistor divider is used. Input to the AD port of the DSC by operational placement.

    Thanks and regards,

    Cherry

  • Cherry, 

    Ok, but i still do not know why it will ring under open loop. They may need to investigate this on their own. 

    -Manish