English
Language : 

PIC32MX440F256H-80I Datasheet, PDF (365/646 Pages) Microchip Technology – 64/100-Pin General Purpose and USB 32-Bit Flash Microcontrollers
PIC32MX3XX/4XX
Note: It is recommended that the user disable (i.e.,
clear ON bit, ICxCON<15>) the capture
module before switching to Prescaler Cap-
ture Event mode. Simply switching to Pres-
caler Capture Event mode from another
active mode does not reset the prescaler
and may cause an inadvertent capture
event.
Figure 15-3 depicts a capture event when the input
capture module is in Prescaler Capture Event mode.
FIGURE 15-3:
PRESCALER CAPTURE EVENT TIMING DIAGRAM
TPB
Peripheral Clock
Timer Count
Capture Input
n
TICX_IN_L
TICX_IN_H
n+1
n+2
n+3
n+4
Prescaler Count
1
2
3
4
Prescaler Output
Synchronized Capture
Capture Data
n+2
Capture Interrupt
15.4 Edge Detect (Hall Sensor) Mode
In Edge Detect mode, the input capture module cap-
tures a timer count value on every edge of the capture
input. Edge Detect mode is selected by setting the ICM
bit to ‘001’. In this mode, the capture prescaler is not
used and the capture overflow bit, ICOV (ICxCON<4>)
is not updated. In this mode, the Interrupt Control bits
(ICI, ICxCON<6:5>) are ignored and an interrupt event
is generated for every timer count capture
15.5 Interrupt Only Mode
When the Input Capture module is set for Interrupt
Only mode (ICM = ‘111’) and the device is in Sleep or
Idle mode, the capture input functions as an interrupt
pin. Any rising edge on the capture input triggers an
interrupt. No timer values are captured and the FIFO
buffer is not updated. When the device leaves Sleep or
Idle mode, the interrupt signal is deasserted.
In this mode, since no timer values are captured, the
Timer Select bit ICTMR (ICxCON<7>) is ignored and
there is no need to configure the timer source. A wake-
up interrupt is generated on the first rising edge, there-
fore the Interrupt Control bits ICI (ICxCON<6:5>) are
also ignored. The prescaler is not used in this mode.
© 2008 Microchip Technology Inc.
Preliminary
DS61143E-page 363