English
Language : 

UPD78F1502AGK-GAK-AX Datasheet, PDF (318/1031 Pages) Renesas Technology Corp – 16-Bit Single-Chip Microcontrollers
78K0R/Lx3
CHAPTER 6 TIMER ARRAY UNIT
Figure 6-39. Example of Set Contents of Registers During Operation as Interval Timer/Square Wave Output (2/3)
(2) When the timer input (TIpq pin input, fSUB/4, fSUB/2 or INTRTCI) is selected as count clockNote (1/2)
Note The timer input is selected by using TISpq bit, SDIV bit, and RTCISpq bit. For details, refer to
Figure 6-17 Format of Timer Input Select Registers 0, 1 (TIS0, TIS1).
(a) Timer mode register mn (TMRmn)
15 14 13 12 11 10 9
8
7
6
5
TMRmn CKSmn
1/0 0
MAS
CCSmn
STSmn2 STSmn1 STSmn0 CISmn1 CISmn0
TERmn
0
1
0
0
0
0 1/0 1/0 0
4
3
2
1
0
MDmn3 MDmn2 MDmn1 MDmn0
0
0
0
0 1/0
Operation mode of channel n
000B: Interval timer
Setting of operation when counting is started
0: Neither generates INTTMmn nor inverts
timer output when counting is started.
1: Generates INTTMmn and inverts timer
output when counting is started.
Selection of edge of timer input
00B: detects falling edge.
01B: detects rising edge.
10B: detects both edges.
11B: Setting prohibited
Start trigger selection
000B: Selects only software start.
Slave/master selection
0: Cleared to 0 when independent function is selected.
Count clock selection
1: Selects timer input valid edge.
Operation clock selection
0: Selects CKm0 as operation clock of channel n.
1: Selects CKm1 as operation clock of channel n.
fCLK (no division) is selected as selected operation clock by TPSm register.
(b) Timer clock select register m (TPSm)
Bits 7 to 4, 3 to 0
TPSm PRSmk3 to PRSmk0 0000B: Selects fCLK (no division) as operation clock selected by CKSmn of TMRmn register.
0000
k = 0 (bits 0 to 3) when CKm0 is selected and k = 1 (bits 4 to 7) when CKm1 is selected
(c) Timer output register p (TOp)
Bit q
TOp
TOpq
1/0
0: Outputs 0 from TOpq.
1: Outputs 1 from TOpq.
Remark
mn: Unit number + Channel number, pq: Unit number + Channel number (only for channels provided with timer I/O pins)
78K0R/LF3: m = 0, 1, mn = 00 to 07, 10 to 13, pq = 00 to 04, 07
78K0R/LG3: m = 0, 1, mn = 00 to 07, 10 to 13, pq = 00 to 07
78K0R/LH3: m = 0, 1, mn = 00 to 07, 10 to 13, pq = 00 to 07, 10 to 13
R01UH0004EJ0501 Rev.5.01
302
Jun 20, 2011