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.

Pwm output pin

Other Parts Discussed in Thread: HALCOGEN

Hi,

I'm working wit a TMS570LS3137.

Following the instruction on the "example_hetPwm.h" included in HalCoGen which pin on the board should emit the generated signal? I've tested them all with an oscilloscope but they're all silent.

In the above example the PINMUX tab and the "pin 0.7" tab in HET1 are untouched. I'm surprised that this Is not required to emit pwm.

grazie,

Matteo

  • Hi Matteo,

    In the example setting, HET pin8 is used for PWN0. To generate PWM waveform on pin8, please enable the pin action which is at bit22 of MOV64 control field. The easiest way is to call function pwmStart whcih is defined in het.c

    void pwmStart( hetRAMBASE_t * hetRAM, uint32 pwm){....}

    Regards,

    QJ