
R01UH0336EJ0102 Rev.1.02
Page 568 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 13 Timer Array Unit B (TAUB)
13.20.2
Triangle PWM Output Function with Dead Time
(1)
Overview
Summary
This function generates multiple triangle PWM outputs with a predefined dead
time added by using a master and two or more slave channels. The resulting
PWM signals are output via TAUBnTTOUTm of the slave channel 3, enabling
the pulse cycle (frequency) and the duty cycle of TAUBnTTOUTm to be set
using the master and slave channels.
Carrier cycles are generated on master channel. The first pulse controls the
down status of slave counter and the second one controls the up status.
An interrupt on slave 2 causes TAUBnTTOUTm of slave channels to be set/
reset. Depending on the settings of TAUBnTDL.TAUBnTDLm, delay time is
added to positive or negative logic side of the signal (i.e., whether
TAUBnTTOUTm is set/reset immediately or after dead time has elapsed). The
duration of the dead time is specified by slave channel 3.
Prerequisites
• Three channels. For slave channels 2 and 3, select even channel CH (a)
and odd channel CH (a + 1).
• The operating mode for master channels should be set to interval timer
mode. (See Table 13-108, TAUBnCMORm Settings for Master Channels of
Triangle PWM Output Function with Dead Time
• Slave channel 1 is not used for this function. Be sure to select an even
channel for slave channel 2 and an odd channel for slave channel 3.
• The operating mode for slave channel 2 should be set to up/down count
mode. (See Table 13-112, TAUBnCMORm Settings for Slave Channel 2 of
Triangle PWM Output Function with Dead Time
Slave channel 2 should be
an even channel.
• The operating mode for slave channel 3 should be set to one-count mode.
(See Table 13-116, TAUBnCMORm Settings for Slave Channel 3 of Triangle
PWM Output Function with Dead Time
.)
Slave channel 3 should be an odd
channel.
• The channel output mode for master channels should be set to independent
channel output mode 1. (See Section 13.8, Channel Output Modes
.)
• The output mode for slave channels 2 and 3 should be set to synchronous
channel output mode 2 with dead time output. (See Section 13.8, Channel
Output Modes
.)
• The following settings make a TAUBnTTOUTm signal at high level during
the down status of the carrier cycle:
– If TAUBnCMORm.TAUBnMD0 (master) bit is set to 0,
TAUBnTO.TAUBnTOm should be set to 1 while
TAUBnTOE.TAUBnTOEm is set to 0. (recommended setting)
– If TAUBnCMORm.TAUBnMD0 (master) bit is set to 1,
TAUBnTO.TAUBnTOm should be set to 0 while
TAUBnTOE.TAUBnTOEm is set to 0.
Note
The triangle PWM output function with dead time does not use slave channel
1.