CHAPTER 14 16-BIT I/O TIMER
14.5
Input Capture Unit
The Input Capture Unit (ICU) detects a rising or falling edge or both edges of an external
input signal and stores a 16-bit Free-Running Timer value at that time in a register. In
addition, the Input Capture Unit can generate an interrupt upon detection of an edge. One
Input Capture Unit consists of two input capture registers and one control register.
■ Features of the Input Capture Unit
●
The valid edge of an external input can be selected from the following three types:
Table 14.5-1 Types of external input edges
Rising edge
Falling edge
Both edges
●
An interrupt can be generated upon detection of a valid edge of an external input.
■ Input Capture Unit block diagram
Figure 14.5-1 "Input Capture Unit block diagram" shows a block diagram of the Input Capture Unit.
Bus
Note: The figure above is also valid for Input Capture Unit 2/3,...
388
Figure 14.5-1 Input Capture Unit block diagram
Capture data register 0
Count value from Free-Running Timer
Capture data register 1
MB96300 Super Series Hardware Manual
Edge detection
EG11 EG10 EG01
Edge detection
IPC1 IPC0
ICE1
ICE0
IN0
EG00
IEI1
IEI0
IN1
Interrupt
Interrupt