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.

C5505 General Timer Interrupt



Hi, I'm trying to get a basic timer interrupt to happen on the ezdsp.

I am working off of the AudioFilter program from the google code site.  I have added all of the appropriate registers for the timer and timer flag register. I can see that the time flag register (TIAFR) sets the correct bit when a timer overflows. My problem is that I never can get into my interrupt sub routine for the timer.

What I have done:

I have added the following to vector.asm

.global _Timer_isr

TINT0: .ivec    _Timer_isr

I have created my own timer_int.c and .h file which contains the function

interrupt void Timer_isr(void)

 

I have made sure that IER0 has enabled interrupts for the timer flag (i.e. IER0 = 0x10)

 

Is there anything else that I need to do to get the interrupts working for the general purpose timers?

Thanks,

Tommy

  • Hi,

     

    I recommend you to try our latest CSL2.5 http://processors.wiki.ti.com/index.php/C5000_Chip_Support_Library. Timer interrupt examples are included. 

    Folder name is c55xx_csl\ccs_v3.3_examples\gpt or \c55xx_csl\ccs_v4.0_examples\gpt .

    Regards,

    Hyun

  • Hi Hyun,

     

    Thanks for the reply. While that looks like a good option, I am not able to continue past getting the 'Debug Active Project', do to some errors. I also feel that my problem should be a simple task, and someone would be able to easily provide me with the details that I'm missing.

     

    Once again, I'm just looking to enter to my interrupt subroutine when the timer reaches zero. I can see that the timer interrupt register sets the correct bit, but my interrupt subroutine never is entered.

  • I have built my code off of the example you mentioned and I have the same issue. The issue appears when I try and create a project with both DMA and Timer ISR's. I can only get one or the other to work at once, never both, and I have been working for a solid month on this specific issue. I have also posted here: http://e2e.ti.com/support/dsp/tms320c5000_power-efficient_dsps/f/110/t/91163.aspx PLEASE someone respond to one of these threads so that I can work on getting this resolved!