545
Chapter 12
16-bit 2-Phase Encoder Input Up/Down Counter/General Purpose Timer (TMENC10)
User’s Manual U16580EE3V1UD00
12.4 Control
Registers
(1)
Timer unit mode register 10 (TUM10)
The TUM10 register is an 8-bit register used to specify the TMENC10 operation mode or to control
the operation of the PWM output pin.
This register can be read/written in 8-bit or 1-bit units.
Reset input clears this register to 00H.
Cautions: 1. Changing the value of the TUM10 register during TMENC10 operation (TM1CE bit
of TMC register = 1) is prohibited.
2. When the CMD bit = 0 (general-purpose timer mode), setting MSEL bit = 1 (UDC
mode B) is prohibited.
Figure 12-7:
Timer Unit Mode Register 10 (TUM10)
After reset:
00H
R/W
Address:
FFFFF6BBH
7
6
5
4
3
2
1
0
TUM10
CMD
0
0
0
TOE
ALVT1
0
MSEL
CMD
TMENC10 Operation Mode Specification
0
General-purpose timer mode (up count)
1
UDC mode (up/down count)
TOE
Timer Output (TO1) Control
0
Timer output disabled
1
Timer output enabled
When CMD bit = 1 (UDC mode), timer output is not performed regardless of the setting of
the TOE bit. At this time, timer output consists of the inverted phase level of the level set by
the ALVT1 bit.
ALVT1
Active Level Specification for Timer Output (TO1)
0
Active level is high level
1
Active level is low level
When CMD bit = 1 (UDC mode), timer output is not performed regardless of the setting of
the TOE bit. At this time, timer output consists of the inverted phase level of the level set by
the ALVT1 bit.
MSEL
Mode Selection in UDC Mode (Up/Down Count)
0
UDC mode A.
TMENC10 can be cleared by setting the CLR1, CLR0 bits of the TMC10
register.
1
UDC mode B. TMENC10 is cleared in the following cases.
•
Upon match with CM100 during TMENC10 up count operation
•
Upon match with CM101 during TMENC10 down count operation
When UDC mode B is set, the ENMD, CLR1, and CLR0 bits of the TMC10 register
become invalid.
Содержание 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: ......