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 Timer Interrupts

Other Parts Discussed in Thread: TMS570LS20216, NOWECC, HALCOGEN

Hi,

I am using the TMS570 Microcontroller Development Stick, with a TMS570LS20216 MCU (ASPGEQQ1). I would like to be able to use a timer, such as timer 0 to generate regular interrupt ticks, that can be used to perform time critical tasks.

I have used timer 0 previously on a project using a TMS320, which used the interrupt _c_int99. I have looked at the code that comes with the development stick, which mentions timer 0. But the only reference to timer 0 is as follows:

/* Timer 0 Configuration                                                     */
/* 0x44 */
union t0c
{
  unsigned long T0C_UL;
  struct
    {
      unsigned           : 2;
      unsigned t0mo_B14  : 14;
      unsigned           : 1;
      unsigned t0cc_B7   : 7;
      unsigned           : 6;
      unsigned t0ms_B1   : 1;
      unsigned t0rc_B1   : 1;
    } T0C_ST;
} T0C_UN;

Can I use this timer to generate regular interrupts?

Is there any sample code available that could help me generate regular timer interrupts using timer 0 or any other timer?

Or can anyone point me in the right direction?

Regards,

Dave