TIDUAY6E November   2015  – March 2020

 

  1.   Revision History

Running the Code

  1. Run the project by clicking the green arrow button.
  2. In the watch view, check if the guiVbus, guili, guiIo, and guiVo variables are updating periodically.
  3. Set the value of rlyConnect to 1, which will connect the relay, and the user will hear a clicking sound.
  4. Set the clearlnvTrip variable to 1.
  5. EmPwm1Regs.TZFLG.all appears.
  6. Set EPwm1Regs to zero, and the boardStatus will update to boardStatus_NoFault.
  7. Set the invModIndex to 0.5.
  8. With a resistance of 100 Ω connected at the output, first raise the input DC bus up slowly to 50 V. Observe the current and voltage waveform on the scope. AC current and voltage waveform should appear albeit at a low voltage. Now, slowly increase the DC bus to 380 V.
  9. Observe the AC waveform on the oscilloscope for the voltage and current.
  10. Observe the clean AC waveform (owing to the low frequency switching, a sharp pulse around the zero crossing is expected).
  11. Check the frequency of the generated AC waveform.
  12. Confirm that the frequency matches the value entered on the powerSUITE page.
  13. Confirm the AC measurement is correct by viewing the gui_Vrms and gui_Irms values.
  14. For the DC bus of 380 V, and a 100-Ω output with a 0.5 inverter modulation index, the output voltage will be close to guiVrms = 133, and the current will be guiIrms = 1.35 A for SDFM sensing; for ADC sensing, the measured current is going to be higher because the inductor current is measured instead of the output current.
  15. NOTE

    If there are inconsistencies in the measured valued and the actual values, confirm that the hardware and enter the correct values on the powerSUITE page for the scaling of voltages and currents.

    Figure 24 shows the build level 1 expressions view with power measurement.

    TIDM-HV-1PH-DCAC Fig22.pngFigure 24. Build Level 1 Expressions View With Power Measurement

    Figure 25 shows the graph window inside CCS that was set up previously (see Figure 23). The measured voltage and current AC waveform can be observed on these graphs.

    Figure 25 shows the graph imported in the build level 1 through the graph1.graphprop file, displaying the measured per-unit voltage and current values.

    If nothing is observed in the graph, put dlog1.status in the Expression window, and if it is set to 0, set it to 1. Also, if multiple AC cycle need to be observed, enter dlog1.prescalar to be greater than 1; for example, it can be set to be 5.

    TIDM-HV-1PH-DCAC Build_Level_1_Graph2.GraphProp_file_Showing_Msrd_Per-unit_Volt_Current_Values_TIDUAY6.pngFigure 25. Build Level 1 Graph.1.GraphProp File Showing Measured Per-Unit Voltage and Current Values
  16. The AC voltage may be modulated by changing the modulation index through the watch window.
  17. The check for this build is now completed.
  18. Verify the following items on successful completion of the build.
    1. Inverter modulation scheme and generation of correct AC waveform.
    2. Sensing of voltages, currents, and scalings are correct.
    3. Interrupt generation and execution of the build 1 code in the inverter ISR.
  19. To power down, set invModIndex to zero.
  20. Set rlyConnect to zero.
  21. Slowly decrease the DC bus voltage to 0 V.
  22. The controller can now be halted, and the debug connection is terminated.

NOTE

In case CCS loses connection at any point, bring the system to a safe stop by bringing the input voltage to zero and then disconnecting the JTAG cable and reconnecting.