Information
System Configuration
MPC8308 PowerQUICC II Pro Processor Reference Manual, Rev. 1
Freescale Semiconductor 5-53
The PTCNR[CLEN] bit enables the PIT timer. It should be set by software after a system reset to
enable the PIT timer.
— PIT disable mode (PTCNR[CLEN] = 0). When the PIT’s clock is disabled, counter maintains
its old value.
— PIT enable mode (PTCNR[CLEN] = 1). When the counter’s clock is enabled, it continues
counting using the previous value.
• PIT periodic interrupt enable/disable mode:
— PIT periodic interrupt enable mode (PTCNR[PIM] = 1). After the PIT’s 32-bit counter reaches
zero, the PIT sets the PTEVR[PIF] flag and generates an interrupt.
— PIT periodic interrupt disable mode (PTCNR[PIM] = 0). After the PIT’s 32-bit counter reaches
zero, the PIT sets the PTEVR[PIF] flag but does not generate an interrupt.
• PIT internal/external input clock mode:
The input clock to the PIT may be an internal system clock or the RTC_PIT_CLOCK.
— PIT use the internal input clock mode (PTCNR[CLIN] = 0)
— PIT use the RTC_PIT_CLOCK (PTCNR[CLIN] = 1)
5.5.7 PIT Programming Guidelines
The following initialization sequence of PIT is recommended:
1. Write to PTPSR to set the PIT prescaler to the desired value
2. Write to PTLDR to initialize the PIT initial value
3. Write to PTCNR to configure and start the PIT operation: PIT input clock source, periodic interrupt
mask, PIT clock enable.
5.6 General-Purpose Timers (GTMs)
The following sections describe theory of operation of the general purpose (global) timer module,
including a definition of the external signals and the functionality. Additionally, the configuration, control,
and status registers are described. Note that individual chapters in this book describe additional specific
initialization aspects for each individual block.
There is one global timer (GTM1) with 4 instances as GTM1_1, GTM1_2, GTM1_3, and GTM1_4.
5.6.1 GTM Overview
Each global timer module includes four identical 16-bit general-purpose timers, two 32-bit timers or one
64-bit timer. Each GTM timer consists of a timer prescale register (GTPSR), a timer mode register
(GTMDR) a timer capture register (GTCPR), a timer counter register (GTCNR), a timer reference register
(GTRFR), a timer event register (GTEVR), and a timer global configuration register (GTCFR). The
GTPSRs and the GTMDRs contain the primary and secondary prescalers, programmed by the user.