FUJITSU F2MCTM-16LX User Manual

Page 262

Advertising
background image

246

CHAPTER 14 16-BIT RELOAD TIMER

Table 14.3-2 Functions of Timer Control Status Registers (High) (TMCSR: H)

Bit name

Function

bit15

to

bit12

Undefined bits

Read: The value is undefined.
Write: No effect

bit11
bit10

CSL1, CSL0:
Count clock select bits

These bits select the count clock of the 16-bit reload timer.
When set to anything other than "11

B

": These bit is counted by internal

clock (internal clock mode).

When set to "11

B

": The edge of the external event clock is counted (event

count mode).

bit9

to

bit7

MOD2, MOD1, MOD0:
Operating mode select
bits

These bits set the operation conditions of the 16-bit reload timer.
[Internal clock mode]
The MOD2 bit is used to select the function of the input pin.
When MOD2 bit set to 0:

The input pin functions as a trigger input.
The MOD1 and MOD0 bits are used to select the edge to be detected.

When the edge is detected, the value set in the 16-bit reload register
(TMRLR) is reloaded in the 16-bit timer register (TMR), starting the count
operation of the TMR.

When MOD2 set to 1:

The input pin functions as a gate input.
The MOD1 bit is not used. The MOD0 bit is used to select the signal level
(High or Low) to be detected. The count operation of the 16-bit timer
register (TMR) is performed only when the signal level is inputted.

[Event count mode]
The MOD2 bit is not used. An external event clock is inputted from the input
pin. The MOD1 and MOD0 bits are used to select the edge to be detected.

Advertising