CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
326
User’s Manual U14492EJ3V0UD
(iv) Mode 4 (PRM12 = 1, PRM11 = 1, PRM10 = 1)
In mode 4, when two signals out of phase are input to the TIUD1n and TCUD1n pins, up/down
operation is automatically judged and counting is performed according to the timing shown in
Figure
9-53
.
In mode 4, counting is executed at both the rising and falling edges of the two signals input to the
TIUD1n and TCUD1n pins. Therefore, TM1n counts four times per cycle of an input signal (
×
4
count).
Figure 9-53. Mode 4
TIUD1n
TCUD1n
TM1n
0004H
0003H
0006H
0005H
0008H
0007H
000AH
0009H
0008H
0009H
0006H
0007H
0005H
Up count
Down count
Cautions 1. When mode 4 is specified as the operation mode of TM1n, the valid edge specifications for
pins TIUD1n and TCUD1n are not valid.
2. If the TIUD1n pin edge and TCUD1n pin edge are input simultaneously in mode 4, TM1n
continues the same count operation (up or down) it was performing immediately before the
input.
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...