Compare Control Register (Ocsh0 To Ocsh5, Ocsl0 To Ocsl5) - Fujitsu MB91260B Series Hardware Manual

32-bit microcontroller
Table of Contents

Advertisement

11.4.6
Compare Control Register
(OCSH0 to OCSH5, OCSL0 to OCSL5)
The compare control register is used to control the output level, output enable, output
level reverse mode, compare operation enable, compare match interrupt enable, and
compare match interrupt flag of RT0 to RT5.
■ Compare Control Register, Upper Byte (OCSH1, OCSH3, OCSH5)
Compare control register (Upper)
Bit15
-
-
R/W: Readable/Writable
: Initial value
-: Unused
Bit14
Bit13
Bit12
Bit11
BTS1
BTS0
CMOD
OTE1
R/W
R/W
R/W
R/W
OTD0
OTD1
OTE0
OTE1
CMOD
RT0,RT2,RT4: This level is reversed immediately at
the match with compare register 0,2,4 occurs
0
RT1,RT3,RT5: This level is reversed immediately at
the match with compare register 1,3,5 occurs
RT0,RT2,RT4: This level is reversed immediately at
the match with compare register 0,2,4 occurs
1
RT1,RT3,RT5: This level is reversed immediately at
the match with compare register (0 or 1),(2 or
3),(4 or 5) occurs
X= 0 to 5
BTS0
BTS1
CHAPTER 11 MULTIFUNCTIONAL TIMER
Bit10
Bit9
Bit8
OTE0
OTD1
OTD0
R/W
R/W
R/W
Output level bit
Read
0
Count output value of RT0,RT2,
or RT4
1
Output level bit
Read
0
Count output value of RT1,RT3,
or RT5
1
Output enable bit
0
General-purpose I/O port
1
Waveform generator output pin (RTO0,RTO2,RTO4)
Output enable bit
0
General-purpose I/O port
1
Waveform generator output pin (RTO1,RTO3,RTO5)
Output level reserve mode bit
MOD1x=0
Set "1" at match in up count mode.
Reset "0" at match in down count mode.
Reset "0" at match in up count mode.
Set "1" at match in down count mode.
Buffer transition selection bit
0
Transfer starts when zero detection occurs (ch 0, ch 2, ch 4)
1
Transfer starts when compare clear match occurs (ch 0, ch 2, ch 4)
Buffer transition selection bit
Transfer starts when zero detection occurs (ch 1, ch 3, ch 5)
0
1
Transfer starts when compare clear match occurs (ch 1, ch 3, ch 5)
OCSH1,OCSH3,OCSH5
Address: 00009C
H
00009E
H
0000A0
H
Initial value: X1100000
B
Write
RT0,RT2, or RT4 output "0"
RT0,RT2, or RT4 output "1"
Write
RT1,RT3, or RT5 output "0"
RT1,RT3, or RT5 output "1"
MOD1x=1
229

Advertisement

Table of Contents
loading

This manual is also suitable for:

Fr60lite

Table of Contents