Part Number: TMS320F280049C
Hello,
We have an application that uses the TI RTOS (without the timestamp module).
We want to use use TIMER2 (with the internal oscilator as a source) as a diagnostic for the TIMER0 (used for the RTOS 1ms tick)
Timer 0 Uses sys clock (100Mhz) as a source
Timer 2 Internal Oscillator 1 Clock Source (no prescaler)
Then we configure TIMER 2 to interrupt every millisecond and increase a software counter every time and use that to check against the RTOS ms counter in a 1 second software task.
Observations/question:
1. I noticed that the value calculated with Timer 2 drifts away constantly.
2. If I was to configure Sysclock as a source for Timer 2 then the counter doesn't drift away but that would no avoid common mode errors
3 In the TRM Chapter 3.7.3.6 it is mentioned that for Timer 2 "If a non-Sysclock source is used, the source must be divided down to no more than half of the sysclck".
Does this mean we cannot use Timer2 for this purpose?
Thank you
