Programming Model
MOTOROLA
General-Purpose Timers
26-5
26.2.2 Timer Prescaler Registers 1 and 2
Each timer prescaler register (TPRER1 and TPRER2) controls the divide ratio of the associated 8-bit
prescaler. The settings for the registers are described in Table 26-4.
IRQEN
Bit 4
Interrupt Request Enable
—Enables/Disables the
generation of an interrupt on a compare event.
0 = Disable the compare interrupt
1 = Enable the compare interrupt
CLKSOURCE
Bits 3–1
Clock Source
—Selects the source of the clock to the
prescaler. The stop-count setting freezes the timer at its
current value.
000 = Stop count (clock disabled)
001 = PERCLK1 to prescaler
010 = PERCLK1 ÷16 to prescaler
011 = TIN to prescaler
1xx = 32 kHz clock to prescaler
TEN
Bit 0
Timer Enable
—Enables/Disables the general-purpose
timer. The TEN bit can be reset only by a hardware
asynchronous reset, not by the SWR reset.
Note:
When configuring this control register, configure
all other bits before configuring the TEN bit.
0 = Timer is disabled (counter reset to
0x00000000)
1 = Timer is enabled
TPRER1
TPRER2
Timer 1 Prescaler Register
Timer 2 Prescaler Register
Addr
0x00202004
0x00203004
BIT
31
30
29
28
27
26
25
24
23
22
21
20
19
18
17
16
TYPE
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
r
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0x0000
BIT
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
PRESCALER
TYPE
r
r
r
r
r
r
r
r
rw
rw
rw
rw
rw
rw
rw
rw
RESET
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0x0000
Table 26-4. Timer 1 and 2 Prescaler Registers Description
Name
Description
Settings
Reserved
Bits 31–8
Reserved—These bits are reserved and should read 0.
PRESCALER
Bits 7–0
Prescaler
—Determines the division value (1–256) of the prescaler.
0x00 = Divide by 1
0x01 = Divide by 2
...
0xFF = Divide by 256
Table 26-3. Timer 1 and 2 Control Registers Description (Continued)
Name
Description
Settings
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 ...