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.

TMS570LS3137: HET Issue : PWM stopping in between and again starts after some time repeatedly

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Hello, 

I am facing an issue wrt my HET PWM generation. My PWM stops in between and then starts again. it is periodic. I am running PWM at 25khzand 30% cycle. For example i am changing duty cycle from 1 percent to 70%. And then i see bunch of high freq pulses. The bunches are having a time gap between them. i have also put a break point after i set the PWM duty cycle and period.

below is my code snapshot,

I am attaching the waveform

.

like we can see the interval is 275ms.

Thanks in advance ,

If anyone can help me in debug, it would be really great.

Vivek

  • Hello,

    The N2HET1 LRP of the HALCOGen generated code is 128 slots (128 VCLK cycles if HR clock = VCLK). The LRP = 1.6us if VCLK=80MHz. The period of 40us takes 25 LRPs. The Pin action is only performed at the next loop resolution cycle. The duty of 1% takes only 0.25 LRP, which means the waveform will be pulled low all the time.

    You can modify the code to use a small LRP.