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.

Configuring F28M36x CPU timers

Hi,

I have a problem with configuring the CPU timers of the F28M36x. I use the ConfigCpuTimer function for this purpose. It sets the PRD.all register value as follows:

   temp = (long) (Freq * Period);

   Timer->RegsAddr->PRD.all = temp;

 I’ve made some measurement and it seems to me that the timer interrupt occurs 1 CPU tick later than it should. So I think that the correct way to configure the PRD register would be:

Timer->RegsAddr->PRD.all = temp - 1;

Could someone confirm that which one is correct?

Thanks in advance!

Best Regards,
Tamas