Renesas RL78/G1P Hardware User Manual page 165

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P
Address: F0190H, F0191H (TMR00) to F0196H, F0197H (TMR03)
Symbol
15
14
CKS
CKS
TMRmn
mn1
mn0
(n = 2)
Symbol
15
14
TMRmn
CKS
CKS
mn1
mn0
(n = 1, 3)
Symbol
15
14
TMRmn
CKS
CKS
mn1
mn0
(n = 0)
(Value set by the MDmn3 to MDmn1 bits
(see table shown in the previous page))
 Interval timer mode
(0, 0, 0)
 Capture mode
(0, 1, 0)
 Event counter mode
(0, 1, 1)
 One-count mode
(1, 0, 0)
 Capture & one-count mode
(1, 1, 0)
Notes 1. Bit 11 is a read-only bit and fixed to 0. Writing to this bit is ignored.
2. In one-count mode, interrupt output (INTTMmn) when starting a count operation and TOmn output are
not controlled.
3. If the start trigger (TSmn = 1) is issued during operation, the counter is initialized, and recounting is
started (does not occur the interrupt request).
Remark m: Unit number (m = 0), n: Channel number (n = 0 to 3)
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Figure 6-11. Format of Timer Mode Register mn (TMRmn) (4/4)
13
12
11
10
CCS
MAST
STS
0
mn
ERmn
mn2
13
12
11
10
0
CCS
SPLIT
STS
mn
mn
mn2
13
12
11
10
0
CCS
0
STS
Note 1
mn
mn2
Operation mode
Note 2
Other than above
After reset: 0000H
9
8
7
6
STS
STS
CIS
CIS
mn1
mn0
mn1
mn0
9
8
7
6
STS
STS
CIS
CIS
mn1
mn0
mn1
mn0
9
8
7
6
STS
STS
CIS
CIS
mn1
mn0
mn1
mn0
MD
Setting of starting counting and interrupt
mn0
0
Timer interrupt is not generated when counting is started
(timer output does not change, either).
1
Timer interrupt is generated when counting is started
(timer output also changes).
0
Timer interrupt is not generated when counting is started
(timer output does not change, either).
0
Start trigger is invalid during counting operation.
At that time, interrupt is not generated.
1
Start trigger is valid during counting operation
At that time, interrupt is not generated.
0
Timer interrupt is not generated when counting is started
(timer output does not change, either).
Start trigger is invalid during counting operation.
At that time interrupt is not generated.
Setting prohibited
CHAPTER 6 TIMER ARRAY UNIT
R/W
5
4
3
2
MD
MD
0
0
mn3
mn2
mn1
5
4
3
2
0
0
MD
MD
mn3
mn2
mn1
5
4
3
2
0
0
MD
MD
mn3
mn2
mn1
Note 3
1
0
MD
MD
mn0
1
0
MD
MD
mn0
1
0
MD
MD
mn0
.
146

Advertisement

Table of Contents
loading

Table of Contents