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.

TMS570 pwmEND_OF_PERIOD Interrupt

Other Parts Discussed in Thread: HALCOGEN

I am using a TMS570LS1227 with CCS 6.1 and Halcogen 04.05.01.

I am using the pwmEND_OF_PERIOD interrupt to dynamically modify the PWM period. I notice that even when the PWM is off (not outputting a signal on the pin), the interrupt is still occurring.

I'm using the API functions pwmSetSignal(), pwmStart(), and pwmStop().

If there is a signal attached to the PWM, does the period expire like a timer even when the signal is not being output?

  • Nathan,

    The HET support in Halcogen is more like an example.
    HET can be used in so many different ways (Software approach versus Hardware) that it is not really possible to cover all possibility in Halcogen.

    In the case of pwmStop, the HET program (and so time base) is still running. This API, will disable the pin action (for the corresponding PWM)
    So from outside, the PWM on this pin is stopped, but internally, the pwm is still active. On the PWCNT instruction used by PWM, there is also in the control field a bit to enable disable interrupt on this instruction. API pwmStop does not change this bit. So yes, interrupt will still happen even if externally the pin is no more toggling.

    As I said, you can use this code as a basic template and modify it to fit your needs.