English
Language : 

UPD784938 Datasheet, PDF (233/733 Pages) NEC – 16-Bit Single-Chip Microcontrollers
CHAPTER 9 TIMER/EVENT COUNTER 0
9.6 Compare Register and Capture Register Operation
9.6.1 Compare operations
Timer/event counter 0 performs compare operations in which the value set in compare registers (CR00, CR01) are compared
with the timer counter 0 (TM0) count value.
If the count value of TM0 matches the preset CR0n (n = 0, 1) value as the result of the count operation, a match signal is sent
to the output control circuit, and at the same time an interrupt request (INTC00/INTC01) is generated.
After a match with the CR01 value, the TM0 count value can be cleared, and the timer functions as an interval timer that
repeatedly counts up to the value set in the CR01.
Figure 9-13. Compare Operation
FFFFH
FFFFH
TM0
Count value
CR00 value
0H
Count start
CE0 ← 1
Match
INTC00
interrupt request
CR01 value
Match
INTC01
interrupt request
CR00 value
Match
CR01 value
Match
OVF0
Remark CLR01 = 0
Cleared by software
Preliminary User’s Manual U13987EJ1V0UM00
233