DSPRelated.com
Forums

task avoids timer interrupt

Started by ahmadagha23 December 19, 2005
Hi;
I have wirtten a programm that triggers led on dsk6711 every timer
interrupt.

And it work correctly, but when I add a task(TSK) to my project
itdosn't work properly

Its timer interrupt service routin dose not implemented.
In other words adding a simple TSK to my project avoid doing timer
Interrupt Service Routine. Do you know why?
thanks


Ahmad-

> I have wirtten a programm that triggers led on dsk6711 every timer
> interrupt.
>
> And it work correctly, but when I add a task(TSK) to my project
> itdosn't work properly
>
> Its timer interrupt service routin dose not implemented.
> In other words adding a simple TSK to my project avoid doing timer
> Interrupt Service Routine. Do you know why?
> thanks

Operations scheduled by DSP/BIOS are based on OS-internal 1 msec tick, which is in
turn based on TIMER0. C6x11 has 2 timers, so this leaves TIMER1 free for
user-defined operations.

-Jeff



Ahmad Agha-

> Hi thanks for your comments but I use timer1 and my program
> originally include DSP/BIOS; but when I add a TSK to configuration
> tools in DSP/BIOS, the ISR related to timer1(int15) doesn't work.
> why?
> can I initialize interrupts and start timer1 in main routine when I
> including TSK in my DSP/BIOS?

R u saying that adding a TSK somehow affects TIMER1 + ISR? There should be no
affect.

Yes you can initialize interrupts and start TIMER1 manually in main(), but be careful
how u initialize interrupts -- be sure to only "OR" the bits u need, and don't turn
off INT14 or anything else required by DSP/BIOS.

-Jeff