MSC8113 Reference Manual, Rev. 0
Freescale Semiconductor
22-1
Timers
22
The MSC8113 device contains 32 timers of 16 bits each that serve as frequency dividers,
watchdog timers, clock generators, and event counters. Each timer receives input from one of 15
sources: six external input signals, eight timer outputs, or the local bus clock (BUSES_CLOCK).
The timers are divided into two groups: Timers Module A and Timers Module B. For Timers
Module A, each timer receives an input clock from TIMER0, TIMER1, TDM0RCLK,
TDM1RCLK, TDM0TCL and TDM1TCLK. Each timer can also receive input from Timers
A[8–15], thus supporting various structures such as using one timer as a prescaler of another
timer. TIMER0 and TIMER1 can also be driven by Timer A0 and Timer A4, respectively. For
Timers Module B, each timer receives input from TIMER2, TIMER3, TDM2RCLK,
TDM3RCLK, TDM2TCLK, and TDM3TCLK. Each timer also receives input from Timers B8
through B15, thus supporting the same structures as Timers Module A. TIMER2 and TIMER3
are also driven by Timer B0 and Timer B4, respectively (see Figure 22-1). Each timer generates
interrupts. Timer A6 in the Timers Module A connects to the SIU and serves as the internal SIU
timer. For details, see Chapter 4, System Interface Unit (SIU).
Two timers in each timers module can drive two outputs (see Figure 22-1). When the timers
serve as frequency dividers, the output can be configured in one of two ways:
Pulse. The output frequency is: out = in/(compare register value)
Toggle. The output frequency is: out = in/(compare register value
×
2)
The timer modules are accessible and configured through the IPBus (see Chapter 19, Internal
Peripheral Bus (IPBus)). Each timer that reaches the compare value (TCMP reg) can generate
one interrupt signal that connects to one of the SC140 core LICs, so this SC140 core services the
timer interrupts. When accepting an interrupt request, an SC140 core should read the Timer
Event Register (TER) to identify the interrupt source and service it accordingly. Afterwards, the
SC140 core should clear the flag in the TER by writing a value of 1 to the associated flag. Each
SC140 core LIC connects to eight timers (see Chapter 17, Interrupt Processing). Table 22-1 and
Table 22-2 show the timer frequency ranges.
Concatenating more than two timers is not allowed. For example, if the output of Timer A8 is
configured as an input of Timer A9, then the output of Timer A9 cannot be used as an input to
another timer. Also, connecting the output of a timer to its input is not allowed. However, the
output of Timer A8 can be configured as an input to multiple timers.
Содержание MSC8113
Страница 1: ...MSC8113 Reference Manual Tri Core 16 Bit Digital Signal Processor MSC8113RM Rev 0 May 2008 ...
Страница 20: ...MSC8113 Reference Manual Rev 0 xx Freescale Semiconductor Contents ...
Страница 28: ...MSC8113 Reference Manual Rev 0 xxviii Freescale Semiconductor ...
Страница 56: ...MSC8113 Reference Manual Rev 0 1 28 Freescale Semiconductor MSC8113 Overview ...
Страница 76: ...MSC8113 Reference Manual Rev 0 2 20 Freescale Semiconductor SC140 Core Overview ...
Страница 134: ...MSC8113 Reference Manual Rev 0 4 30 Freescale Semiconductor System Interface Unit SIU ...
Страница 168: ...MSC8113 Reference Manual Rev 0 6 18 Freescale Semiconductor Boot Program ...
Страница 180: ...MSC8113 Reference Manual Rev 0 7 12 Freescale Semiconductor Clocks ...
Страница 260: ...MSC8113 Reference Manual Rev 0 8 80 Freescale Semiconductor Memory Map ...
Страница 300: ...MSC8113 Reference Manual Rev 0 9 40 Freescale Semiconductor Extended Core ...
Страница 304: ...MSC8113 Reference Manual Rev 0 10 4 Freescale Semiconductor MQBus and M2 Memory ...
Страница 308: ...MSC8113 Reference Manual Rev 0 11 4 Freescale Semiconductor SQBus ...
Страница 544: ...MSC8113 Reference Manual Rev 0 16 46 Freescale Semiconductor Direct Memory Access DMA Controller ...
Страница 590: ...MSC8113 Reference Manual Rev 0 17 46 Freescale Semiconductor Interrupt Processing ...
Страница 614: ...MSC8113 Reference Manual Rev 0 18 24 Freescale Semiconductor Debugging ...
Страница 622: ...MSC8113 Reference Manual Rev 0 19 8 Freescale Semiconductor Internal Peripheral Bus IPBus ...
Страница 724: ...MSC8113 Reference Manual Rev 0 21 32 Freescale Semiconductor UART ...
Страница 920: ...MSC8113 Reference Manual Rev 0 25 150 Freescale Semiconductor Ethernet Controller ...
Страница 1171: ...MSC8113 Reference Manual Rev 0 Freescale Semiconductor C 61 EF wait_rts P 01077FFC 9F rts 71 ...
Страница 1172: ...MSC8113 Reference Manual Rev 0 C 62 Freescale Semiconductor MSC8113 Boot Code ...
Страница 1202: ...MSC8113 Reference Manual Rev 0 Index 30 Freescale Semiconductor Index ...