beautypg.com

NEC PD78214 User Manual

Page 197

background image

168

µ

PD78214 Sub-Series

(c) When the value of TM2 is FFH

(2) Clear operation

After a coincidence with the CR21 compare register or capture operation, 8-bit timer 2 (TM2) can be
automatically cleared. If a TM2 clear cause occurs, TM2 is cleared to 00H by the next count clock pulse. This
means that even if a TM2 clear cause occurs, TM2 holds the value existing at that time until the next count
clock pulse is applied.

Fig. 7-72 TM2 Cleared by a Coincidence with Compare Register (CR21)

Count clock

f

CLK

/8

TM2

Cleared by software

OVF2

OVF2

←0

FEH

FFH

0H

1H

Count clock

Compare register

(CR21)

TM2

n-1

n

0

1

Coincidence between

TM2 and CR21

Cleared here

n

Fig. 7-73 TM2 Cleared after Capture Operation

TM2

Count clock

n-1

n

0

1

2

INTP1

TM2 is captured

to CR22 here

Cleared here

This manual is related to the following products: