ARM Dual-Timer Module (SP804) Technical Reference Manual r1p0 issue D (DDI0271.pdf) has wrong descriptions.
Free-running modeFree-running mode is selected by setting the following bits in the TimerControlRegister:• set TimerMode bit to 1• set OneShot bit to 0.
-> TmerMode should be 0 in Free-runnng mode
Periodic modePeriodic mode is selected by setting the following bits in the TimerControl Register:• set TimerMode bit to 0• set OneShot bit to 0.
-> TimerMode should be 1 in Periodic mode.
Table 2-1 Expressions for calculating timer intervals
Periodic and One-shot : (TIMCLKENXDIV x PRESCALEDIV)/TIMCLKFREQ x TimerXLoad
-> Timer counter is decremented from TimerXLoad value to 0. So, this equation should be
(TIMCLKENXDIV x PRESCALEDIV)/TIMCLKFREQ x (TimerXLoad+1)
Please fix it.
Thank you very much for your response !