Chapter 6 8-bit Timers

6-2-3 Timer Mode Registers

Timer mode register is readable/writable register that controls timers 0, 1, 4 and 5.

„Timer 0 Mode Register (TM0MD)

TM0MD

7

-

6

5

4

3

2

1

0

 

 

-

TM0MOD

TM0PWM

TM0EN

TM0CK2

TM0CK1

TM0CK0

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

( At reset : - - 0 0 0 0 0 0 )

TM0CK2 TM0CK1 TM0CK0 Clock source

0 fosc

-0

1tm0psc (prescaler output )

0

0

fx

1

Synchronous fx

1

0

TM0IO input

1

 

 

1

SynchronousTM0IOinput

 

TM0EN

Timer 0 count control

0Disable the count

1Enable the count

TM0PWM

Timer 0 operation mode

0Normal timer operation

1PWM operation

TM0MOD

Pulse width

measurement control

 

0Normal timer operation

1Measure the pulse width of P22/IRQ2

Figure 6-2-9 Timer 0 Mode Register (TM0MD : x'03F54', R/W)

VI - 10 Control Registers

Page 224
Image 224
Panasonic MN101C77C, F77G user manual Timer Mode Registers, TM0MD, TM0EN, TM0PWM, TM0MOD