Hi,
I am using TMS320VC5416 DSK. I want to generate an interrupt one time after amount of millisecond. I tried to use different values of PRD but I found the Interrupt Period did not change when I run my code.
Here is my code:
Thank you,
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.
Hi,
I am using TMS320VC5416 DSK. I want to generate an interrupt one time after amount of millisecond. I tried to use different values of PRD but I found the Interrupt Period did not change when I run my code.
Here is my code:
Thank you,
DSK x,
Your timerIsr printf might be causing problems in your interrupts.
Please try to put a global counter in the timerIsr routine and increment it every time it gets executed.
Run it for 10 seconds (use a stop watch to check) or so and look for the value of the counter. Essentially you want to see how many times the ISR routine gets called in a certain span of time.
Please ensure that your global variable is set to 0 at the beginning of your code and set to volatile.
Lali