Programming Model
MOTOROLA
General-Purpose Timers
26-3
26.2 Programming Model
The General-Purpose Timers module includes 6 user-accessible 32-bit registers for each timer. Table 26-2
summarizes these registers and their addresses.
26.2.1 Timer Control Registers 1 and 2
Each timer control register (TCTL1 or TCTL2) controls the overall operation of the corresponding
general-purpose timer. Table 26-3 provides the register description. The TCTLx registers control the
following:
•
Selecting the free-running or restart mode after a compare event
•
Selecting the capture trigger event
•
Controlling the output compare mode
•
Enabling the compare event interrupt
•
Selecting the prescaler clock source
•
Enabling and disabling the GP timer
Table 26-2. GP Timers Module Register Memory Map
Description
Name
Address
Timer 1 Control Register
TCTL1
0x00202000
Timer 1 Prescaler Register
TPRER1
0x00202004
Timer 1 Compare Register
TCMP1
0x00202008
Timer 1 Capture Register
TCR1
0x0020200C
Timer 1 Counter Register
TCN1
0x00202010
Timer 1 Status Register
TSTAT1
0x00202014
Timer 2 Control Register
TCTL2
0x00203000
Timer 2 Prescaler Register
TPRER2
0x00203004
Timer 2 Compare Register
TCMP2
0x00203008
Timer 2 Capture Register
TCR2
0x0020300C
Timer 2 Counter Register
TCN2
0x00203010
Timer 2 Status Register
TSTAT2
0x00203014
Summary of Contents for DragonBall MC9328MX1
Page 68: ...1 12 MC9328MX1 Reference Manual MOTOROLA Introduction ...
Page 86: ...2 18 MC9328MX1 Reference Manual MOTOROLA Signal Descriptions and Pin Assignments ...
Page 116: ...3 30 MC9328MX1 Reference Manual MOTOROLA Memory Map ...
Page 126: ...4 10 MC9328MX1 Reference Manual MOTOROLA ARM920T Processor ...
Page 160: ...8 8 MC9328MX1 Reference Manual MOTOROLA System Control ...
Page 272: ...13 32 MC9328MX1 Reference Manual MOTOROLA DMA Controller ...
Page 281: ...Programming Model MOTOROLA Watchdog Timer Module 14 9 ...
Page 282: ...14 10 MC9328MX1 Reference Manual MOTOROLA Watchdog Timer Module ...
Page 300: ...15 18 MC9328MX1 Reference Manual MOTOROLA Analog Signal Processor ASP ...
Page 438: ...18 16 MC9328MX1 Reference Manual MOTOROLA Serial Peripheral Interface Modules SPI 1 and SPI 2 ...
Page 478: ...19 40 MC9328MX1 Reference Manual MOTOROLA LCD Controller ...
Page 574: ...21 32 MC9328MX1 Reference Manual MOTOROLA Memory Stick Host Controller MSHC Module ...
Page 598: ...23 16 MC9328MX1 Reference Manual MOTOROLA Real Time Clock RTC ...
Page 670: ...24 72 MC9328MX1 Reference Manual MOTOROLA SDRAM Memory Controller ...
Page 726: ...25 56 MC9328MX1 Reference Manual MOTOROLA SmartCard Interface Module SIM ...
Page 736: ...26 10 MC9328MX1 Reference Manual MOTOROLA General Purpose Timers ...
Page 854: ...29 18 MC9328MX1 Reference Manual MOTOROLA I2C Module ...
Page 900: ...30 46 MC9328MX1 Reference Manual MOTOROLA Synchronous Serial Interface SSI ...
Page 942: ...32 26 MC9328MX1 Reference Manual MOTOROLA GPIO Module and I O Multiplexer IOMUX ...