1027
TSR2—Timer Status Register 2
H'FF35
TPU2
7
TCFD
1
R
6
—
1
—
5
TCFU
0
R/(W)
*
4
TCFV
0
R/(W)
*
3
—
0
—
0
TGFA
0
R/(W)
*
2
—
0
—
1
TGFB
0
R/(W)
*
Bit
Initial value
Read/Write
Input Capture/Output Compare Flag A
0
[Clearing conditions]
• When DTC is activated by TGIA interrupt while DISEL bit
of MRB in DTC is 0
• When 0 is written to TGFA after reading TGFA = 1
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
Input Capture/Output Compare Flag B
0
[Clearing conditions]
• When DTC is activated by TGIB interrupt while DISEL bit of MRB in DTC is 0
• When 0 is written to TGFB after reading TGFB = 1
1
[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
Overflow Flag
0
[Clearing condition]
When 0 is written to TCFV after reading TCFV = 1
1
[Setting condition]
When the TCNT value overflows (changes from H'FFFF to H'0000)
Underflow Flag
0
[Clearing condition]
When 0 is written to TCFU after reading TCFU = 1
1
[Setting condition]
When the TCNT value underflows (changes from H'0000 to H'FFFF)
Count Direction Flag
0
TCNT counts down
TCNT counts up
1
Note:
*
Can only be written with 0 for flag clearing.
Содержание H8S/2645
Страница 4: ......
Страница 16: ......
Страница 58: ...26 ...
Страница 110: ...78 ...
Страница 120: ...88 ...
Страница 132: ...100 ...
Страница 160: ...128 ...
Страница 172: ...140 ...
Страница 235: ...203 Transfer SAR or DAR DAR or SAR Block area First block Nth block Figure 8 8 Memory Mapping in Block Transfer Mode ...
Страница 418: ...386 ...
Страница 444: ...412 ...
Страница 530: ...498 ...
Страница 562: ...530 ...
Страница 642: ...610 ...
Страница 662: ...630 ...
Страница 688: ...656 ...
Страница 756: ...724 ...
Страница 784: ...752 ...
Страница 812: ...780 ...
Страница 837: ...805 A 2 Instruction Codes Table A 2 shows the instruction codes ...
Страница 1152: ...1120 ...