![NEC mPD780065 Series Preliminary User'S Manual Download Page 153](http://html.mh-extra.com/html/nec/mpd780065-series/mpd780065-series_preliminary-users-manual_249264153.webp)
153
CHAPTER 7 8-BIT TIMER/EVENT COUNTER
Preliminary User’s Manual U13420EJ2V0UM00
(2) Operation after compare register transition during timer count operation
If the value after 8-bit compare register 5n (CR5n) is transmitted is smaller than the value of 8-bit counter 5n
(TM5n), TM5n continues counting, overflows and then restarts counting from 0. Thus, if the value (M) after CR5n
is smaller than value (N) before transition, it is necessary to restart the timer after transiting CR5n.
Figure 7-14. Timing after Compare Register Transition during Timer Count Operation
Caution
Except when the TI5n input is selected, always set TCE5n = 0 before setting the stop state.
Remarks 1. N > X > M
2. n = 0, 1
(3) TM5n (n = 0, 1) reading during timer operation
When reading TM5n during operation, select count clock having high/low level wave form longer than two cycles
of CPU clock because count clock stops temporary. For example, in the case where CPU clock (f
CPU
) is fx, when
the selected count clock is fx/4 or below, it can be read.
Remark
n = 0, 1
Count pulse
CR5n
TM5 count value
N
M
X–1
X
FFH
00H
01H
02H
Summary of Contents for mPD780065 Series
Page 2: ...Preliminary User s Manual U13420EJ2V0UM00 2 MEMO ...
Page 10: ...10 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 22: ...22 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 134: ...134 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 154: ...154 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 160: ...160 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 186: ...186 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 326: ...326 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 342: ...342 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...
Page 350: ...350 Preliminary User s Manual U13420EJ2V0UM00 MEMO ...