
R01UH0336EJ0102 Rev.1.02
Page 624 of 1538
Jul 17, 2014
V850E2/PG4-L
Section 14 Timer Array Unit J (TAUJ)
14.3 Functional Description
The timer array unit J is used to perform various count or timer operations and
to output a signal which depends on the result of the operation. It contains one
prescaler block for count clock generation and 4 channels, each equipped with
a 32-bit counter TAUJnCNTm and a 32-bit data register TAUJnCDRm to hold
the count start value or compare value.
It also contains several control and status registers.
Independent and
synchronous
operation
Every channel can operate in two operating modes, either independently or in
combination with other channels (synchronously), i.e. multiple channels
depend on each other with one master and one or more slave channels.
When a channel is operated independently, its operating mode and functions
are not affected by those of other channels. When a channel is operated
synchronously, it is either a master or a slave. A master channel can have
multiple slaves, and the state of one channel affects that of the other channels.
For example, one channel can control count start timing or reset timing of
another channel.
The following describes the functional blocks.
Prescaler block
The prescaler block provides up to 4 clock signals (CK0 to CK3) that can be
used as count clocks for all channels.
Prescaler outputs CK0 to CK2 are derived from PCLK by a configurable
prescaler division factor of 2
0
to 2
15
. The fourth prescaler output CK3 can be
adjusted more precisely by an additional division factor that is not a power of 2.
Count clock
selection
For every channel, the count clock selector selects which of the following is
used as the clock source.
• One of the prescaler outputs CK0 to CK3 (selected by the clock selector)
• INTTAUJnIm from master channel
• Valid edge of the TAUJnTTINm input signal
Controller
The controller controls the main operations of the counter.
• Operating mode (selected by TAUJnCMORm.TAUJnMD[4:0] bits)
• Counter start enable (TAUJnTS.TAUJnTSm) and counter stop
(TAUJnTT.TAUJnTTm)
When counter start is enabled, status flag TAUJnTE.TAUJnTEm is set.
Trigger selector
Depending on the selected operating mode, the counter starts automatically
when it is enabled (TAUJnTE.TAUJnTEm = 1), or it waits for an external start
trigger signal. Any of the following signals can be used as the start trigger.
• Synchronous channel start trigger input TAUJnTSSTm
For details about simultaneous start between TAUJ units, see Section
24.4.1, Simultaneous Start Trigger Function.
• Valid edge of TAUJnTTINm input
• INTTAUJnIm from the master channel
Simultaneous
rewrite controller
Simultaneous rewrite control is a special function that can be used in
synchronous operating modes. The data registers of all channels in a channel
group can be rewritten at any time. The simultaneous rewrite controller
ensures that new data register values of all channels become effective at the
same time.