![](http://datasheet.mmic.net.cn/330000/MB90F562_datasheet_16437954/MB90F562_281.png)
MB90560 series
CHAPTER 11 16-BIT RELOAD TIMER
257
Table 11.4-1Function description of each bit of the upper part of the timer control status
register (TMCSR0, TMCSR1: H)
Bit name
Function
bit15
bit14
bit13
bit12
Not used
When these bits are read, their values are undefined.
Writing to these bits has no effect on operation.
bit11
bit10
CSL1, CSL0:
Count clock selection
bits
Selects the count clock.
When these bits are not set to “11
B
”, internal clock mode is set. The
internal clock is counted in this mode.
When these bits are set to “11
B”
, event count mode is set. The
external clock edges are counted in this mode.
bit9
bit8
bit7
MOD2, MOD1,
MOD0:
Operating mode
selection bits
<In internal clock mode>
The MOD2 bit is used to select input pin functions.
When the MOD2 bit is “0”, the input pin is used as a trigger input
pin, so that whenever a valid edge is input, the contents of the
reload register are loaded into the counter and counting continues.
The MOD1 and MOD0 bits are used to select the type of valid edge.
When the MOD2 bit is “1”, the input pin becomes a gate, meaning
that counting will continue only as long as a valid level signal is
input. The MOD1 bit is an unused bit, and the MOD0 bit is used to
select the valid level.
<In event count mode>
The MOD2 bit is not used. Set any value (“0” or “1”).
The input pin is used as a trigger input pin for event input, and the
valid edge is selected with MOD1 and MOD0 bits.