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.

TMS320F2800137: ADC module acquisition distortion issue

Part Number: TMS320F2800137

Hello, expert!

Modify the unipolar wave generation method based on the TIDM02008 routine, and ADC collects AC_ CUR distortion and program crash; The following figure shows the current sampling waveform without power voltage, and the voltage of the current sensor is tested without distortion. May I ask how to solve it?

best regards!

yong

  • Hello Young

    Can you please elaborate the issue little bit. The graph is not clear. Is this the sensed value at the DAC or the analog value at the ADC pin? How exactly the program crash? Are you using TIDM2008 code or you have your own code?

    Thanks

    Amir

  • I'm sorry.

    Firstly, use TIDM008 software and hardware. Change the main controller to TMS320F2800137 and port the TIDM008 software to the TMS320F2800137 environment;

    Secondly, when the waveform generation method is changed to unipolar waveform generation, ADC collects the current value, but after a period of time, distortion occurs and the program crashes, as shown in the ADC current collection waveform in the following figure

    The action limit is shown in the following figure

    best regards!

    yong

  • Hello Young

    What to you do to change the waveform method to unipolar? In the original method, the low frequency FET always operates at the line frequency. So I assume the original method itself is based on unipolar PWM.

    Why do you have (duty+1) in the calculation of base1_dutyPWMReg? Adding 1 does not seem correct to me.

    What exactly happens when you say program crashes?

    I still do not understand what signal this waveform present. 

    While porting, did you make changes in the linkercommand file?

    Thanks

    Amir