English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (313/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 6 TIMER ARRAY UNIT
6.6 Basic Function of Timer Array Unit
6.6.1 Overview of single-operation function and combination operation function
The timer array unit consists of several channels and has a single-operation function that allows each channel to
operate independently, and a combination operation function that uses two or more channels in combination.
The single-operation function can be used for any channel, regardless of the operation mode of the other channels.
The combination operation function is realized by combining a master channel (reference timer that mainly counts
periods) and a slave channel (timer that operates in accordance with the master channel), and several rules must be
observed when using this function.
6.6.2 Basic rules of combination operation function
The basic rules of using the combination operation function are as follows.
(1) Only an even channel (channel 0, 2, 4, etc.) can be set as a master channel.
(2) Any channel, except channel 0, can be set as a slave channel.
(3) The slave channel must be lower than the master channel.
Example: If channel 2 of TAU0 is set as a master channel, channel 3 or those that follow (channels 3, 4, etc. 5)
can be set as a slave channel.
If channel 2 of TAU1 is set as a master channel, channel 3 (because TAU1 is provided only with
channels up to channel 3) can be set as a slave channel.
(4) Two or more slave channels can be set for one master channel.
(5) When two or more master channels are to be used, slave channels with a master channel between them may not
be set.
Example: If channels 0 and 4 of TAU0 are set as master channels, channels 1 to 3 can be set as the slave
channels of master channel 0. Channels 5 to 7 cannot be set as the slave channels of master channel
0.
(6) The operating clock for a slave channel in combination with a master channel must be the same as that of the
master channel. The CKS bit (bit 15 of the TMRmn register) of the slave channel that operates in combination with
the master channel must be the same value as that of the master channel.
(7) A master channel can transmit INTTMmn (interrupt), start software trigger, and count clock to the lower channels.
(8) A slave channel can use the INTTMmn (interrupt), start software trigger, and count clock of the master channel, but
it cannot transmit its own INTTMmn (interrupt), start software trigger, and count clock to the lower channel.
(9) A master channel cannot use the INTTMmn (interrupt), start software trigger, and count clock from the higher
master channel.
(10) To simultaneously start channels that operate in combination, the TSmn bit of the channels in combination must be
set at the same time.
(11) During a counting operation, the TSmn bit of all channels that operate in combination or only the master channel
can be set. TSmn of only a slave channel cannot be set.
(12) To stop the channels in combination simultaneously, the TTmn bit of the channels in combination must be set at
the same time.
Remark mn: Unit number + Channel number
mn = 00 to 07, 10 to 13
R01UH0004EJ0501 Rev.5.01
297
Jun 20, 2011