
R01UH0336EJ0102 Rev.1.02
Page 741 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 15 TSG2 (TSG20)
(11)
TSG2n Status Register 0 (TSnSTR0)
This register controls the flags.
Access
This register can be read/written in 8-bit units.
Address
<
TSG2n_base1
> + 010
H
Initial value
00
H
This register is initialized by a reset from any source.
7
6
5
4
3
2
1
0
-
-
-
-
TSn
CUF
TSn
SUF
TSn
RSF
TSn
TE
R
R
R
R
R
R
R
R
Table 15-17
TSnSTR0 Register Contents
Bit Position
Bit Name
Function
3
TSnCUF
Indicates the count direction of the 16-bit counter.
0: The 16-bit counter is incremented.
1: The 16-bit counter is decremented.
•
TSnCUF is valid only in HT-PWM mode. In other modes, it is invalid
(TSnCUF = 0).
2
TSnSUF
Indicates the count direction of the 16-bit sub-counter.
0: The 16-bit sub-counter is incremented.
1: The 16-bit sub-counter is decremented.
•
TSnSUF detects counting of the 16-bit sub-counter from 0000
H
to
(TSnCMP0 value - 0002
H
) as up-counting, and counting from the
TSnCMP0 value to 0002
H
as down-counting.
•
This bit is valid only in HT-PWM mode.
1
TSnRSF
Indicates whether there is a reload request.
0: No reload request or reload has completed.
1: There is a reload request.
•
This bit is valid only in TSnRMC = 0.
•
This bit indicates that the data to be transferred next is held.
•
This bit is set to 1 by writing to TSnCMP1 (TSnCMP1W, TSnCMPU,
TSnUPW), and cleared to 0 when reload has completed.
•
When TSnRMC is changed from 0 to 1 in HT-PWM mode, TSnRSF is
cleared to 0.
0
TSnTE
Indicates the TSG2n operation status.
0: TSG2n is stopped.
1: TSG2n is operating.
•
This bit is set when TSnTRG0.TSnTS = 1, and cleared when
TSnTRG1.TSnTT = 1.