CHAPTER 8 16-bit reload timer
8.5
Explanation of Operation of 16-bit Reload Timer
This section explains the setting of the 16-bit reload timer and the operation state of the
counter.
I Setting of 16-bit Reload Timer
G
Setting of internal clock mode
Counting the internal clock requires the setting shown in Figure 8.5-1.
bit15
TMCSR
TMRLR
: Using bit
1
: Setting to "1"
G
Setting of Event Counter Mode
Inputting an external event to operate the 16-bit reload timer requires the setting shown in Figure 8.5-2.
bit15 14
TMCSR
TMRLR
Set the bit of DDR(port direction register) corresponding to the pin to be used as TIN pin to "0".
: Using bit
1
: Setting to "1"
262
Figure 8.5-1 Setting of internal clock mode
14
13
12
11
10
CSL1 CSL0 MOD2 MOD1
Other than "11
B
Setting reload value to 16-bit timer register
Figure 8.5-2 Setting of Event Count Mode
13
12
11
10
CSL1 CSL0 MOD2 MOD1
1
1
Setting reload value to 16-bit timer register
9
8
7
6
5
MOD0
OUTE
OUTL
"
9
8
7
6
5
MOD0
OUTE
OUTL
4
3
2
1
bit0
RELD INTE UF CNTE TRG
1
4
3
2
1
bit0
RELD INTE UF CNTE TRG
1