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: Timer Questions

Part Number: TMS570LS0432

Hello!

I am new in programming Hercules Microcontrollers and try to find out, how the timers work. When i search the Internet or the TI Site i only find information, on how to use the HETs to generate PWMs.

Is it possible, to trigger a timer, (by pressing a button for example)  which generates an interrupt after one second to turn on/off a led?

Im sorry for this stupid beginners question, but i didnt found out so far, how to get this informations :-)

best regards

Kubiks

  • Hello Kubiks,

    The short answer to your question is yes. It is very possible. NHET is a very powerful programmable timer that can operate autonomously from the CPU with complex input or output wave forms.

    However, from your description of your intended use, it would be more likely that you would need the RTI. You can configure the RTI match interrupt to trigger an interrupt when its internal counter matches a set value that results in the 1 second delay. Upon the detection of the button press you can zero out the RTI counter and enable the interrupt so that when the RTI counter reaches the match value, the interrupt fires and you can turn on/off the LED dependent on its prior state.

    More information regarding the RTI (and NHET for that matter) can be found in the device Technical Reference Manual. You can find a link to the manual under the Technical Documents tab --> User Guides section of the product page: www.ti.com/.../technicaldocuments

    Note that there is also a lot of other documentation such as getting started with HET application note and others that might be helpful.

    If you need to use an output PWM to generate the timer, you may also want to consider the use of the ePWM module included on the LS0432 device.