beautypg.com

NEC PD78214 User Manual

Page 181

background image

152

µ

PD78214 Sub-Series

Fig. 7-55 Timing of Interval Timer Operation (1)

n

n

0H

TM1
count value

MOD(2n)

MOD(3n)

FFH

MOD(2n)

MOD(3n)

MOD(4n)

Timer starts

Compare register

(CR10)

INTC10

interrupt request

Rewriting by inter-
rupt program

Interval

Interval

Interval

Rewriting by inter-
rupt program

Rewriting by inter-
rupt program

FFH

Remark Interval = n

× x/f

CLK

, 1

≤ n ≤ FFH

x = 16, 32, 64, 128, 256, 512

Fig. 7-56 Setting of Control Registers for Interval Timer Operation (1)

(a) Timer control register 1 (TMC1)

(b) Prescaler mode register 1 (PRM1)

(c) Capture/compare control register 1 (CRC1)

7

6

5

4

3

2

1

0

0

0

0

0

0

CRC1

Disables clearing TM1, when CR10
coincides with TM1

Specifies the CR11 register as a compare
register

Disables clearing TM1, when CR11
coincides with TM1

0

0

0

7

6

5

4

3

2

1

0

0

0

0

0

1

TMC1

Overflow flag

Enables counting TM1

Ч

Ч

Ч

7

6

5

4

3

2

1

0

PRS10

0

PRM1

Ч

Ч

Ч

PRS12 PRS11

×

Specifies count clock
(x/f

CLK

; where x = 16, 32, 64,

128, 256, or 512)

This manual is related to the following products: