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