Section 11 Motor Management Timer (MMT)
11.3.3
Timer Status Register (TSR)
The timer status register holds status flags.
Bit
Bit Name
7
TCFG
6 to 2
—
1
TGFN
0
TGFM
Note:
* Can only be written with 0 for flag clearing.
11.3.4
Timer Counter (TCNT)
The timer counter (TCNT) is a 16-bit counter. Only 16-bit access can be used on TCNT; 8-bit
access is not possible.
Rev. 6.00 Mar 15, 2006 page 250 of 570
REJ09B0211-0600
Initial Value
R/W
1
R
All 0
—
R/(W) * Output Compare Flag N
0
R/(W) * Output Compare Flag M
0
Description
Count Direction Flag
Status flag that indicates the count direction of the
TCNT counter.
0: TCNT counts down
1: TCNT counts up
Reserved
These bits are always read as 0 and should only be
written with 0.
Status flag that indicates a compare match
between TCNT and 2Td (Td: TDDR value).
[Setting condition]
•
When TCNT = 2Td
[Clearing condition]
•
When 0 is written to TGFN after reading TGFN
= 1
Status flag that indicates a compare match
between TCNT and the TPDR register.
[Setting condition]
•
When TCNT = TPDR
[Clearing condition]
•
When 0 is written to TGFM after reading TGFM
= 1