Техническая Спецификация для Microchip Technology AC164335
2006-2014 Microchip Technology Inc.
DS70000178D-page 97
dsPIC30F1010/202X
10.0
INPUT CAPTURE MODULE
This section describes the Input Capture module and
associated operational modes. The features provided
by this module are useful in applications requiring Fre-
quency (Period) and Pulse measurement. Figure 10-1
depicts a block diagram of the Input Capture module.
Input capture is useful for such modes as:
associated operational modes. The features provided
by this module are useful in applications requiring Fre-
quency (Period) and Pulse measurement. Figure 10-1
depicts a block diagram of the Input Capture module.
Input capture is useful for such modes as:
• Frequency/Period/Pulse Measurements
• Additional sources of External Interrupts
The key operational features of the Input Capture
module are:
module are:
• Simple Capture Event mode
• Timer2 and Timer3 mode selection
• Interrupt on input capture event
These operating modes are determined by setting the
appropriate bits in the ICxCON register (where x =
1,2,...,N). The dsPIC DSC devices contain up to 8
capture channels, (i.e., the maximum value of N is 8).
appropriate bits in the ICxCON register (where x =
1,2,...,N). The dsPIC DSC devices contain up to 8
capture channels, (i.e., the maximum value of N is 8).
FIGURE 10-1:
INPUT CAPTURE MODE BLOCK DIAGRAM
Note: This data sheet summarizes features of this group
of dsPIC30F devices and is not intended to be a complete
reference source. For more information on the CPU,
peripherals, register descriptions and general device
functionality, refer to the “dsPIC30F Family Reference
Manual” (DS70046).
of dsPIC30F devices and is not intended to be a complete
reference source. For more information on the CPU,
peripherals, register descriptions and general device
functionality, refer to the “dsPIC30F Family Reference
Manual” (DS70046).
Note:
The dsPIC30F1010 devices does not fea-
ture a Input Capture module. The
dsPIC30F202X devices have one capture
input – IC1. The naming of this capture
channel is intentional and preserves soft-
ware compatibility with other dsPIC DSC
devices.
ture a Input Capture module. The
dsPIC30F202X devices have one capture
input – IC1. The naming of this capture
channel is intentional and preserves soft-
ware compatibility with other dsPIC DSC
devices.
ICxBUF
Prescaler
ICx
ICM<2:0>
Mode Select
3
Note:
Where ‘x’ is shown, reference is made to the registers or bits associated to the respective input
capture channels 1 through N.
capture channels 1 through N.
1
0
Set Flag
Pin
ICxIF
ICTMR
T2_CNT
T3_CNT
Edge
Detection
Logic
Clock
Synchronizer
1, 4, 16
From General Purpose Timer Module
16
16
FIFO
R/W
Logic
ICI<1:0>
ICBNE, ICOV
ICxCON
Interrupt
Logic
Set Flag
ICxIF
ICxIF
Data Bus