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.

TMS320f2812 Timer Period Interrupts

Does anyone have some programming examples, in which there is Timer Period Interrapt or the same, or may be somebody can help with my code:

interrupt void T4PINT_isr(void);

void main(void)

{

InitSysCtrl();

// Disable CPU interrupts 

   DINT;

InitPieCtrl();

//Disable CPU interrupts and clear all CPU interrupt flags:

   IER = 0x0000;

   IFR = 0x0000;

 InitPieVectTable();

   EALLOW;

 PieVectTable.T4PINT = &T4PINT_isr;

   EDIS;

IER |= M_INT5; 

PieCtrlRegs.PIEIER5.bit.INTx1 = 1; 

 EINT;   // Enable Global interrupt INTM

 ERTM;   // Enable Global realtime interrupt DBGM

   for(;;);

}

 

interrupt void T4PINT_isr(void)

{

k++;

}

Timer 4 works ok (i don't write it Initialization here), but my function T4PINT_isr doesn't call.

Thank you in advance.