beautypg.com

5 explanation of operation of 16-bit reload timer, Explanation of operation of 16-bit reload timer – FUJITSU F2MCTM-16LX User Manual

Page 268

background image

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

OUTL

OUTE

RELD INTE

UF

CNTE TRG

MOD0

11

10

9

8

5

6

4

3

2

1

7

14

13

12

bit0

bit15

1

Other than "11

B

"

Set the reload value to 16-bit timer register

: Used bit
: Set "1".

TMCSR

TMRLR

CSL1 CSL0 MOD2 MOD1

OUTL

OUTE

RELD INTE

UF

CNTE TRG

MOD0

11

10

9

8

5

6

4

3

2

1

bit0

7

bit15 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".

1

1

1