Renesas RL78/G1P Hardware User Manual page 216

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

Advertisement

RL78/G1P
Figure 6-55. Example of Set Contents of Registers to Measure Input Signal High-/Low-Level Width
(a) Timer mode register mn (TMRmn)
15
14
TMRmn
CKSmn1
CKSmn0
1/0
0
Operation clock (f
00B: Selects CKm0 as operation clock of channel n.
10B: Selects CKm1 as operation clock of channel n.
01B: Selects CKm2 as operation clock of channels 1, 3 (This can only be selected channels 1 and 3).
11B: Selects CKm3 as operation clock of channels 1, 3 (This can only be selected channels 1 and 3).
(b) Timer output register m (TOm)
Bit n
TOm
TOmn
0
(c) Timer output enable register m (TOEm)
Bit n
TOEm
TOEmn
0
(d) Timer output level register m (TOLm)
Bit n
TOLm
TOLmn
0
(e) Timer output mode register m (TOMm)
Bit n
TOMm
TOMmn
0
Note TMRm2:
TMRm1, TMRm3: SPLITmn bit
TMRm0:
Remark m: Unit number (m = 0), n: Channel number (n = 0 to 3)
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
13
12
11
10
Note
CCSmn
STSmn2
STSmn1
M/S
0
0
0
0
Setting of MASTERmn bit (channel 2)
0: Independent channel operation function.
Setting of SPLITmn bit (channels 1, 3)
1: 16-bit timer mode.
Count clock selection
0: Selects operation clock (f
) selection
MCK
0: Outputs 0 from TOmn.
0: Stops the TOmn output operation by counting operation.
0: Cleared to 0 when TOMmn = 0 (master channel output mode).
0: Sets master channel output mode.
MASTERmn bit
Fixed to 0
9
8
7
6
5
STSmn0
CISmn1
CISmn0
1
0
1
1/0
0
Operation mode of channel n
110B: Capture & one-count
Selection of TImn pin input edge
10B: Both edges (to measure low-level width)
11B: Both edges (to measure high-level width)
Start trigger selection
010B: Selects the TImn pin input valid edge.
).
MCK
CHAPTER 6 TIMER ARRAY UNIT
4
3
2
1
MDmn3
MDmn2
MDmn1
0
1
1
0
Setting of operation when counting is started
0: Does not generate INTTMmn when
counting is started.
0
MDmn0
0
197

Advertisement

Table of Contents
loading

Table of Contents