252
CHAPTER 14 16-BIT RELOAD TIMER
14.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.
■ Setting of 16-bit Reload Timer
●
Setting of internal clock mode
Counting the internal clock requires the setting shown in Figure 14.5-1 .
Figure 14.5-1 Setting of Internal Clock Mode
●
Setting of event count mode
Inputting an external event to operate the 16-bit reload timer requires the setting shown in Figure 14.5-2 .
Figure 14.5-2 Setting of Event Count Mode
TMCSR
1
TMRLR
CSL1 CSL0
MOD2 MOD1
−
OUTLOUTE
RELD INTE
UF
CNTE
TRG
MOD0
11 10 9 8 56 4321714 13 12 bit0bit15
1
−−−
Other than "11
B
"
Set the reload value to 16-bit timer register
: Used bit
: Set "1".
T
MCSR
T
MRLR
−
CSL1 CSL0
MOD2 MOD1
−
OUTLOUTE
RELD INTE
UF
CNTE
TRG
MOD0
11 10 9 8 56 4 3 2 1 bit07bit15 14 13 12
−−
❍
: Used bit
1 : Set "1".
Set the reload value to 16-bit timer register
Set the bit of DDR (port direction register) corresponding to the pin to be used as TIN pin to "0".
11❍❍❍ ❍ ❍ ❍❍ ❍ 1 ❍