556
Chapter 12
16-bit 2-Phase Encoder Input Up/Down Counter/General Purpose Timer (TMENC10)
User’s Manual U16580EE3V1UD00
(4)
Capture function
TMENC10 connects two capture/compare register (CC100, CC101) channels.
When CC100 and CC101 are set to the capture register mode, the value of TMENC10 is captured
in synchronization with the corresponding capture trigger signal.
Furthermore, an interrupt request (INTCC10, INTCC11) is generated by the TICC10, TICC11
input signals.
Remark:
CC100 and CC101 are capture/compare registers. Which of these registers is used is
specified with capture/compare control register 1 (CCR10).
The valid edge of the capture trigger is specified by signal edge selection register 10 (SESA10). If
both the rising edge and the falling edge are selected as the capture triggers, it is possible to
measure the input pulse width from external. If a single edge is selected as the capture trigger, the
input pulse cycle can be measured.
(5)
PWM output operation
PWM output operation is performed from the TO1 pin by setting TMENC10 to the general-purpose
timer mode (CMD bit of the TUM10 register = 0).
The resolution is 16 bits, and the count clock can be selected from among seven internal clocks
(f
XX
/8, f
XX
/16, f
XX
/32, f
XX
/64, f
XX
/128, f
XX
/256, f
XX
/512).
Figure 12-13:
TMENC10 Block Diagram (During PWM Output Operation)
Remark:
f
XX
: Internal system clock
Table 12-3:
Capture Trigger Signal to 16-Bit Capture Register
Capture Register
Capture Trigger Signal
CC100
TICC10
CC101
TICC11
TMENC1 (16 bits)
Compare register
(CM10)
Compare register
(CM11)
S
INTCM10
INTCM11
ALVT1
TUM1 register
Clear
16
16
TO1n
Q
R
f
XX
/8
f
XX
/16
f
XX
/32
f
XX
/64
f
XX
/128
f
XX
/256
f
XX
/512
Summary of Contents for V850E/PH2
Page 6: ...6 Preface User s Manual U16580EE3V1UD00...
Page 16: ...16 User s Manual U16580EE3V1UD00...
Page 28: ...28 User s Manual U16580EE3V1UD00...
Page 32: ...32 User s Manual U16580EE3V1UD00...
Page 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO...
Page 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO...
Page 192: ...192 Chapter 5 Memory Access Control Function PD70F3187 only User s Manual U16580EE3V1UD00 MEMO...
Page 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO...
Page 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00...
Page 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO...
Page 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00...
Page 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO...
Page 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO...
Page 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO...
Page 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO...
Page 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO...
Page 1052: ...1052 User s Manual U16580EE3V1UD00...
Page 1053: ......