564
Chapter 12
16-bit 2-Phase Encoder Input Up/Down Counter/General Purpose Timer (TMENC10)
User’s Manual U16580EE3V1UD00
(c) Compare function
TM1n 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.
Note:
This match interrupt is generated when CC100 and CC101 are set to the compare register
mode.
(d) 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.
When the TMENC10 is set to the capture register mode, a capture interrupt (INTCC10, INTCC11)
is generated upon detection of the valid edge.
(4)
Operation in UDC mode B
(a) Basic operation
The operations at the next count clock after the count value of TMENC10 and the CM100 set value
match when TMENC10 is in UDC mode B are as follows.
•
In case of up count operation:
TMENC10 is cleared (0000H) and the INTCM10 interrupt is
generated.
•
In case of down count operation: The TMENC10 count value is decremented (-1).
The operations at the next count clock after the count value of TMENC10 and the CM101 set value
match when TMENC10 is in UDC mode B are as follows.
•
In case of up count operation:
The TMENC10 count value is incremented (+1).
•
In case of down count operation: TMENC10 is cleared (0000H) and the INTCM11 interrupt is
generated.
Figure 12-22:
Example of TM1Operation in UDC Mode
CM10 set value
CM11 set value
TMENC1 count value
Clear
TMENC1 not
cleared if count clock
counts down following match
Clear
TMENC1 not
cleared if count clock
counts up following match
Содержание MuPD70F3187
Страница 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: ......