
309
12.2.5
Timer Status Register (TSR)
The timer status register (TSR) is an 8-bit register that indicates the status of each channel. The
MTU has five TSR registers, one each for channel. TSR is initialized to H'C0 by a power-on reset
or by standby mode. This register is not initialized by a manual reset.
Channel 0: TSR0:
Bit:
7
6
5
4
3
2
1
0
—
—
—
TCFV
TGFD
TGFC
TGFB
TGFA
Initial value:
1
1
0
0
0
0
0
0
R/W:
R
R
R
R/(W)
*
R/(W)
*
R/(W)
*
R/(W)
*
R/(W)
*
Note:
*
Only 0 writes to clear the flags are possible.
Channels 1, 2: TSR1, TSR2:
Bit:
7
6
5
4
3
2
1
0
TCFD
—
TCFU
TCFV
—
—
TGFB
TGFA
Initial value:
1
1
0
0
0
0
0
0
R/W:
R
R
R/(W)
*
R/(W)
*
R
R
R/(W)
*
R/(W)
*
Note:
*
Only 0 writes to clear the flags are possible.
Channels 3, 4: TSR3, TSR4:
Bit:
7
6
5
4
3
2
1
0
TCFD
—
—
TCFV
TGFD
TGFC
TGFB
TGFA
Initial value:
1
1
0
0
0
0
0
0
R/W:
R
R
R
R/(W)
*
R/(W)
*
R/(W)
*
R/(W)
*
R/(W)
*
Note:
*
Only 0 writes to clear the flags are possible.
•
Bit 7—Count Direction Flag (TCFD): This status flag indicates the count direction of the
channel 1, 2, 3, 4 TCNT counters.
This bit is reserved in channel 0. This bit always reads as 1. The write value should always be
1.
Bit 7: TCFD
Description
0
TCNT counts down
1
TCNT counts up (initial value)
•
Bit 6—Reserved: This bit always reads as 1. The write value should always be 1.
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...