Compare Register, Capture/Compare Register, And Capture Register Operation; Compare Operations - NEC uPD784038 Series User Manual

16-bit single-chip microcontrollers
Table of Contents

Advertisement

9.6 COMPARE REGISTER, CAPTURE/COMPARE REGISTER, AND CAPTURE REGISTER OPERATION

9.6.1

Compare Operations

Timer/counter 1 performs compare operations in which the value set in a compare register (CR10), capture/compare register
(CR11), specified for compare operation is compared with the timer register 1 (TM1) count value.
If the count value of TM1 matches the preset value of the CR10, or the CR11 as the result of the count operation, an
interrupt request signal (INTC10 or INTC11) is generated.
After a match with the CR10 or CR11 value, the TM1 contents can be cleared, and the timer functions as an interval timer
that repeatedly counts up to the value set in the CR10 or CR11.
TM1
Count Value
Interrupt Request
Interrupt Request
Remark CLR10 = 0, CLR11 = 0, CM = 0, BW1 = 0
264
CHAPTER 9 TIMER/COUNTER 1
Figure 9-14 Compare Operation in 8-Bit Operating Mode
0H
Count Start
CE1 ← 1
INTC10
INTC11
OVF1
User's Manual U11316EJ4V1UD
CR10 Value
CR11 Value
Match
Match
FFH

Advertisement

Table of Contents
loading

Table of Contents