EasyManua.ls Logo

Renesas RL78/G10 - Page 139

Renesas RL78/G10
637 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
RL78/G10 CHAPTER 6 TIMER ARRAY UNIT
R01UH0384EJ0311 Rev. 3.11 122
Dec 22, 2016
Figure 6-8. Format of Timer Mode Register 0n (TMR0n) (2/3)
Symbol 7 6 5 4 3 2 1 0
TMR00H CKS001 0 0 CCS00 0 STS002 STS001 STS000
Symbol 7 6 5 4 3 2 1 0
TMR02H CKS021 0 0 CCS02 MASTER02 STS022 STS021 STS020
Symbol 7 6 5 4 3 2 1 0
TMR0nH
(n = 1, 3)
CKS0n1 0 0 CCS0n SPLIT0n STS0n2 STS0n1 STS0n0
(Bit 3 of TMR02H)
MASTER02
Selection of independent channel operation/simultaneous channel operation (slave/master) of
channel n
0
Operates as the slave channel in the independent channel operation function or the simultaneous
channel operation function.
1 Operates as the master channel in the simultaneous channel operation function.
Channel 0 or 2 can be set as the master channel.
Channel 2 operates as the master channel when bit 3 (MASTER02) in TMR02H is set to 1.
Channel 0 operates as the master channel regardless of the setting of bit 3 in TMR00H
Note
because channel 0 is
highest in the order of channels.
For the channel to be used as the independent channel operation function, MASTER02 = 0.
(Bit 3 of TMR01H and TMR03H)
SPLIT0n Selection of 8 or 16-bit timer operation for channels 1 and 3 (n = 1, 3)
0 Operates as 16-bit timer.
1 Operates as 8-bit timer.
STS
0n2
STS
0n1
STS
0n0
Setting of start trigger or capture trigger of channel n
(n = 0, 1 (for 10-pin products); n = 0 to 3 (for 16-pin products))
0 0 0 Only software trigger start is valid (other trigger sources are unselected).
0 0 1 Valid edge of the TI0n pin input is used as the start trigger and capture trigger.
0 1 0 Both the edges of the TI0n pin input are used as a start trigger and a capture trigger.
1 0 0
When the channel is used as a slave channel with the one-shot pulse output, PWM output
function, or multiple PWM output function:
The interrupt request signal of the master channel (INTTM0n) is used as the start trigger.
1 1 0
When the channel is used as a slave channel in two-channel input with one-shot pulse output
function:
The interrupt request signal of the master channel (INTTM0n) is used as the start trigger.
A valid edge of the TI03 pin input of the slave channel is used as the end trigger
Other than above Setting prohibited
Note Bit 3 of TMR00H register is read-only and its value is fixed to 0. Writing is ignored.
Caution Be sure to clear the following bits to 0.
TMR00H register: bits 3, 5, 6
TMR01H to TMR03H registers: bits 5, 6

Table of Contents

Related product manuals