NEC V850E/IA1 mPD703116 User Manual page 349

32-bit single-chip microcontrollers
Hide thumbs Also See for V850E/IA1 mPD703116:
Table of Contents

Advertisement

CHAPTER 9 TIMER/COUNTER FUNCTION (REAL-TIME PULSE UNIT)
(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.
15
14
13
12
OCTLE0
SWFE
ALVE
OTME
OTME
4
4
41
40
Bit Position
Bit Name
15, 11, 7, 3
SWFEn
14, 10, 6, 2
ALVEn
13, 12, 9, 8,
OTMEn1,
5, 4, 1, 0
OTMEn0
Remark n = 1 to 4
11
10
9
8
7
6
SWFE
ALVE
OTME
OTME
SWFE
ALVE
3
3
31
30
2
2
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.
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
0
0
0
1
1
0
1
1
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.
User's Manual U14492EJ3V0UD
5
4
3
2
1
0
OTME
OTME
SWFE
ALVE
OTME
OTME
21
20
1
1
11
10
Function
Toggle Mode
Toggle mode 0:
Reverse output level of TO2n output every time a sub-
channel n compare match occurs.
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.
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.
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").
Address
Initial value
FFFFF648H
0000H
349

Advertisement

Table of Contents
loading

Table of Contents