Élan™SC520 Microcontroller User’s Manual
18-1
CHAPTER
18
SOFTWARE TIMER
18.1
OVERVIEW
The software timer is intended to provide a millisecond timebase with microsecond
resolution. Ideal applications for this function include providing a system wide software
timebase, code profiling, and precise measurement of the time between events. Features
of the software timer include:
■
One 16-bit millisecond counter that increments with a period of one millisecond. This
yields a maximum duration of 65.5 seconds. Note that this timer is accurate to the
precision of the 33-MHz crystal used in the system.
■
A microsecond latch register that provides the number of microseconds since the last
time that the millisecond register was read.
■
The 16-bit millisecond counter is reset to zero when it is read.
■
The software timer can be configured to maintain an accurate time when either a 33.000-
MHz or 33.333-MHz crystal is used in the system.
18.2
BLOCK DIAGRAM
Figure 18-1 shows a block diagram of the software timer.
Figure 18-1
Software Timer Block Diagram
Microsecond
33 MHz
Software Timer
/33
1 MHz
Millisecond
Counter
Rollover
Signal
Microsecond
Register
Latch
Latch
Enable
UPCTR
Élan™SC520 Microcontroller
SWTMRMILLI
SWTMRMICRO
Up Counter
Содержание Elan SC520
Страница 1: ...lan SC520 Microcontroller User s Manual Order 22004A...
Страница 4: ...iv lan SC520 Microcontroller User s Manual...
Страница 28: ...Introduction xxviii lan SC520 Microcontroller User s Manual...
Страница 42: ...Architectural Overview 1 14 lan SC520 Microcontroller User s Manual...
Страница 78: ...System Initialization 3 22 lan SC520 Microcontroller User s Manual...
Страница 108: ...Clock Generation and Control 5 10 lan SC520 Microcontroller User s Manual...
Страница 118: ...Reset Generation 6 10 lan SC520 Microcontroller User s Manual...
Страница 148: ...System Arbitration 8 24 lan SC520 Microcontroller User s Manual...
Страница 214: ...SDRAM Controller 10 36 lan SC520 Microcontroller User s Manual...
Страница 230: ...Write Buffer and Read Buffer 11 16 lan SC520 Microcontroller User s Manual...
Страница 288: ...GP Bus DMA Controller 14 22 lan SC520 Microcontroller User s Manual...
Страница 316: ...Programmable Interval Timer 16 8 lan SC520 Microcontroller User s Manual...
Страница 328: ...Software Timer 18 4 lan SC520 Microcontroller User s Manual...
Страница 346: ...Real Time Clock 20 12 lan SC520 Microcontroller User s Manual...
Страница 360: ...UART Serial Ports 21 14 lan SC520 Microcontroller User s Manual...
Страница 414: ...AMDebug Technology 26 8 lan SC520 Microcontroller User s Manual...