Registers; Free Running Mode; Pre-Load Mode; 40-Bit Timer Operation - Cirrus Logic EP93 Series User Manual

Arm 9 embedded processor family
Table of Contents

Advertisement

Timers
EP93xx User's Guide

18.1.2.1 Free Running Mode

In free running mode, counters TC1 and TC2 will wrap to 0xFFFF when they reach zero
(underflow), and continue counting down. Counter TC3 will wrap to 0xFFFFFFFF when it
underflows, and continues counting down.

18.1.2.2 Pre-load Mode

In pre-load (periodic) mode, the value written to the TC1, TC2 or TC3 Load registers is
18
automatically re-loaded when the counter underflows. This mode can be used to generate a
programmable periodic interrupt.

18.1.3 40-bit Timer Operation

The time stamp debug timer is a 40-bit up-counter used only for long term debugging (TC4).
Its clock source is the 14.7456 MHz clock, divided by 15 to give a 983.04 kHz reference. The
timer value may be read at any time by reading the lower 32-bit word first and then the high
byte. Dividing the result by 983 yields a timestamp in milliseconds. The debug timer does not
cause an interrupt. The timer is controlled by a single enable bit. When the timer is enabled, it
begins counting from zero and when it is disabled, it is cleared back to zero. When it reaches
its maximum value (0xFF_FFFF_FFFF) it wraps around to zero and continues counting
upwards.

18.2 Registers

18-2
Address
Read Location
0x8081_0000
"Timer1Load,"
0x8081_0004
"Timer1Value,"
0x8081_0008
"Timer1Control,"
0x8081_000C
Reserved
0x8081_0020
"Timer1Load,"
0x8081_0024
"Timer2Value"
0x8081_0028
"Timer2Control,"
0x8081_002C
Reserved
0x8081_0060
"Timer4ValueLow"
0x8081_0064
Timer4Enable
0x8081_0080
"Timer3Load"
0x8081_0084
"Timer3Value"
0x8081_0088
"Timer3Control"
0x8081_008C
Reserved
0x8081_0010
Reserved
0x8081_0030
Reserved
0x8081_0040
Reserved
0x8081_0090
Reserved
a. "Enable" is a field in the
Copyright 2007 Cirrus Logic

Table 18-1. Timers Register Map

Write Location
"Timer1Load,"
"Timer1Control,"
"Timer1Clear,"
"Timer2Load"
"Timer2Control,"
"Timer2Clear,"
a
Timer4Enable
/
"Timer4ValueHigh"
"Timer3Load"
"Timer3Load"
"Timer3Clear"
Reserved
Reserved
Reserved
Reserved
"Timer4ValueHigh"
register.
Size
Reset Value
16 bits
0
-
16 bits
0
8 bits
0
1 bit
16 bits
0
-
16 bits
0
8 bits
0
1 bit
-
32
0
9
0
32 bits
0
-
32 bits
0
32 bits
0
1 bit
-
-
-
-
-
-
-
-
-
-
-
DS785UM1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the EP93 Series and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Ep9315Ep9301Ep9302Ep9307Ep9312

Table of Contents