beautypg.com

NEC PD78214 User Manual

Page 231

background image

202

µ

PD78214 Sub-Series

Fig. 7-116 Setting of Control Registers for External Event Counter Operation

(a) Prescaler mode register 1 (PRM1)

(b) External interrupt mode register 0 (INTM0)

(c) Timer control register 1 (TMC1)

Fig. 7-117 Setting Procedure for External Event Counter Operation

7

6

5

4

3

2

1

0

1

1

1

0

PRM1

Ч

Ч

Ч

1

Specifies external clock input (C1)

7

6

5

4

3

2

1

0

0

INTM0

1

Ч

Ч

Ч

Ч

Ч

Ч

Specifies valid edge of C1 input as rising edge

7

6

5

4

3

2

1

0

1

0

0

0

×

0

0

TMC1

×

Normal mode

Overflow flag

Enables counting

Event counter

Specify valid edge of C1 pin input

Set PRM1 register

Start counting

; Sets bit 7 of TMC1 to 1

PRM1

→0F × H

CE2

←1

This manual is related to the following products: