555
Chapter 12
16-bit 2-Phase Encoder Input Up/Down Counter/General Purpose Timer (TMENC10)
User’s Manual U16580EE3V1UD00
12.5.2 Operation in general-purpose timer mode
TMENC10 can perform the following operations in the general-purpose timer mode.
(1)
Interval operation
TMENC10 and CM100 always compare their values and the INTCM10 interrupt is generated upon
occurrence of a match. TMENC10 is cleared (0000H) at the count clock following the match.
Furthermore, when one more count clock is input, TMENC10 counts up to 0001H.
The interval time can be calculated by the following formula.
Interval time = (CM100 value + 1)
×
TMENC10 count clock rate
Caution:
Interval operation can be achieved by setting the ENMD bit of the TMC register to 1.
(2)
Free-running operation
TMENC10 performs full count operation from 0000H to FFFFH, and after the TM1OVF bit of the
STATUS10 register is set (1), TMENC10 is cleared and resumes counting.
The free-running cycle can be calculated by the following formula.
Free-running cycle = 65,536
×
TMENC10 count clock rate
Caution:
The free-running operation can be achieved by setting the ENMD bit of the TMC
register to 0.
(3)
Compare function
TMENC10 connects two compare register (CM100, CM101) channels and two capture/compare
register (CC100, CC101) channels.
When the TMENC10 count value and the set value of one of the compare registers match, a
match interrupt (INTCM10, INTCM11, INTCC10
Note
, INTCC11
Note
) is output. Particularly in the
case of an interval operation, TMENC10 is cleared upon generation of the INTCM10 interrupt.
Note:
This match interrupt is generated when CC100 and CC101 are set to the compare register
mode.
Содержание V850E/PH2
Страница 6: ...6 Preface User s Manual U16580EE3V1UD00...
Страница 16: ...16 User s Manual U16580EE3V1UD00...
Страница 28: ...28 User s Manual U16580EE3V1UD00...
Страница 32: ...32 User s Manual U16580EE3V1UD00...
Страница 84: ...84 Chapter 2 Pin Functions User s Manual U16580EE3V1UD00 MEMO...
Страница 144: ...144 Chapter 3 CPU Functions User s Manual U16580EE3V1UD00 MEMO...
Страница 192: ...192 Chapter 5 Memory Access Control Function PD70F3187 only User s Manual U16580EE3V1UD00 MEMO...
Страница 312: ...312 Chapter 9 16 Bit Timer Event Counter P User s Manual U16580EE3V1UD00 MEMO...
Страница 534: ...534 Chapter 11 16 bit Timer Event Counter T User s Manual U16580EE3V1UD00...
Страница 969: ...969 Chapter 20 Port Functions User s Manual U16580EE3V1UD00 MEMO...
Страница 970: ...970 Chapter 20 Port Functions User s Manual U16580EE3V1UD00...
Страница 976: ...976 Chapter 22 Internal RAM Parity Check Function User s Manual U16580EE3V1UD00 MEMO...
Страница 984: ...984 Chapter 23 On Chip Debug Function OCD User s Manual U16580EE3V1UD00 MEMO...
Страница 1006: ...1006 Chapter 24 Flash Memory User s Manual U16580EE3V1UD00 MEMO...
Страница 1036: ...1036 Chapter 27 Recommended Soldering Conditions User s Manual U16580EE3V1UD00 MEMO...
Страница 1046: ...1046 Appendix A Index User s Manual U16580EE3V1UD00 MEMO...
Страница 1052: ...1052 User s Manual U16580EE3V1UD00...
Страница 1053: ......