Timer Status Register (Tsr) - Renesas H8S Series Hardware Manual

16-bit single-chip microcomputer
Hide thumbs Also See for H8S Series:
Table of Contents

Advertisement

10.2.5

Timer Status Register (TSR)

Channel 0: TSR0
Channel 3: TSR3
Bit
:
7
Initial value :
1
R/W
:
Note: * Can only be written with 0 for flag clearing.
Channel 1: TSR1
Channel 2: TSR2
Channel 4: TSR4
Channel 5: TSR5
Bit
:
7
TCFD
Initial value :
1
R/W
:
R
Note: * Can only be written with 0 for flag clearing.
The TSR registers are 8-bit registers that indicate the status of each channel. The TPU has six TSR registers, one for each
channel. The TSR registers are initialized to H'C0 by a reset, and in hardware standby mode.
Bit 7—Count Direction Flag (TCFD): Status flag that shows the direction in which TCNT counts in channels 1, 2, 4,
and 5.
In channels 0 and 3, bit 7 is reserved. It is always read as 1 and cannot be modified.
Bit 7
TCFD
0
1
Bit 6—Reserved: This bit cannot be modified and is always read as 1.
Bit 5—Underflow Flag (TCFU): Status flag that indicates that TCNT underflow has occurred when channels 1, 2, 4, and
5 are set to phase counting mode.
In channels 0 and 3, bit 5 is reserved. It is always read as 0 and cannot be modified.
Bit 5
TCFU
0
1
6
5
1
0
6
5
TCFU
1
0
R/(W)*
Description
TCNT counts down
TCNT counts up
Description
[Clearing condition]
When 0 is written to TCFU after reading TCFU = 1
[Setting condition]
When the TCNT value underflows (changes from H'0000 to H'FFFF)
4
3
2
TCFV
TGFD
TGFC
0
0
0
R/(W)*
R/(W)*
R/(W)*
4
3
2
TCFV
0
0
0
R/(W)*
1
0
TGFB
TGFA
0
0
R/(W)*
R/(W)*
1
0
TGFB
TGFA
0
0
R/(W)*
R/(W)*
(Initial value)
(Initial value)
Rev.6.00 Oct.28.2004 page 363 of 1016
REJ09B0138-0600H

Advertisement

Table of Contents
loading

Table of Contents