CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
308
User’s Manual U14492EJ3V0UD
(2) Timer unit mode registers 0, 1 (TUM0, TUM1)
The TUMn register is an 8-bit register used to specify the TM1n operation mode or to control the operation of
the PWM output pin.
TUMn can be read/written in 8-bit or 1-bit units.
Cautions 1. Changing the value of the TUMn register during TM1n operation (TM1CEn bit of TMCn
register = 1) is prohibited.
2. When the CMD bit = 0 (general-purpose timer mode), setting MSEL bit = 1 (UDC mode B)
is prohibited.
7
CMD
TUM0
6
0
5
0
4
0
3
TOE10
2
ALVT10
1
0
0
MSEL
Address
FFFFF5EBH
Initial value
00H
7
CMD
TUM1
6
0
5
0
4
0
3
TOE10
2
ALVT10
1
0
0
MSEL
Address
FFFFF60BH
Initial value
00H
Bit Position
Bit Name
Function
7
CMD
Specifies TM1n operation mode.
0: General-purpose timer mode (up count)
1: UDC mode (up/down count)
3
TOE10
Specifies timer output (TO1n) enable.
0: Timer output disabled
1: Timer output enabled
Caution
When CMD bit = 1 (UDC mode), timer output is not performed
regardless of the setting of the TOE10 bit. At this time, timer output
consists of the negative phase level of the level set by the ALVT10
bit.
2
ALVT10
Specifies active level of timer output (TO1n).
0: Active level is high level
1: Active level is low level
Caution
When CMD bit = 1 (UDC mode), timer output is not performed
regardless of the setting of the TOE10 bit. At this time, timer output
consists of the negative phase level of the level set by the ALVT10
bit.
0
MSEL
Specifies operation in UDC mode (up/down count).
0: UDC mode A
TM1n can be cleared by setting the CLR1, CLR0 bits of the TMC1n register.
1: UDC mode B
TM1n is cleared in the following cases.
•
Upon match with CM1n0 during TM1n up count operation
•
Upon match with CM1n1 during TM1n down count operation
When UDC mode B is set, the ENMD, CLR1, and CLR0 bits of the TMC1n
register becomes invalid.
Remark
n = 0, 1
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...