622
TSR1—Timer Status Register 1
H'FFE5
TPU1
Bit
Initial value
Read/Write
7
TCFD
1
R
6
—
1
—
5
TCFU
0
R/(W)
*
4
TCFV
0
R/(W)
*
3
—
0
—
2
—
0
—
1
TGFB
0
R/(W)
*
0
TGFA
0
R/(W)
*
0
TGRA Input Capture/Output Compare Flag
1
0
TGRB Input Capture/Output Compare Flag
1
0 [Clearing condition]
When 0 is written to TCFV after reading TCFV = 1
[Setting condition]
When the TCNT value overflows (from H'FFFF to H'0000)
Overflow Flag
1
0 [Clearing condition]
When 0 is written to TCFU after reading TCFU = 1
[Setting condition]
When the TCNT value underflows (from H'0000 to H'FFFF)
Underflow Flag
1
0 TCNT counts down
TCNT counts up
Count Direction Flag
1
Note:
*
Can only be written with 0, to clear the flag.
[Clearing conditions]
• When DTC is activated by TGIA interrupt
and DISEL bit in DTC’s MRB
register is 0
• When DMAC is activated by TGIA
interrupt and DTA bit in DMAC’s
DMABCR register is 1
• When 0 is written to TGFA after reading
[Clearing conditions]
• When DTC is activated by TGIB interrupt
and DISEL bit in DTC’s MRB register is 0
• When 0 is written to TGFB after reading
TGFB = 1
[Setting conditions]
• When TCNT = TGRA while TGRA is
functioning as output compare register
• When TCNT value is transferred to TGRA
by input capture signal while TGRA is
functioning as input capture register
[Setting conditions]
• When TCNT = TGRB while TGRB is
functioning as output compare register
• When TCNT value is transferred to TGRB
by input capture signal while TGRB is
functioning as input capture register
Содержание H8S/2670
Страница 5: ......
Страница 9: ......
Страница 199: ...182 ...
Страница 361: ...344 ...
Страница 393: ...376 ...
Страница 647: ...630 ...