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.

How can I set the PWM duty on TMS570LS0432 by myself?

Other Parts Discussed in Thread: TMS570LS0432

Hi,

If I don't to use the module to set the PWM duty,

how can I set up the PWM duty for TMS570LS0432?

Ray.

  • Ray,

    Would you please provide more specifics about your question? You need to use a timer module to generate a PWM. On TMS570LS0432, you can set up the NHET module to generate a PWM, If you have been to the training seminars, you should find some examples in the training material.

    Thanks and regards,

    Zhaohong

  • Zhaohong,

    I want to set PWM  duty by myself,I don't want to use the function of TI to set the duty.

    For example, 

    set_duty_period1.duty=50;
    set_duty_period1.period=66;
    pwmSetSignal(hetRAM1,pwm0,set_duty_period1);

    I can't use it.

    Because use the function of TI,it's spend many time for my ISR.

    So I have to set the PWM duty by myself.

  • Yu-Chan,

    The NHET module is a microcontroller by itself. I would suggest you first reviewing the userguide and the examples in the training materials to understand how it produces a PWM. Once you understand the operation, you will be able to see what TI software modules intends to do and you can simplify it to reduce the overhead. We may be able to come up more ideas if you can share the details about how you generate the PWM.

    Thanks and regards,

    Zhaohong