Chapter 4 Timer Functions

4-9-3 Timer Mode Registers

Four readable and writable 6-byte timer mode registers. Control timers 2, 3, 4, 5, and the time base.

(1) Timer 2 mode register (TM2MD)

TM2MD

7

6

5

4

3

2

1

0

 

TM2EN

TM2PWM

TM2CK2

TM2CK1

TM2CK0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(at reset: ---00XXX)

TM2CK2

TM2CK1

TM2CK0

Clock source selection

X

0

0

fs

1

fs/4

 

 

0

1

0

fx *

1

TM2IO input

 

 

1

1

0

Synchronous fx *

1

Synchronous TM2IO input

 

 

* 48QFH package only

 

 

TM2PWM

TM2 operation mode selection

 

 

 

0

 

Normal timer operation

1

 

PWM operation

TM2EN

TM2 count control

0

Halt the count

1

Operate the count

Figure 4-9-13 Timer 2 Mode Register (TM2MD: X'03F82', R/W)

Timer Function Control Registers

85

Page 99
Image 99
Panasonic MN101C00 user manual Timer Mode Registers, TM2MD, TM2PWM, TM2EN