CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
349
User’s Manual U14492EJ3V0UD
(6) Timer 2 output control register 0 (OCTLE0)
The OCTLE0 register controls timer output from the TO2n pin (n = 1 to 4).
This register can be read/written in 16-bit units.
When the higher 8 bits of the OCTLE0 register are used as the OCTLE0H register, and the lower 8 bits are
used as the OCTLE0L register, they can be read/written in 8-bit or 1-bit units.
14
ALVE
4
13
OTME
41
12
OTME
40
2
ALVE
1
3
SWFE
1
4
OTME
20
5
OTME
21
6
ALVE
2
7
SWFE
2
8
OTME
30
9
OTME
31
10
ALVE
3
11
SWFE
3
15
SWFE
4
1
OTME
11
0
OTME
10
OCTLE0
Address
FFFFF648H
Initial value
0000H
Bit Position
Bit Name
Function
15, 11, 7, 3
SWFEn
Fixes the TO2n pin output level according to the setting of ALVEn bit.
0: Don’t fix output level.
1: When ALVEn = 0, fix output level to low level.
When ALVEn = 1, fix output level to high level.
14, 10, 6, 2
ALVEn
Specifies the active level of the TO2n pin output.
0: Active level is high level
1: Active level is low level
Specifies toggle mode.
OTMEn1
OTMEn0
Toggle Mode
0
0
Toggle mode 0:
Reverse output level of TO2n output every time a sub-
channel n compare match occurs.
0
1
Toggle mode 1:
Upon sub-channel n compare match, set TO2n output
to active level, and when TM20 is “0”, set TO2n output
to inactive level.
1
0
Toggle mode 2:
Upon sub-channel n compare match, set TO2n output
to active level, and when TM21 is “0”, set TO2n output
to inactive level.
1
1
Toggle mode 3:
Upon sub-channel n compare match, set TO2n output
to active level, and upon sub-channel n + 1 compare
match, set TO2n output to inactive level (when n = “4”,
n + 1 becomes “1”).
13, 12, 9, 8,
5, 4, 1, 0
OTMEn1,
OTMEn0
Cautions 1. When the OTMEn1, OTMEn0 bits = 11 (toggle mode 3), if the
same output delay operation settings are made when setting bits
ODLEn2 to ODLEn0 of the ODELE0 register, two outputs change
simultaneously upon 1 sub-channel n compare match.
2. If two or more signals are input simultaneously to the same
output circuit, S/T signal input has a higher priority than RA, RB,
and RN signal inputs.
Remark
n = 1 to 4
Содержание V850E/IA1 mPD703116
Страница 2: ...2 User s Manual U14492EJ3V0UD MEMO...