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.

TMS320F280025C: cpu timers

Part Number: TMS320F280025C

Hi, greetings of the day

may I know how to calculate the timer period of the cpu timer ?

  • Hi,

    CPUTimer_setPeriod(base, periodCount) function writes the CPUtimer period into the CPUTIMER_O_PRD register.
    If we need to initialize a CPU Timer to have a timer period of 2s, or if you need to interrupt every 2 sec, we need to calculate the periodCountt as - 
    periodCount = freq * 2
    where freq will be DEVICE_SYSCLK_FREQ( ie 100MHz for f28002x)
    Please go through the 32-Bit CPU Timers 0/1/2 section in TRM and CPU Timer Example (\driverlib\f28002x\examples\timer) for further reference.
    Thanks 
    Aswin