CHAPTER 9 TIMER/COUNTER FUNCTION
316
User’s Manual U15195EJ5V0UD
Figure 9-55. Mode 3 (When Rising Edge Is Specified as Valid Edge of TIUD10 Pin):
In Case of Simultaneous TIUD10, TCUD10 Pin Edge Timing
0007H
TIUD10
TCUD10
TM10
0008H
Up count
Down count
0009H
000AH
0009H
0008H
0007H
(iv) Mode 4 (PRM10 register’s PRM12 = 1, PRM11 = 1, PRM10 = 1)
In mode 4, when two signals out of phase are input to the TIUD10 and TCUD10 pins, up/down
operation is automatically judged and counting is performed according to the timing shown in
Figure
9-56
.
In mode 4, counting is executed at both the rising and falling edges of the two signals input to the
TIUD10 and TCUD10 pins. Therefore, TM10 counts four times per cycle of an input signal (
×
4
count).
Figure 9-56. Mode 4
TIUD10
TCUD10
TM10
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 TM10, the valid edge specifications for
the TIUD10 and TCUD10 pins are not valid.
2. If the TIUD10 pin edge and TCUD10 pin edge are input simultaneously in mode 4, TM10
continues the same count operation (up or down) it was performing immediately before the
input.