![](http://datasheet.mmic.net.cn/330000/MB90P224A_datasheet_16438134/MB90P224A_54.png)
MB90220 Series
54
10. ICU (Input Capture Unit)
This module detects either the rising edge, falling edge, or both edges of an externally input waveform and holds
the value of the 24-bit timer counter at that time, while at the same time the module generates an interrupt
request for the CPU. The module consists of a 24-bit input capture data register and a control register. There
are four external input pins (ASR0 to ASR3); the operation of each input is described below.
ASR0 to ASR3: Each of these input pins has a corresponding input capture register. When the specified
valid edge (
↑
or
↓
or
↑
↓
) is detected, the register can be used to store the 24-bit timer
counter value.
(1) Register Configuration
000058
H
EG3B
EG3A
EG2B
EG2A
EG1B
EG1A
EG0B
EG0A
00005A
H
IRE3
IRE2
IRE1
IRE0
IR3
IR2
IR1
IR0
001F50
H
001F54
H
001F58
H
001F5C
H
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
D07
D06
D05
D04
D03
D02
D01
D00
D15
D14
D13
D12
D11
D10
D09
bit15
bit14
bit13
bit12
bit11
bit10
bit9
D08
bit8
001F52
H
001F56
H
001F5A
H
001F5E
H
D23
D22
D21
D20
D19
D18
D17
D16
—
—
—
—
—
—
—
—
ICCO
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
ICCI
00000000
B
00000000
B
ICRL0
ICRL1
ICRL2
ICRL3
XXXXXXXX
B
001F51
H
001F55
H
001F59
H
001F5D
H
ICRL0
ICRL1
ICRL2
ICRL3
XXXXXXXX
B
ICRH0
ICRH1
ICRH2
ICRH3
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
bit7
bit6
bit5
bit4
bit3
bit2
bit1
bit0
bit15
bit14
bit13
bit12
bit11
bit10
bit9
bit8
XXXXXXXX
B
00000000
B
001F53
H
001F57
H
001F5B
H
001F5F
H
ICRH0
ICRH1
ICRH2
ICRH3
Register name Address
Register name Address
Register name Address
Register name Address
Register name Address
Register name Address
(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)
Initial value
Initial value
Initial value
Initial value
Initial value
Initial value
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
(R)
ICU Control Register 0 (ICC0)
ICU Control Register 1 (ICC1)
ICU Low-order Data Register (ICRL0 to ICRL3)
ICU High-order Data Register (ICRH0 to ICRH3)