
R01UH0336EJ0102 Rev.1.02
Page 421 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 13 Timer Array Unit B (TAUB)
13.8 Channel Output Modes
The output of the TAUBnTTOUTm pin can be controlled in two ways, the latter
of which can be further split into individual modes.
• By software (TAUBnTOE.TAUBnTOEm = 0)
When controlled by software, the value written in the output register bit
(TAUBnTO.TAUBnTOm) is sent out of the output pin (TAUBnTTOUTm).
• By TAUB signals (TAUBnTOE.TAUBnTOEm = 1)
When controlled by TAUB signals, the output level of TAUBnTTOUTm is set
or reset or toggled by internal signals. The value of TAUBnTO.TAUBnTOm
is updated accordingly to reflect the value of TAUBnTTOUTm
– Independently (TAUBnTOM.TAUBnTOMm = 0)
In case of independent operation, the output of the TAUBnTTOUTm pin is
only affected by settings of channel m. Therefore, independent channel
operation should be selected (TAUBnTOM.TAUBnTOMm = 0).
– Synchronously (TAUBnTOM.TAUBnTOMm = 1)
In case of synchronous operation, the output of the TAUBnTTOUTm pin
is affected by settings of channel m and those of other channels.
Therefore, synchronous channel operation should be selected for all
synchronized channels (TAUBnTOM.TAUBnTOMm = 1).
The TAUBnTO.TAUBnTOm bit can always be read to determine the current
value of TAUBnTTOUTm, regardless of whether the pin is controlled by
software, operated independently, or operated synchronously.
Control bits
The settings of the control bits required to select a specific channel output
mode are listed in Table 13-10, Channel Output Modes
.
The channel output modes are described in details below.
• Section 13.8.2, Channel Output Modes Controlled Independently by TAUBn
• Section 13.8.3, Channel Output Modes Controlled Synchronously by TAUBn
Batch operation of
TAUBnTOm bit
Whether a set value is reflected to the TAUBnTOm bit or not is controlled by
the TAUBnTOE.TAUBnTOEm bit.
The TAUBnTOm setting is written only to the bit (channel) set with
TAUBnTOE.TAUBnTOEm bit = 0 when a write to the TAUBnTO register is
attempted. No TAUBnTOm setting is reflected to the bit (channel) set with
TAUBnTOE.TAUBnTOEm bit = 1.
Note
TAUBnTO.TAUBnTOm bit is placed so that its bit number corresponds to a
channel number.
Output logic
Positive logic or inverted logic of the output is specified by control bit
TAUBnTOL.TAUBnTOLm.
The value of TAUBnTOL.TAUBnTOLm bit should be set before the counter is
started. It can only be changed during operation with PWM output function or
triangle PWM output function. Otherwise, changes to
TAUBnTOL.TAUBnTOLm result in an invalid TAUBnTTOUTm signal output.