Datasheet
DocID024647 Rev 1 57/138
RM0352 ARM
©
dual timer module (SP804)
137
For example, the TimerXLoad value required for a 1 ms periodic interval with
TIMCLK = 100 MHz, TIMCLKENXDIV = 1, and PRESCALEDIV = 1 is calculated as shown
in Example 1.
Example 1 Calculating the TimerXLoad value
Note: The minimum valid value for TimerXLoad is 1. If TimerXload is set to 0 then an interrupt is
generated immediately.
Identification registers
The dual timer module contains a set of read-only identification registers that can be used
by software to identify the timer peripheral type and revision. Software can use this
information to automatically configure itself.
See Section 8.3: Programmer's model for details of the identification registers.
8.3 Programmer's model
This section describes the registers of the dual timer module (SP804). It contains the
following parts:
• Summary of registers
• Register descriptions
Table 51. Expressions for calculating timer intervals
Mode Interval
Free running 32-bit
Free running 16-bit
Periodic and one-shot
TIMCLKENX
DIV
PRESCALE
DIV
×
TIMCLK
FREQ
------ ----------------- ------ ------- ------ ----------------- ------ ------- ----------------------- 2
32
×
TIMCLKENX
DIV
PRESCALE
DIV
×
TIMCLK
FREQ
------ ----------------- ------ ------- ------ ----------------- ------ ------- ----------------------- 2
16
×
TIMCLKENX
DIV
PRESCALE
DIV
×
TIMCLK
FREQ
------ ----------------- ------- ------ ------ ----------------- ------- ------ -----------------------
TimerXLoad×
TimerXLoad
Interval × TIMCLK
FREQ
TIMCLKENX
DIV
PRESCALE
DIV
×
------ ----------------- ------- ------ ------ ----------------- ------- ------ -----------------------=
TimerXLoad
1ms 100MHz×
1x1
----- ----------------- ------ ------- ------ 10
5
0X000186A0===