CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
299
User’s Manual U14492EJ3V0UD
•
2-phase encoder input
The 2-phase encoder signal from external is used as the count clock of the timer counter with the external
clock input pins (TIUD1n, TCUD1n). The counter mode can be selected from among the four following modes.
•
Mode 1: Counts the input pulses of the count pulse input pin.
Up/down is specified by the level of one more input pin.
•
Mode 2: Counts up/down using the respective input pulses of the up count pulse input pin and down
count pulse input pin.
•
Mode 3: Counts up/down using the phase relationship of the pulses input to 2 pins.
•
Mode 4: Counts up/down using the phase relationship of the pulses input to 2 pins. Counting is done
using the respective rising edges and the falling edges of the pulses.
•
PWM output function
In the general-purpose timer mode, 16-bit resolution PWM output can be output from the TO1n pin.
•
Timer clear
The following timer clear operations are performed according to the mode that is used.
(a) General-purpose timer mode: Timer clear operation is possible upon occurrence of match with CM1n0 set
value.
(b) Up/down counter mode: The timer clear operation can be selected from among the following four
conditions.
(i)
Timer clear performed upon occurrence of match with CM1n0 set value during TM1n up count
operation, and timer clear performed upon occurrence of match with CM1n1 set value during TM1n
down count operation.
(ii) Timer clear performed only by external input.
(iii) Timer clear performed upon occurrence of match between TM1n count value and CM1n0 set value.
(iv) Timer clear performed upon occurrence of external input and match between TM1n count value and
CM1n0 set value.
•
External pulse output (TO1n): 1
×
2 channels
Remark
f
XX
: Internal system clock
n = 0, 1
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...