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

Renesas 32-bit cisc microcomputer h8sx family / h8sx/1600 series
Table of Contents

Advertisement

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
7
Bit Name
TCFD
Initial Value
1
R/W
R
Note: * Only 0 can be written to bits 5 to 0, to clear flags.
Bit
Bit Name
7
TCFD
6
5
TCFU
6
5
TCFU
1
0
R
R/(W)*
Initial
value
R/W
Description
1
R
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 always read as
1 and cannot be modified.
0: TCNT counts down
1: TCNT counts up
1
R
Reserved
This is a read-only bit and cannot be modified.
0
R/(W)* Underflow Flag
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 always read as
0 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.)
Section 9 16-Bit Timer Pulse Unit (TPU)
4
3
TCFV
TGFD
0
0
R/(W)*
R/(W)*
Rev.2.00 Jun. 28, 2007 Page 339 of 666
2
1
TGFC
TGFB
0
0
R/(W)*
R/(W)*
REJ09B0311-0200
0
TGFA
0
R/(W)*

Advertisement

Table of Contents
loading

This manual is also suitable for:

R5s61650cH8sx/1650c

Table of Contents