
R01UH0336EJ0102 Rev.1.02
Page 565 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 13 Timer Array Unit B (TAUB)
(6)
Operating procedure for triangle PWM output function
Table 13-106
Operating Procedure for Triangle PWM Output Function
Operation
TAUBn Status
Initial
C
hann
el
Setti
n
g
Master channels: Set TAUBnCMORm/
TAUBnCMURm register and the channel
output mode as described in (4) Register
settings for master channels
Slave channels: Set TAUBnCMORm/
TAUBnCMURm register and the channel
output mode as described in (5) Register
settings for slave channels
Set the value of TAUBnCDRm register of every
channel.
Channel operation is stopped.
S
tart Operatio
n
Set TAUBnTS.TAUBnTSm of master and slave
channels to 1 simultaneously.
TAUBnTS.TAUBnTSm is a trigger bit,
which is automatically cleared to 0.
TAUBnTE.TAUBnTEm (master and slave
channels) is set to 1 and the counter of master/
slave channel starts.
INTTAUBnIm (master) is generated on the master
channel if TAUBnCMORm.TAUBnMD0 is set to 1.
Durin
g
Op
eration
TAUBnCDRm can be changed at any time.
TAUBnCNTm and TAUBnRSF.TAUBnRSFm
can be read at any time.
TAUBnRDT.TAUBnRDTm can be changed
during operation.
TAUBnCDRm value of master and slave channels
is loaded into TAUBnCNTm to perform counting
down. When the counter of master channel
reaches 0000
H
:
•
INTTAUBnIm (master) is generated.
•
TAUBnTTOUTm (master) is toggled.
•
TAUBnCDRm value is reloaded into
TAUBnCNTm (master) to continue count
operation.
•
TAUBnCDRm value is reloaded into
TAUBnCNTm (slave) or counting is started in
opposite direction.
When TAUBnCNTm of slave channel reaches
0001
H
:
•
INTTAUBnIm (slave) is generated.
•
TAUBnTTOUTm (slave) is set in the count-
down status or reset in count-up status.
S
top
O
p
era
ti
o
n
Set TAUBnTT.TAUBnTTm of master and slave
channels to 1 simultaneously
TAUBnTT.TAUBnTTm is a trigger bit, which
is automatically cleared to 0.
TAUBnTE.TAUBnTEm is cleared to 0 and the
counter stops.
TAUBnCNTm and TAUBnTTOUTm stop and
retain their current values.
Rest
art