Chapter 27 Timers
MPC5606BK Microcontroller Reference Manual, Rev. 2
Freescale Semiconductor
649
27.2.3
Overview of the PIT
The PIT module consists of 8 Periodic Interrupt Timers (PITs) clocked from the system clock.
Out of reset, the PIT is disabled. There is a global disable control bit for all of the PIT timers. Before using
the timers, software must clear the appropriate disabled bit. Each of the PIT timers are effectively
standalone entities and each have their own timer and control registers.
The PIT timers are 32-bit count down timers. To use them, you must first program an initial value into the
LDVAL register. The timer will then start to count down and can be read at any time. Once the timer
reaches 0x0000_0000, a flag is set and the previous value is automatically reloaded into the LDVAL
register and the countdown starts again. The flag event can be routed to a dedicated INTC interrupt if
desired.
The PIT is also used to trigger other events:
•
Four of the PIT channels can be used as an eDMA trigger
•
Two PIT channels can be used to trigger a CTU ADC conversion (single)
•
Two PIT channels (one per ADC module) can be used to directly trigger injected conversions on
the ADC
The timers can be configured to stop (freeze) or to continue to run in debug mode. The PIT is available in
all modes where a system clock is generated.
There are no external pins associated with the PIT.
27.3
System Timer Module (STM)
27.3.1
Introduction
27.3.1.1
Overview
The System Timer Module (STM) is a 32-bit timer designed to support commonly required system and
application software timing functions. The STM includes a 32-bit up counter and four 32-bit compare
channels with a separate interrupt source for each channel. The counter is driven by the system clock
divided by an 8-bit prescale value (1 to 256).
UC[13]
PG[4]
UC[29]
PI[5]
PC[7]
UC[14]
PG[5]
UC[30]
PI[6]
PG[7]
PE[10]
UC[15]
PG[6]
UC[31]
PC[4], PI[7]
PG[10]
Table 27-2. eMIOS_1 channel to pin mapping (continued)
Channel
Pin function
Channel
Pin function
ALT1
ALT2
ALT3
ALT1
ALT2
ALT3
Summary of Contents for MPC5605BK
Page 2: ...This page is intentionally left blank...
Page 20: ...MPC5606BK Microcontroller Reference Manual Rev 2 20 Freescale Semiconductor...
Page 103: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 103 Clocks and power...
Page 645: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 643 Timers...
Page 715: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 713 ADC system...
Page 787: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 787 Memory...
Page 893: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 893 Integrity...
Page 943: ...MPC5606BK Microcontroller Reference Manual Rev 2 Freescale Semiconductor 943 Debug...