![NEC V854 UPD703006 User Manual Download Page 202](http://html.mh-extra.com/html/nec/v854-upd703006/v854-upd703006_user-manual_249287202.webp)
202
User’s Manual U11969EJ3V0UM00
CHAPTER 7 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
Figure 7-31. Example of Set-up Procedure for Frequency Measurement
Figure 7-32. Example of Interrupt Request Processing Routine Calculating Cycle
Setting of TMC00 register
Setting of TMC01 register
TMC01. CMS00
←
0
Setting of INTM1 register
INTM1. ES01
←
0
INTM1. ES00
←
1
Initialization of buffer memory
for capture data storage
X0
←
0
Count starts
TMC00. CE0
←
1
Enables interrupt
INTP00 interrupt
; Specifies count clock of TM0
; Specifies CC00 register
as capture register
; Specifies rising edge as valid
edge of INTP00 signal
; Sets CE0 bit to 1
Cycle measurement initial setting
INTP00 interrupt processing
Calculation of cycle
Yn1 = (10000H – X
n–1
) + CC00
tn = Yn x count clock cycle
Stores nth capture data to
buffer memory
Xn
←
CC00
RETI
; tn : cycle
Summary of Contents for V854 UPD703006
Page 2: ...2 User s Manual U11969EJ3V0UM00 MEMO ...
Page 22: ...22 User s Manual U11969EJ3V0UM00 MEMO ...
Page 80: ...80 User s Manual U11969EJ3V0UM00 MEMO ...
Page 134: ...134 User s Manual U11969EJ3V0UM00 MEMO ...
Page 156: ...156 User s Manual U11969EJ3V0UM00 MEMO ...
Page 294: ...294 User s Manual U11969EJ3V0UM00 MEMO ...
Page 320: ...320 User s Manual U11969EJ3V0UM00 MEMO ...
Page 324: ...324 User s Manual U11969EJ3V0UM00 MEMO ...
Page 336: ...336 User s Manual U11969EJ3V0UM00 MEMO ...
Page 376: ...376 User s Manual U11969EJ3V0UM00 MEMO ...
Page 382: ...382 User s Manual U11969EJ3V0UM00 MEMO ...
Page 394: ...394 User s Manual U11969EJ3V0UM00 MEMO ...