Datasheet
Timer Module
MOTOROLA MCF5206e USER’S MANUAL 14-5
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
1
RST — Reset Timer
This bit performs a software timer reset identical to that of an external reset. All timer
registers takes on their corresponding reset values. While this bit is zero, the other register
values can still be written, if necessary. A transition of this bit from one to zero is what resets
the register values. The counter/timer/prescaler is not clocked unless the timer is enabled.
1 = Enable timer
0 = Reset timer (software reset)
14.4.1.2 TIMER REFERENCE REGISTER (TRR). The TRR is a 16-bit register containing
the reference value that is compared with the free-running timer counter (TCN) as part of the
output-compare function. TRR is a memory-mapped read/write register.
TRR is set at reset. The reference value is not matched until TCN equals TRR, and the
prescaler indicates that the TCN should be incremented again. Thus, the reference register
is matched after (TRR+1) time intervals.
14.4.1.3 TIMER CAPTURE REGISTER (TCR). The TCR is a 16-bit register that latches
the value of the timer counter (TCN) during a capture operation when an edge occurs on the
TIN pin, as programmed in the TMR. TCR appears as a memory-mapped read-only register
and is cleared at reset.
14.4.1.4 TIMER COUNTER (TCN). TCN is a memory-mapped 16-bit up counter that you
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.
Timer Reference Register (TRR) Address MBAR+$104,MBAR+$124
1514131211109876543210
16-BIT REFERENCE COMPARE VALUE REF15 - REF0
RESET1111111111111111
Read/Write Supervisor or User Mode
Timer Capture Register (TCR) Address MBAR+$108,MBAR+$128
1514131211109876543210
16-BIT CAPTURE COUNTER VALUE CAP15 - CAP0
RESET0000000000000000
Read Only Supervisor or User Mode
Timer Counter Register (TCN) Address MBAR+$10C, MBAR+$12C
1514131211109876543210
16-BIT TIMER COUNTER VALUE COUNT15 - COUNT0
RESET0000000000000000
Read/Write Supervisor or User Mode
Fr
eescale S
emiconduct
or
, I
Freescale Semiconductor, Inc.
For More Information On This Product,
Go to: www.freescale.com
nc...
