Compare Operation - NEC V854 UPD703006 User Manual

32/16-bit single-chip microcontroller hardware
Table of Contents

Advertisement

CHAPTER 7 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)

7.5.6 Compare operation

A comparison between the value in a compare register with the count values of TM1 can be performed.
When the count values of TM1 coincide with the value of the compare register programmed in advance, INTCM10
coinciding with CM10 is generated as a trigger of the real time output port. An interrupt request signal INTCM can
be generated at the same time.
Table 7-5. Interrupt Request Signal from 24-Bit Compare Register
Compare Register
CM10/CM10L
CM11/CM11L
Timer 1
Count clock
TM1
CM10
Coincidence detected
INTCM10
Remark Note that the coincidence signal INTCM is generated immediately after TM1 is incremented as shown
above.
Interrupt Request
INTCM10
INTCM11
Figure 7-15. Example of Compare Operation
n – 1
User's Manual U11969EJ3V0UM00
Compare Match Trigger
Real time output port
n
n
n + 1
187

Advertisement

Table of Contents
loading

Table of Contents