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: PWM generation with 8Mhz Clk

Part Number: TMS570LS3137
Other Parts Discussed in Thread: HALCOGEN

Tool/software:

Hi Good evening, im trying generate PWM signal with 8Mhz. i tried with different iterations. im unable to do. please give me the solution for this by keeping V2 clk = 80Mhz.

i uploaded below my code. The code i tried with v2clk=90Mhz. i tried to make changes in loop count and all i didnt get output. please provide me some solution.

thankyou,

Suguresh M

8468.pwm.zip

  • Hi Sugresh,

    This is not possible using HALCoGen N2HET code.

    The reason is that, if you verify HALCoGen generated N2HET Code, we have 58 instructions in the program.

    The time taken to execute all these instructions is (assuming 90Mhz clock), 

    58*(1/90M) = 644 nano seconds or 0.644uS.

    So, using HALCoGen, it will not be possible to generate a pulse with less than 0.644nS. In your requirement you want to generate the 8Mhz PWM that means period is 0.125uS. So, this is not possible from HALCoGen.

    What you can do is that you can generate the code using HET IDE.

    If you see simple PWM code in HET IDE, there we no need to use all 58 instructions, just 3 instructions are enough to create PWM waveform. And to execute these three instructions, we just require 33nS time, so here we can generate your required period of 0.125uS easily.

    If you want i can create one HET IDE example for 0.125uS period.

    --
    Thanks & regards,
    Jagadish.