PIC32MX210F016B-I/SO Microchip Technology, PIC32MX210F016B-I/SO Datasheet - Page 159

no-image

PIC32MX210F016B-I/SO

Manufacturer Part Number
PIC32MX210F016B-I/SO
Description
PIC32, 16KB Flash, 4KB RAM, 40 MHz, USB, CTMU, 4 DMA 28 SOIC .300in TUBE
Manufacturer
Microchip Technology
Datasheet
14.0
The Input Capture module is useful in applications
requiring frequency (period) and pulse measurement.
The Input Capture module captures the 16-bit or 32-bit
value of the selected Time Base registers when an
event occurs at the ICx pin. The following events cause
capture events:
FIGURE 14-1:
© 2011-2012 Microchip Technology Inc.
Note 1: This data sheet summarizes the features
2: Some registers and associated bits
INPUT CAPTURE
ICx pin
Note: An ‘x’ in a signal, register or bit name denotes the number of the capture channel.
of the PIC32MX1XX/2XX family of
devices. It is not intended to be a
comprehensive reference source. To
complement the information in this data
sheet, refer to Section 15. “Input
Capture” (DS61122) of the “PIC32
Family Reference Manual”, which is
available from the Microchip web site
(www.microchip.com/PIC32).
described in this section may not be
available on all devices. Refer to
Section 4.0 “Memory Organization”
this data sheet for device-specific register
and bit information.
INPUT CAPTURE BLOCK DIAGRAM
Falling Edge Mode
(16th Rising Edge)
Rising Edge Mode
(4th Rising Edge)
Specified/Every
Prescaler Mode
Prescaler Mode
Edge Detection
Wake-up Mode
Edge Mode
Sleep/Idle
Mode
FEDGE
Preliminary
in
100
101
011
110
010
001
ICM<2:0>
CaptureEvent
C32/ICTMR
1.
2.
3.
4.
Each input capture channel can select between one of
two 16-bit timers (Timer2 or Timer3) for the time base,
or two 16-bit timers (Timer2 and Timer3) together to
form a 32-bit timer. The selected timer can use either
an internal or external clock.
Other operational features include:
• Device wake-up from capture pin during CPU
• Interrupt on input capture event
• 4-word FIFO buffer for capture values
• Input capture can also be used to provide
Sleep and Idle modes
Interrupt optionally generated after 1, 2, 3 or 4
buffer locations are filled
additional sources of external interrupts
Simple capture event modes
- Capture timer value on every falling edge of
- Capture timer value on every rising edge of
Capture timer value on every edge (rising and
falling)
Capture timer value on every edge (rising and
falling), specified edge first.
Prescaler capture event modes
- Capture timer value on every 4th rising
- Capture timer value on every 16th rising
edge of input at ICx pin
edge of input at ICx pin
input at ICx pin
input at ICx pin
FIFO CONTROL
TMR2 TMR3
ICxBUF
ICI<1:0>
PIC32MX1XX/2XX
/N
FIFO
ICM<2:0>
001
111
To CPU
(In IFSx Register)
Set Flag ICxIF
DS61168D-page 159

Related parts for PIC32MX210F016B-I/SO