beautypg.com

NEC PD78214 User Manual

Page 177

background image

148

µ

PD78214 Sub-Series

(b) Restart after 0 is set in TM1 cleared

Count clock

TM1

CE1

n-1

n

0

0

1

When the CE1 bit is set to 1 aftr this count clock,

counting starts from 0 on the count clock input

after the CE1 bit has been set.

(c) Restart before 0 is set in TM1 cleared

Count clock

TM1

CE1

n-1

When the CE1 bit is set to 1 before this count clock, Clearing

TM1 by CE1

←0 and counting by CE1←1 are performed simultaneously.

n

0

1

2

7.2.5 Compare Register and Capture/Compare Register Operations

(1) Compare operation

Eight-bit timer/counter 1 performs an operation to compare the values set in the compare registers with timer
count values.

When the value set in the compare register (CR10) and the value set in the capture/compare register (CR11)
specified to perform compare operation coincide with count values of 8-bit timer 1 (TM1), the interrupt request
signals (INTC10 for the CR10 register and INTC11 for the CR11 register) are generated.

After the value of the CR10 register or CR11 register coincides with a count value of TM1, the count value of
TM1 can be cleared. Thus, 8-bit timer/counter 1 can operate as an interval timer for repeatedly counting up
to the value set in the CR10 register or CR11 register.

This manual is related to the following products: