7.6
Explanation of Operation of Input Capture
When the input capture detects the edge of the external signal input to the input pins, it
stores the count value of the 16-bit free-run timer in the input capture data registers.
I Setting of Input Capture
Operation of the input capture requires the setting shown in Figure 7.6-1
ICS
IPCP
DDR port
direction register
: Using bit
Figure 7.6-1 Setting of Input Capture
bit15 14
13
12
11
Hold counter value of 16-bit free-run timer
10
9
bit8 bit7
6
ICP1ICP0 ICE1
Setting the corresponding bit using pin
as capture input pin to "0"
CHAPTER 7 16-bit I/O timer
5
4
3
2
1
bit0
ICE0 EG11
EG10
EG01 EG00
239