
Élan™SC520 Microcontroller User’s Manual
17-1
CHAPTER
17
GENERAL-PURPOSE TIMERS
17.1
OVERVIEW
The general-purpose (GP) timers are intended for most generic timing or counting
applications, such as generating periodic interrupts and measuring or counting external
events.
Features of the general-purpose timers include:
■
Three 16-bit timers
■
Two-stage cascading of timers, to allow a maximum of two 32-bit timer/counter elements
■
Clock source from the system clock (33 MHz), an external pin, or a derived prescale
clock. The external pin and pre-scale clock are available for GP Timer 0 and GP Timer
1 only. The maximum clock is 33 MHz/4.
■
One external input pin for each timer for GP Timer 0 and GP Timer 1, used for external
event capture, pulse count, and counter reset/reload
■
One external output pin for GP Timer 0 and GP Timer 1
■
One interrupt output for each timer
■
Several modes of operation, including:
– Interrupt on terminal count
– Hardware retrigger mode
– Rate and square wave generation
– Continuous mode
17.2
BLOCK DIAGRAM
Figure 17-1 shows a block diagram of the general-purpose timers.
17.3
SYSTEM DESIGN
Table 17-1 shows the general-purpose timer signals shared with other interfaces. When
enabled, the multiplexed signals shown in Table 17-1 either disable or alter any other
function that uses the same pin.
Table 17-1
General-Purpose Timer Signals Shared with Other Interfaces
Default Signal
Alternate Function
Control Bit
Register
TMROUT0
GPCS7
GPCS7_SEL Chip Select Pin Function Select (CSPFS)
register (MMCR offset C24h)
TMROUT1
GPCS6
GPCS6_SEL
TMRIN0
GPCS5
GPCS5_SEL
TMRIN1
GPCS4
GPCS4_SEL
Summary of Contents for Elan SC520
Page 1: ...lan SC520 Microcontroller User s Manual Order 22004A...
Page 4: ...iv lan SC520 Microcontroller User s Manual...
Page 28: ...Introduction xxviii lan SC520 Microcontroller User s Manual...
Page 42: ...Architectural Overview 1 14 lan SC520 Microcontroller User s Manual...
Page 78: ...System Initialization 3 22 lan SC520 Microcontroller User s Manual...
Page 108: ...Clock Generation and Control 5 10 lan SC520 Microcontroller User s Manual...
Page 118: ...Reset Generation 6 10 lan SC520 Microcontroller User s Manual...
Page 148: ...System Arbitration 8 24 lan SC520 Microcontroller User s Manual...
Page 214: ...SDRAM Controller 10 36 lan SC520 Microcontroller User s Manual...
Page 230: ...Write Buffer and Read Buffer 11 16 lan SC520 Microcontroller User s Manual...
Page 288: ...GP Bus DMA Controller 14 22 lan SC520 Microcontroller User s Manual...
Page 316: ...Programmable Interval Timer 16 8 lan SC520 Microcontroller User s Manual...
Page 328: ...Software Timer 18 4 lan SC520 Microcontroller User s Manual...
Page 346: ...Real Time Clock 20 12 lan SC520 Microcontroller User s Manual...
Page 360: ...UART Serial Ports 21 14 lan SC520 Microcontroller User s Manual...
Page 414: ...AMDebug Technology 26 8 lan SC520 Microcontroller User s Manual...