MB90480/485 Series
(3) Input Capture
The input capture module performs the functions of detecting the rising edge, falling edge, or both edges of
signal input from external circuits, and saving the 16-bit free run timer value at that moment to a register. An
interrupt can also be generated at the instant of edge detection.
The input capture module consists of input capture registers and a control register. Each input capture module
has its own external input pin.
• Selection of three types of valid edge for external input signals.
Rising edge, falling edge, both edges.
• An interrupt can be generated when a valid edge is detected in the external input signal.
• Register List
Input capture data register (IPCP0, IPCP1)
Initial value
15
CP15
R
14
CP14
R
13
CP13
R
12
CP12
R
11
CP11
R
10
CP10
R
9
CP09
R
8
CP08
R
XXXXXXXXB
00005DH
00005FH
Initial value
7
CP07
R
6
CP06
R
5
CP05
R
4
3
CP03
R
2
CP02
R
1
CP01
R
0
CP00
R
XXXXXXXXB
00005CH
00005EH
CP04
R
Input capture control status register (ICS01)
Initial value
00000000B
7
6
5
4
3
2
1
0
000060H
ICP1
R/W
ICP0
R/W
ICE1
R/W
ICE0
R/W
EG11
R/W
EG10
R/W
EG01
R/W
EG00
R/W
• Block Diagram
IN0
Edge detection
Capture data register 0
16-bit timer counter value (T15 to T00)
Capture data register 1
EG11 EG10 EG01 EG00
IN1
Edge detection
ICP1 ICP0 ICE1 ICE0
Interrupt
Interrupt
56