h8s-2628 Renesas Electronics Corporation., h8s-2628 Datasheet - Page 240

no-image

h8s-2628

Manufacturer Part Number
h8s-2628
Description
Renesas 16-bit Single-chip Microcomputer H8s Family/h8s/2600 Series
Manufacturer
Renesas Electronics Corporation.
Datasheet
Section 10 16-Bit Timer Pulse Unit (TPU)
10.3.5
The TSR registers are 8-bit readable/writable registers that indicate the status of each channel. The
TPU has six TSR registers, one for each channel.
Rev. 3.00 Oct 04, 2005 page 200 of 598
REJ09B0155-0300
Bit
7
6
5
4
Bit Name
TCFD
TCFU
TCFV
Timer Status Register (TSR)
Initial value
1
1
0
0
R/W
R
R/(W)
R/(W)
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
Reserved
This bit is always read as 1 and cannot be modified.
Underflow Flag
Status flag that indicates that TCNT underflow has
occurred when channels 1, 2, 4, and 5 are set to
phase counting mode. Only 0 can be written, for flag
clearing.
In channels 0 and 3, bit 5 is reserved. It is always
read as 0 and cannot be modified.
[Setting condition]
[Clearing condition]
Overflow Flag
Status flag that indicates that TCNT overflow has
occurred. Only 0 can be written, for flag clearing.
[Setting condition]
[Clearing condition]
Description
When the TCNT value underflows (changes from
H'0000 to H'FFFF)
When 0 is written to TCFU after reading TCFU =
1
When the TCNT value overflows (changes from
H'FFFF to H'0000 )
When 0 is written to TCFV after reading TCFV =
1

Related parts for h8s-2628