Information

System Configuration
MPC8308 PowerQUICC II Pro Processor Reference Manual, Rev. 1
5-62 Freescale Semiconductor
5.6.5.2 Global Timers Mode Registers (GTMDR1–GTMDR4)
The global timers mode registers (GTMDR1, GTMDR2, GTMDR3, and GTMDR4) are shown in
Figure 5-45.
Erratic behavior may occur if GTCFR1 and GTCFR2 are not initialized before the GTMDRn. Only
GTCFRn[RSTn] and GTCFRn[STPn] can be modified at any time.
Table 5-58 defines the bit fields of GTMDR.
Offset
0x10(GTMDR1)
0x12(GTMDR2)
0x20(GTMDR3)
0x22(GTMDR4)
Access: Read/Write
0 7 8 9 10 11 12 13 14 15
R
SPS CE OM ORI FRR ICLK GE
W
Reset All zeros
Figure 5-45. Global Timers Mode Registers (GTMDR1GTMDR4)
Table 5-58. GTMDR Bit Settings
Bits Name Description
0–7 SPS Secondary prescaler value
The secondary prescaler is programmed to divide the clock input to corresponding timer by values from 1 to
256. The value 0x00 divides the clock by 1 and 0xFF divides the clock by 256.
8–9 CE Capture edge and enable interrupt
00 Disable interrupt on capture event; capture function is disabled
01 Capture on rising TINn edge only and enable interrupt on capture event.
10 Capture on falling TINn edge only and enable interrupt on capture event.
11 Capture on any TINn edge and enable interrupt on capture event.
Note: The frequency of TINn should be slower than system clock (TINn is sampled internally by system clock
to detect TINns rising/falling edge before updating the counter)
10 OM Output mode
0 Toggle TOUT
n every time when the corresponding timer matches its reference value.
1 Active-low pulse on TOUT
n for one timer input clock cycle (4 input clock cycles for the system clock) as
defined by the ICLKn bits. Thus, TOUT
n may be low for four general system clocks, one general system
slow go clock period, or one TINn pin clock cycle period.
Note: TOUT
n changes are internally synchronized to the rising edge of the system clock
11 ORI Output reference interrupt enable
0 Disable interrupt for reference reached (does not affect interrupt on capture function).
1 Enable interrupt on reaching the reference value.
12 FRR Free run/restart mode
0 Free run. The timer count continues to increment after the reference value is reached.
1 Restart. The timer count is reset immediately after the reference value is reached.