![](http://datasheet.mmic.net.cn/330000/MB90P224A_datasheet_16438134/MB90P224A_50.png)
MB90220 Series
50
9. OCU (Output Compare Unit)
The Output Compare Unit consists of a 24-bit output compare register, a comparator, and a control register.
The match detection signal is output when the contents of the output compare register match the contents of
the 24-bit timer counter. This match detection signal can be used to change the output value of the corresponding
pin, or can be used to generate an interrupt. One block consists of four output compare units, and the four
output compare registers use one comparator to perform time division comparisons.
(1) Register Configuration
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
000061
H
000063
H
(—)
(—)
(—)
(—)
(R/W)
(R/W)
(R/W)
(R/W)
(—)
(—)
(—)
(—)
(R/W)
(R/W)
(R/W)
(R/W)
—
—
—
—
MD3
MD2
MD1
MD0
000060
H
000062
H
SEL3
SEL2
SEL1
SEL0
CPE3
CPE2
CPE1
CPE0
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
000069
H
00006B
H
ICE3
ICE2
ICE1
ICE0
IC3
IC2
IC1
IC0
000068
H
00006A
H
—
—
—
—
DOT3
DOT2
DOT1
DOT0
001F11
H
001F15
H
001F19
H
001F1D
H
001F21
H
001F25
H
001F29
H
001F2D
H
001F10
H
001F14
H
001F18
H
001F1C
H
001F20
H
001F24
H
001F28
H
001F2C
H
—
—
CCR00
CCR02
CCR00
CCR02
- - - - 0000
CCR10
CCR11
11110000
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
CCR10
CCR11
00000000
- - - - 0000
CPR00L
CPR01L
CPR02L
CPR03L
CPR04L
CPR05L
CPR06L
CPR07L
CPR00L
CPR01L
CPR02L
CPR03L
CPR04L
CPR05L
CPR06L
CPR07L
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
00000000
00000000
Register name Address
Register name Address
Register name Address
Register name Address
Register name Address
Register name Address
Initial value
Initial value
Initial value
Initial value
Initial value
Initial value
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
(R/W)
OCUO Control Register 00, 01 (CCR00, 01)
OCUO Control Register 10, 11 (CCR10, 11)
OCU Compare Low-order Data Register 00 to 07 (CPR00L to CPR07L)