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.

TMS570LS0432: How to get a very very simple PWM output....

Part Number: TMS570LS0432
Other Parts Discussed in Thread: HALCOGEN, TMS570LS1224

Hello,

I need a simple steady never changing PWM signal at any output pin (don't care which one).   In any controller I used in the past 40 years there is a timer where you write 2 to 3 registers and you have a PWM output signal.   Not so it seems on this IC.   The only timer I found was a so called "High End Timer".   It seems that this Halcogen can generate PWM code for the HET and I assume for the moment that this even works (despite the pitfalls of the generated code I found on this forum).   Unfortunately the IC designers only put 1 SCI into this IC; we need three.    One is the hardware one, the second is a HET emulated SCI and for the third I am using an SPI (output only, so that's simple to do).   But it seems Halcogen does not allow to use the PWM tabs when I select the SCI emulation.  So either SCI, PWM or write your own microcode.

Can anybody tell me how to generate a simple PWM output?   It surely can't be true that you have to learn and write HET microcode, assemble it and download it into HET RAM to get a simple squarewave out, or is it?  Have I missed something?   Also with the HET code running with a prescale of 6 the LR time is 1.3us which I believe is the best PWM resolution I can get.   Can somebody confirm / deny this?

Kind Regards,

  • Hello,
    Please, take a look at this thread regarding PWM and HET emulated UART: e2e.ti.com/.../717991
    In HALCoGen examples there is an example how to configure HET to generate PWM. Steps how to configure HET module for PWM are described in HALCoGen Help.
    You could choose different device from Hercules family of MCUs that has ePWM modules implemented and with more SCI ports as well. For example TMS570LS1224 got 7 Enhanced Pulse Width Modulator (ePWM) modules and two SCI interfaces.

    Best regards,
    Miro
  • Dear Miro,

    the link you provided is about the same subject but no solution is presented.

    Since we are under pressure I will use the other two SPIs as PWM generators for our first prototypes.

    We decided in the mean time not to use this processor with this "timer" joke for our production units.  So you can close this thread.

    Regards,