Renesas RL78/G1P Hardware User Manual page 164

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)
CIS
CIS
mn1
mn0
0
0
0
1
1
0
1
1
If both the edges are specified when the value of the STSmn2 to STSmn0 bits is other than 010B, set the CISmn1
to CISmn0 bits to 10B.
MD
MD
mn3
mn2
0
0
0
1
0
1
1
0
1
1
Other than above
The operation of each mode varies depending on MDmn0 bit (see next table).
Bit 11 is a read-only bit and fixed to 0. Writing to this bit is ignored.
Note
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) (3/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
mn
mn2
Falling edge
Rising edge
Both edges (when low-level width is measured)
Start trigger: Falling edge, Capture trigger: Rising edge
Both edges (when high-level width is measured)
Start trigger: Rising edge, Capture trigger: Falling edge
MD
Operation mode of channel n
mn1
0
Interval timer mode
0
Capture mode
1
Event counter mode
0
One-count mode
0
Capture & one-count mode
Setting prohibited
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
Selection of TImn pin input valid edge
Corresponding function
Interval timer/Square wave
output/PWM output (master)
Input pulse interval
measurement
External event counter
Delay counter/One-shot pulse
output/PWM output (slave)
Measurement of high-/low-level
width of input signal
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
Count operation of
TCR
Counting down
Counting up
Counting down
Counting down
Counting up
1
0
MD
MD
mn0
1
0
MD
MD
mn0
1
0
MD
MD
mn0
145

Advertisement

Table of Contents
loading

Table of Contents