Timers Programming Model
MSC8144E Reference Manual, Rev. 3
Freescale Semiconductor
21-19
21.4.1.2
Timer Channel Status and Control Registers (TMRnSCTLx)
EIN
3
0
External Initialization
Enables another timer within the same module
to force the reinitialization of this timer when the
other timer has an active compare event.
Details on Broadcast mode are presented in
Section 21.1.5.3, Broadcast from an Initiator
Timer, on page 21-12.
0
External timers can not force a
reinitialization of this timer.
1
External timers may force a
reinitialization of this timer.
OFLM
2–0
0
Output Mode
Determine the mode of operation for the timer
output signal. For all of these modes except 000
and 111, the output flag is not toggled when the
timer reaches the compare value but instead
when the timer advances one value beyond. For
example, for a compare value of 7, it toggles on
the transition from 7 to 8, not 6 to 7. Unexpected
results may occur if the Output mode field is set
to use alternating compare registers (mode 100)
and the ONCE bit is set.
000
Asserted while timer is active.
001
Clear timer output on successful
compare.
010
Set timer output on a successful
compare.
011
Toggle the timer output flag when a
successful compare occurs.
100
Toggle the timer output flag using
alternating compare registers.
101
Set on compare, cleared on
secondary input signal’s edge.
110
Set on compare, cleared on timer
rollover.
111
Enable gated clock output while the
timer is active.
TMR[0–3]SCTL[0–3]
Timer Channel Status and Control Register
Offset 0x1C + x*0x40
Bit
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
TCF
TCFIE TOF TOFIE
IEF
IEFIE
IPS
INPUT
CM
MSTR EEOF
VAL FORC OPS
OEN
Type
R/W
R
R/W
W
R/W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Table 21-5. TMR[0–3]SCTL[0–3] Bit Descriptions
Name
Reset
Description
Settings
TCF
15
0
Timer Compare Flag
Set when a successful compare occurs. Clear
the bit by writing 0 to it.
0
No successful compare.
1
Successful compare.
TCFIE
14
0
Timer Compare Flag Interrupt Enable
Enables interrupts when the TCF bit is set.
0
No interrupt.
1
Interrupt.
TOF
13
0
Timer Overflow Flag
Set when the timer rolls over its maximum value
0xFFFF or 0x0000, depending on count
direction. Clear the bit by writing 0 to it.
0
No overflow.
1
Overflow. The timer has reached its
maximum or minimum value.
TOFIE
12
0
Timer Overflow Flag Interrupt Enable
Enables interrupts when the TOF bit is set.
0
No interrupt.
1
Interrupt.
Table 21-4. TMR[0–3]CTL[0–3] Bit Descriptions (Continued)
Name
Reset
Description
Settings
Summary of Contents for MSC8144E
Page 1: ...MSC8144E Reference Manual Quad Core Media Signal Processor MSC8144ERM Rev 3 July 2009 ...
Page 48: ...MSC8144E Reference Manual Rev 3 xlviii Freescale Semiconductor ...
Page 86: ...MSC8144E Reference Manual Rev 3 1 38 Freescale Semiconductor Overview ...
Page 168: ...MSC8144E Reference Manual Rev 3 3 60 Freescale Semiconductor External Signals ...
Page 242: ...MSC8144E Reference Manual Rev 3 5 26 Freescale Semiconductor Reset ...
Page 314: ...MSC8144E Reference Manual Rev 3 8 24 Freescale Semiconductor General Configuration Registers ...
Page 414: ...MSC8144E Reference Manual Rev 3 10 14 Freescale Semiconductor MSC8144E SC3400 DSP Subsystem ...
Page 452: ...MSC8144E Reference Manual Rev 3 11 38 Freescale Semiconductor Internal Memory Subsystem ...
Page 520: ...MSC8144E Reference Manual Rev 3 12 68 Freescale Semiconductor DDR SDRAM Memory Controller ...
Page 1070: ...MSC8144E Reference Manual Rev 3 21 28 Freescale Semiconductor Timers ...