Renesas rl78 User Manual

Page of 1004
 
RL78/G1A 
 
CHAPTER  6   TIMER  ARRAY  UNIT 
R01UH0305EJ0200  Rev.2.00 
 
 
205  
Jul 04, 2013 
Figure 6-11.  Format of Timer Mode Register mn (TMRmn) (4/4) 
 
Address: F0190H, F0191H (TMR00) to F019EH, F019FH (TMR07)     After reset: 0000H     R/W 
 
 
Symbol 15 
14 
13
12 
11 
10
9 8 7 6 5 4 3 2 1 0 
TMRmn 
(n = 2, 4, 6 ) 
CKS
mn1 
CKS
mn0 
CCS
mn 
MAST
ERmn 
STS
mn2
STS
mn1
STS
mn0
CIS
mn1
CIS
mn0
0 0 
MD 
mn3 
MD 
mn2 
MD 
mn1
MD
mn0
 
Symbol 15 
14 
13
12 
11 
10
9 8 7 6 5 4 3 2 1 0 
TMRmn 
(n = 1, 3) 
CKS
mn1 
CKS
mn0 
CCS
mn 
SPLIT
mn 
STS
mn2
STS
mn1
STS
mn0
CIS
mn1
CIS
mn0
0 0 
MD 
mn3 
MD 
mn2 
MD 
mn1
MD
mn0
 
Symbol 15 
14 
13
12 
11 
10
9 8 7 6 5 4 3 2 1 0 
TMRmn 
(n = 0, 5, 7) 
CKS
mn1 
CKS
mn0 
CCS
mn 
0
Note
 
STS
mn2
STS
mn1
STS
mn0
CIS
mn1
CIS
mn0
0 0 
MD 
mn3 
MD 
mn2 
MD 
mn1
MD
mn0
 
Operation mode 
(Value set by the MDmn3 to MDmn1 bits  
(see table shown in the previous page)) 
MD
mn0
Setting of starting counting and interrupt 
Timer interrupt is not generated when counting is started  
(timer output does not change, either). 
•  Interval timer mode 
  (0, 0, 0) 
• Capture mode 
  (0, 1, 0) 
Timer interrupt is generated when counting is started  
(timer output also changes). 
• Event counter mode 
  (0, 1, 1) 
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. 
• One-count mode
Note 1
 
  (1, 0, 0) 
Start trigger is valid during counting operation
Note 2
.   
At that time, interrupt is not generated. 
•  Capture & one-count mode 
  (1, 1, 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. 
Other than above 
Setting prohibited 
 
Notes 1.  Bit 11 is fixed at 0 of read only, write 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 7 (however, timer input pin (TImn), timer output pin 
(TOmn) : n = 0, 1, 3 to 7))