
General Purpose Timer Modules
MCF5253 Reference Manual, Rev. 1
Freescale Semiconductor
11-5
11.6.3
Timer Counters (TCN0, TCN1)
TCN is a memory-mapped 16-bit up counter that users can read at any time. A read cycle to TCN yields
the current timer value and does not affect the counting operation.
A write of any value to TCN causes it to reset to all zeros.
11.6.4
Timer Event Registers (TER0, TER1)
The TER is an 8-bit register that reports events the timer recognizes. When the timer recognizes an event,
it sets the appropriate bit in the TER, regardless of the corresponding interrupt-enable bits (ORI and CE)
in the TMR.
TER appears as a memory-mapped register and can be read at any time.
Writing a one to a bit will clear it (writing a zero does not affect the bit value); more than one bit can be
cleared at a time. The REF and CAP bits must be cleared before the timer will negate the IRQ to the
interrupt controller. Reset clears this register.
Address
MBAR+$14C
MBAR+$18C
Access: Supervisor or User read/write
15
14
13
12
11
10
9
8
7
6
5
4
3
2
1
0
R
16-BIT TIMER COUNTER VALUE (COUNT15–COUNT0)
W
Reset
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
Figure 11-4. Timer Counter (TCNn)
Address
MBAR+$151
MBAR+$191
Access: Supervisor or User read/write
7
6
5
4
3
2
1
0
R
REF
CAP
W
Reset
0
0
0
0
0
0
0
0
Figure 11-5. Timer Event Register (TERn)
Table 11-3. Timer Event Register (TERn) Field Descriptions
Field
Description
7–2
Reserved for future use. These bits are currently 0 when read.
1
REF
If a one is read from the Output Reference Event bit, the counter has reached the TRR value. The ORI bit in the
TMR enables the interrupt request caused by this event. Writing a one to this bit will clear the event condition.
0
CAP
Not applicable
Содержание MCF5253
Страница 1: ...Document Number MCF5253RM Rev 1 08 2008 MCF5253 Reference Manual...
Страница 26: ...MCF5253 Reference Manual Rev 1 xxvi Freescale Semiconductor...
Страница 32: ...MCF5253 Reference Manual Rev 1 xxxii Freescale Semiconductor...
Страница 46: ...MCF5253 Introduction MCF5253 Reference Manual Rev 1 1 14 Freescale Semiconductor...
Страница 62: ...Signal Description MCF5253 Reference Manual Rev 1 2 16 Freescale Semiconductor...
Страница 98: ...Instruction Cache MCF5253 Reference Manual Rev 1 5 10 Freescale Semiconductor...
Страница 104: ...Static RAM SRAM MCF5253 Reference Manual Rev 1 6 6 Freescale Semiconductor...
Страница 128: ...Synchronous DRAM Controller Module MCF5253 Reference Manual Rev 1 7 24 Freescale Semiconductor...
Страница 144: ...Bus Operation MCF5253 Reference Manual Rev 1 8 16 Freescale Semiconductor...
Страница 176: ...System Integration Module SIM MCF5253 Reference Manual Rev 1 9 32 Freescale Semiconductor...
Страница 198: ...Analog to Digital Converter ADC MCF5253 Reference Manual Rev 1 12 6 Freescale Semiconductor...
Страница 246: ...DMA Controller MCF5253 Reference Manual Rev 1 14 18 Freescale Semiconductor...
Страница 282: ...UART Modules MCF5253 Reference Manual Rev 1 15 36 Freescale Semiconductor...
Страница 298: ...Queued Serial Peripheral Interface QSPI Module MCF5253 Reference Manual Rev 1 16 16 Freescale Semiconductor...
Страница 344: ...Audio Interface Module AIM MCF5253 Reference Manual Rev 1 17 46 Freescale Semiconductor...
Страница 362: ...I2 C Modules MCF5253 Reference Manual Rev 1 18 18 Freescale Semiconductor...
Страница 370: ...Boot ROM MCF5253 Reference Manual Rev 1 19 8 Freescale Semiconductor...