
MB90520 Series
50
(3) Output Compare 0, 1 (OCU)
The output compare (OCU) is two sets of compare units each consisting of an eight-channel OCU compare
register, a comparator and a control register.
An interrupt request can be generated for each channel upon a match detection by performing time-division
comparison between the OCU compare data register setting value and the counter value of the 16-bit free-run
timer.
The OUT pin can be used as a waveform output pin for reversing output upon a match detection or a general-
purpose output port for directly outputting the setting value of the CMOD bit.
Register Configuration
—
CMOD OTE1
OTE0
OTD1
OTD0
OCU control status register ch.01, ch.23, ch.45, ch.67 (OCS01, OCS23, OCS45, OCS67)
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
—
R/W
Address
ICP1
ICP0
ICE1
ICE0
—
CST1
CST0
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
R/W
—
R/W
C15C14
C13C12
C11C10
C09C08
OCU control status register ch.0 to ch.7 (OCS0 to OCS7)
bit 15
bit 14
bit 13
bit 12
bit 11
bit 10
bit 9
bit 8
R/W
C07
C06
C05
C04
C03
C02
C01
C00
bit 7
bit 6
bit 5
bit 4
bit 3
bit 2
bit 1
bit 0
R/W
R/W : Readable and writable
X : Indeterminate
— : Undefined bits (read value undefined)
ch.01 : OCS01 (upper) : 0000063H
ch.23 : OCS23 (upper) : 0000065H
ch.45 : OCS45 (upper) : 000002DH
ch.67 : OCS67 (upper) : 000002FH
Address
ch.01 : OCS01 (lower) : 000062H
ch.23 : OCS23 (lower) : 000064H
ch.45 : OCS45 (lower) : 00002CH
ch.67 : OCS67 (lower) : 00002EH
Address
ch.0 : OCP0 (upper) : 00005BH
ch.1 : OCP1 (upper) : 00005DH
ch.2 : OCP2 (upper) : 00005FH
ch.3 : OCP3 (upper) : 000061H
ch.4 : OCP4 (upper) : 00000DH
ch.5 : OCP5 (upper) : 00001DH
ch.6 : OCP6 (upper) : 000035H
ch.7 : OCP7 (upper) : 00006DH
Address
ch.0 : OCP0 (lower) : 00005AH
ch.1 : OCP1 (lower) : 00005CH
ch.2 : OCP2 (lower) : 00005EH
ch.3 : OCP3 (lower) : 000060H
ch.4 : OCP4 (lower) : 00000CH
ch.5 : OCP5 (lower) : 00001CH
ch.6 : OCP6 (lower) : 000034H
ch.7 : OCP7 (lower) : 00006CH
XXX00000 B
Initial value
0000XX00 B
Initial value
XXXXXXXX B
Initial value
XXXXXXXX B
Initial value