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.

timer interrupts



I am using timer interrupt on 28062 processor.

First time i configure the timer to 5 ms using Configcputimer function.

I get interrupt at 5ms everytime.

But i want to modify the period once the interrupt comes.

but no matter what i am unable to do so.

I have written to Cputimer0.periodinus and the value stays there.

then i set TRB bit.  

and tried other things to get 1 ms interrupt. No matter what the interrupt will only come at 5 ms.

i tried stopping starting timer using TSS etc....but all is waste.

i also tried this

CpuTimer0Regs.TCR.all = 0x4001; 

calling the config function in the interrupt hangs the processor and no code runs.

If i am unable to change the period easily and on the fly its really pathetic on the part of the processor. I wonder how are these processors even being sold. 

and i am no newbie.