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 configurations f28335

Hi Together,

I write a timer hardware abstraction layer for the tms 320f28335, and I could not get the informations in the Documentation about the timer prescale value.


with the default example configurations of the timer, no prescale value is set (prescale =1), its shown in the folowing code:

   CpuTimer0Regs.TPR.all  = 0;
   CpuTimer0Regs.TPRH.all = 0;

   CpuTimer0.RegsAddr->PRD.all = CPU_FRQ* 1000000;

I want to configure a higher prescale counter, to take a 30s measurement, but I do not find out, how the prescale works so the configuration of

   CpuTimer0Regs.TPR.all  = 1;
   CpuTimer0Regs.TPRH.all = 0;

   CpuTimer0.RegsAddr->PRD.all = CPU_FRQ* 2000000;

must be the same time, to take a interrupt if the prescaler divide the sysclockout with 2 - but it is'n the same time...


Can you help me and tell how the timer prescaler works ?