
R01UH0336EJ0102 Rev.1.02
Page 569 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 13 Timer Array Unit B (TAUB)
Description
The counter starts by setting the channel trigger bit (TAUBnTS.TAUBnTSm) to
1. This makes TAUBnTE.TAUBnTEm = 1, enabling count operation. The
current value of TAUBnCDRm is loaded into TAUBnCNTm and the counter
starts to count down from the TAUBnCDRm value. If
TAUBnCMORm.TAUBnMD0 bit of master channel is set to 1, an interrupt is
generated and the master's TAUBnTTOUTm signal is toggled.
• Master channels:
When the counter of master channel reaches 0000
H
, an INTTAUBnIm is
generated and the TAUBnTTOUTm signal is toggled. The TAUBnCDRm
value is reloaded to continue countdown.
• Slave channel 2:
If INTTAUBnIm is generated on the master channel, the counter of slave
channel 2 is triggered.
– If the slave counter is counting down, the counting direction changes.
– If the slave counter is counting up, the TAUBnCDRm value is reloaded
and the counter starts to count down.
The counter continues to count down/up and waits for the next INTTAUBnlm
of master channel.
• Slave channel 3:
If INTTAUBnIm is generated on slave channel 2, the counter of slave
channel 3 is triggered. The current value of TAUBnCDRm (slave 3) is
loaded into TAUBnCNTm (slave 3) and the counter starts to count down
from the TAUBnCDRm value.
When the counter reaches 0000
H
, INTTAUBnIm occurs. The counter
returns to FFFF
H
and waits for the next INTTAUBnlm of slave channel 2.
As described in Table 13-107, Operation of TAUBnTTOUTm upon Occurrence
of an Interrupt on Slave Channel 2
,
the set/reset timing (right after occurrence
of an interrupt or after dead time has elapsed) depends on the
TAUBnTDL.TAUBnTDLm setting of the corresponding channel.
The setting of TAUBnTOL.TAUBnTOLm also determines whether a high level
signal (TAUBnTOL.TAUBnTOLm = 0) or a low level signal
(TAUBnTOL.TAUBnTOLm = 1) is output from the corresponding channel.
The counter can be stopped by setting TAUBnTT.TAUBnTTm of master and
slave channels to 1. This sets TAUBnTE.TAUBnTEm to 0. TAUBnCNTm and
TAUBnTTOUTm of master and slave channels stop but retain their values.
TAUBnTTOUTm can be 100 % output by setting the TAUBnCDRm value of
slave channel 2 to 0000
H.
Note
If a forced restart is executed during operation, TAUBnTTOUTm is not output
as a triangle PWM signal.
Conditions
This function enables simultaneous rewrite. See Section 13.7, Simultaneous
Rewrite
TAUBnTOL.TAUBnTOLm and TAUBnTDL.TAUBnTDLm should be set before
start of count operation. Slave channels 2 and 3 should have the opposite
settings of TAUBnTOL.TAUBnTOLm or TAUBnTDL.TAUBnTDLm.
Содержание V850 Series
Страница 1556: ...V850E2 PG4 L R01UH0336EJ0102 Back Cover ...