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.

TMS570LC4357-EP: Example code for configure 1 ms timer using the RTI

Part Number: TMS570LC4357-EP
Other Parts Discussed in Thread: HALCOGEN, TMS570LC4357

Hello,

I am currently working with the TMS570LC4357-EP MCU and using HALCoGen to configure the peripherals.

I would like to generate a periodic interrupt every 1 ms using the RTI (Real-Time Interrupt) module. I see the RTI configuration options in HALCoGen, but I am not fully clear on the correct steps to configure the counter, compare value, and interrupt to achieve a 1 ms periodic timer.

Could you please help clarify:

  1. What is the recommended configuration in HALCoGen to generate a 1 ms periodic interrupt using RTI?

  2. How should the compare value be calculated based on the RTI clock?

  3. Is there any example code or reference project available that demonstrates configuring RTI for a 1 ms interrupt on the TMS570LC4357?