
310
•
Bit 5—Underflow Flag (TCFU): This status flag indicates the occurrence of a channel 1, 2
TCNT counter underflow.
This bit is reserved in channels 0, 3, and 4. This bit always reads as 0. The write value should
always be 0.
Bit 5: TCFU
Description
0
Clear condition: With TCFU=1, a 0 write to TCFU after reading it (initial
value)
1
Set condition: When the TCNT value underflows (H'0000
→
H'FFFF)
•
Bit 4—Overflow Flag (TCFV): This status flag indicates the occurrence of a TCNT counter
overflow.
Bit 4: TCFVDescription
0
Clear condition: With TCFV =1, a 0 write to TCFV after reading it
*
1
(initial value)
1
Set condition: When the TCNT value overflows (H'FFFF
→
H'0000)
*
2
Notes:
*
1 For channel 4, this flag is cleared by DTC transfer due to TCFV.
*
2 For channel 4, this flag is also set when the TCNT value underflows (H'0001
→
H'0000)
in complementary PWM mode.
•
Bit 3—Input Capture/Output Compare Flag D (TGFD): This status flag indicates the
occurrence of a channel 0, 3, or 4 TGRD register input capture or compare-match.
This bit is reserved in channels 1 and 2. It always reads as 0. The write value should always be
0.
Bit 3: TGFD
Description
0
Clear condition: With TGFD = 1, a 0 write to TGFD following a read
(Cleared by DTC transfer due to TGFD) (initial value)
1
Set conditions:
•
When TGRD is functioning as an output compare register
(TCNT = TGRD)
•
When TGRD is functioning as input capture (the TCNT value is sent
to TGRD by the input capture signal)
Summary of Contents for SH7041 Series
Page 2: ......
Page 6: ......
Page 38: ...xvi ...
Page 44: ...6 ...
Page 46: ...8 ...
Page 48: ...10 ...
Page 82: ...44 ...
Page 114: ...76 ...
Page 118: ...80 ...
Page 124: ...86 ...
Page 170: ...132 ...
Page 250: ...212 ...
Page 492: ...454 ...
Page 506: ...468 ...
Page 604: ...566 ...
Page 684: ...646 ...
Page 706: ...668 ...
Page 778: ...740 ...
Page 780: ...742 ...
Page 818: ...780 ...
Page 850: ...812 ...
Page 923: ...SH7040 SH7041 SH7042 SH7043 SH7044 SH7045 Group Hardware Manual REJ09B0044 0600O ...