English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (333/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 6 TIMER ARRAY UNIT
Figure 6-51. Example of Set Contents of Registers to Measure Input Pulse Interval
(a) Timer mode register pq (TMRpq)
15 14 13 12 11 10 9
8
7
6
5
TMRpq CKSpq
1/0 0
MAS
CCSpq
STSpq2 STSpq1 STSpq0 CISpq1 CISpq0
TERpq
0
0
0
0
0
1 1/0 1/0 0
4
3
2
1
0
MDpq3 MDpq2 MDpq1 MDpq0
0
0
1
0 1/0
Operation mode of channel q
010B: Capture mode
Setting of operation when counting is started
0: Does not generate INTTMpq when
counting is started.
1: Generates INTTMpq when counting is
started.
Selection of TIpq pin input edge
00B: Detects falling edge.
01B: Detects rising edge.
10B: Detects both edges.
11B: Setting prohibited
Capture trigger selection
001B: Selects the TIpq pin input valid edge.
Slave/master selection
0: Cleared to 0 when independent function is selected.
Count clock selection
0: Selects operation clock.
Operation clock selection
0: Selects CKp0 as operation clock of channel q.
1: Selects CKp1 as operation clock of channel q.
(b) Timer output register p (TOp)
Bit q
TOp
TOpq
0
0: Outputs 0 from TOpq.
(c) Timer output enable register p (TOEp)
Bit q
TOEp
TOEpq
0
0: Stops TOpq output operation by counting operation.
(d) Timer output level register p (TOLp)
Bit q
TOLp
TOLpq
0
0: Cleared to 0 when TOMpq = 0 (toggle mode).
(e) Timer output mode register p (TOMp)
Bit q
TOMp
TOMpq
0
0: Sets toggle mode.
Remark
pq: Unit number + Channel number (only for channels provided with timer I/O pins)
78K0R/LF3: p = 0, pq = 00 to 04, 07
78K0R/LG3: p = 0, pq = 00 to 07
78K0R/LH3: p = 0, 1, pq = 00 to 07, 10 to 13
R01UH0004EJ0501 Rev.5.01
317
Jun 20, 2011