5 time base operation, 5-1 overview, 5-2 operation – Panasonic MN101C00 User Manual

Page 91

Advertising
background image

4-5 Time Base Operation

4-5-1 Overview

The clock source for the time base timer can be set to fosc or fx. Also, the interrupt

period for time base timer (TBIRQ) can be set to 1/2

7

, 1/2

8

, 1/2

9

, 1/2

10

, or 1/2

13

of the

clock source.

4-5-2 Operation

■ Time Base Function

Settings for the time base function are listed below.

(1)

Use the TM5CK0 flag of the timer 5 mode register (TM5MD) to select fosc or fx as

the clock source.

(2)

Use the TM5IR2 to 0 flags of the TM5MD register to select the time base timer

interrupt source.

(3)

When the selected time interval passes, the interrupt request flag of the time base

interrupt control register (TBICR) is set.

Table 4-5-1 Base Time Settings

Chapter 4 Timer Functions

77

TM5IR2 to 0

Clock Source

fosc

20MHz

8.38MHz

32.768kHz

6.4

µ

s

15.2

µ

s

3.9ms

12.8

µ

s

30.5

µ

s

7.8ms

25.6

µ

s

61.0

µ

s

15.6ms

51.2

µ

s

122.0

µ

s

31.2ms

409.6

µ

s

000

001

010

011

1XX

1

2

7

1

2

8

1

2

9

1

2

10

1

2

13

976.4

µ

s

250ms

fx

Time base operation cannot be halted.

Time Base Operation

Advertising