English
Language : 

DSPIC33EP256GP506-I Datasheet, PDF (213/510 Pages) Microchip Technology – 16-bit Microcontrollers and Digital Signal Controllers
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X, AND PIC24EPXXXGP/MC20X
14.0 INPUT CAPTURE
Note 1: This data sheet summarizes the features
of the dsPIC33EPXXXGP50X,
dsPIC33EPXXXMC20X/50X,
and
PIC24EPXXXGP/MC20X families of
devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to Section 12. “Input Cap-
ture” (DS70352) of the “dsPIC33E/
PIC24E Family Reference Manual”,
which is available from the Microchip web
site (www.microchip.com).
2: Some registers and associated bits
described in this section may not be
available on all devices. Refer to
Section 4.0 “Memory Organization” in
this data sheet for device-specific register
and bit information.
The Input Capture module is useful in applications
requiring frequency (period) and pulse measurement.
The dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/
50X, and PIC24EPXXXGP/MC20X devices support up
to four input capture channels.
Key features of the Input Capture module include:
• Hardware-configurable for 32-bit operation in all
modes by cascading two adjacent modules
• Synchronous and Trigger modes of output
compare operation, with up to 31 user-selectable
trigger/sync sources available
• A 4-level FIFO buffer for capturing and holding
timer values for several events
• Configurable interrupt generation
• Up to six clock sources available for each module,
driving a separate internal 16-bit counter
FIGURE 14-1:
INPUT CAPTURE MODULE BLOCK DIAGRAM
ICM<2:0>
CTMU Edge-control
ICI<1:0>
Logic
ICx Pin
Prescaler
Counter
1:1/4/16
ICTSEL<2:0>
Edge Detect Logic
and
Clock Synchronizer
Event and
Interrupt
Logic
Set ICxIF
PTG Trigger
Input
Increment
16
IC Clock
Sources
Clock
Select
ICxTMR
4-Level FIFO Buffer
16
Trigger and
Sync Sources
Trigger and Reset
Sync Logic
SYNCSEL<4:0>
Trigger(1)
16
ICxBUF
ICOV, ICBNE
System Bus
Note 1: The Trigger/Sync source is enabled by default and is set to Timer3 as a source. This timer must be enabled for
proper ICx module operation or the Trigger/Sync source must be changed to another source option.
© 2011-2012 Microchip Technology Inc.
Preliminary
DS70657E-page 213