English
Language : 

PIC24F08KA102-I Datasheet, PDF (123/278 Pages) Microchip Technology – 20/28-Pin General Purpose, 16-Bit Flash Microcontrollers with nanoWatt XLP Technology
PIC24F16KA102 FAMILY
14.0 INPUT CAPTURE
Note:
This data sheet summarizes the features
of this group of PIC24F devices. It is not
intended to be a comprehensive
reference source. For more information
on Input Capture, refer to the “PIC24F
Family Reference Manual”, Section 15.
“Input Capture” (DS39701).
The input capture module is used to capture a timer
value from one of two selectable time bases upon an
event on an input pin.
The input capture features are quite useful in
applications requiring frequency (Time Period) and
pulse measurement. Figure 14-1 depicts a simplified
block diagram of the input capture module.
The PIC24F16KA102 family devices have one input
capture channel. The input capture module has
multiple operating modes, which are selected via the
IC1CON register. The operating modes include:
• Capture timer value on every falling edge of input
applied at the IC1 pin
• Capture timer value on every rising edge of input
applied at the IC1 pin
• Capture timer value on every 4th rising edge of
input applied at the IC1 pin
• Capture timer value on every 16th rising edge of
input applied at the IC1 pin
• Capture timer value on every rising and every
falling edge of input applied at the IC1 pin
• Device wake-up from capture pin during CPU
Sleep and Idle modes
The input capture module has a four-level FIFO buffer.
The number of capture events required to generate a
CPU interrupt can be selected by the user.
FIGURE 14-1:
INPUT CAPTURE BLOCK DIAGRAM
From 16-Bit Timers
TMRy TMRx
IC1 Pin
Prescaler
Counter
(1, 4, 16)
Edge Detection Logic
Clock Synchronizer
3 ICM<2:0> (IC1CON<2:0>)
Mode Select
ICOV, ICBNE (IC1CON<4:3>)
ICI<1:0>
IC1CON
FIFO
R/W
Logic
Interrupt
Logic
16 16
1
0
ICTMR
(IC1CON<7>)
IC1BUF
System Bus
Set Flag IC1IF
(in IFSn Register)
 2008-2011 Microchip Technology Inc.
DS39927C-page 123