Timer Status Register (Tsr) - Renesas H8SX/1520 Series Hardware Manual

32-bit cisc microcomputer
Hide thumbs Also See for H8SX/1520 Series:
Table of Contents

Advertisement

Section 9 16-Bit Timer Pulse Unit (TPU)
9.3.5

Timer Status Register (TSR)

TSR indicates the status of each channel. The TPU has six TSR registers, one for each channel.
Bit
Bit Name
TCFD
Initial Value
R/W
Note: * Only 0 can be written to bits 5 to 0, to clear flags.
Bit
Bit Name
7
TCFD
6
5
TCFU
Rev. 3.00 Mar. 14, 2006 Page 292 of 804
REJ09B0104-0300
Downloaded from
Elcodis.com
electronic components distributor
7
6
5
TCFU
1
1
0
R
R
R/(W)*
Initial
value
R/W
1
R
1
R
0
R/(W)* Underflow Flag
4
3
TCFV
TGFD
0
0
R/(W)*
R/(W)*
Description
Count Direction Flag
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 a read-only bit
and cannot be modified.
0: TCNT counts down
1: TCNT counts up
Reserved
This is a read-only bit and cannot be modified.
Status flag that indicates that a 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 a read-only bit
and cannot be modified.
[Setting condition]
When the TCNT value underflows (changes from
H'0000 to H'FFFF)
[Clearing condition]
When a 0 is written to TCFU after reading TCFU = 1
(When the CPU is used to clear this flag by writing 0
while the corresponding interrupt is enabled, be sure
to read the flag after writing 0 to it.)
2
1
TGFC
TGFB
TGFA
0
0
R/(W)*
R/(W)*
R/(W)*
0
0

Advertisement

Table of Contents
loading

Table of Contents