10.07.2015 Views

pic24fj128ga010 family - Microchip

pic24fj128ga010 family - Microchip

pic24fj128ga010 family - Microchip

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

PIC24FJ128GA010 FAMILY12.1 Input Capture RegistersREGISTER 12-1:ICxCON: INPUT CAPTURE x CONTROL REGISTERU-0 U-0 R/W-0 U-0 U-0 U-0 U-0 U-0— — ICSIDL — — — — —bit 15 bit 8R/W-0 R/W-0 R/W-0 R-0, HC R/W-0, HC R/W-0 R/W-0 R/W-0ICTMR (1) ICI1 ICI0 ICOV ICBNE ICM2 ICM1 ICM0bit 7 bit 0Legend:HC = Hardware ClearableR = Readable bit W = Writable bit U = Unimplemented bit, read as ‘0’-n = Value at POR ‘1’ = Bit is set ‘0’ = Bit is cleared x = Bit is unknownbit 15-14 Unimplemented: Read as ‘0’bit 13 ICSIDL: Input Capture x Module Stop in Idle Control bit1 = Input capture module will halt in CPU Idle mode0 = Input capture module will continue to operate in CPU Idle modebit 12-8 Unimplemented: Read as ‘0’bit 7 ICTMR: Input Capture x Timer Select bit (1)bit 6-5bit 4bit 3bit 2-01 = TMR2 contents are captured on capture event0 = TMR3 contents are captured on capture eventICI1:ICI0: Select Number of Captures per Interrupt bits11 = Interrupt on every fourth capture event10 = Interrupt on every third capture event01 = Interrupt on every second capture event00 = Interrupt on every capture eventICOV: Input Capture x Overflow Status Flag bit (read-only)1 = Input capture overflow occurred0 = No input capture overflow occurredICBNE: Input Capture x Buffer Empty Status bit (read-only)1 = Input capture buffer is not empty, at least one more capture value can be read0 = Input capture buffer is emptyICM2:ICM0: Input Capture x Mode Select bits111 = Input capture functions as interrupt pin only when device is in Sleep or Idle mode (rising edgedetect only, all other control bits are not applicable)110 = Unused (module disabled)101 = Capture mode, every 16th rising edge100 = Capture mode, every 4th rising edge011 = Capture mode, every rising edge010 = Capture mode, every falling edge001 = Capture mode, every edge (rising and falling) – ICI does not control interrupt generationfor this mode000 = Input capture module turned offNote 1:Timer selections may vary. Refer to the device data sheet for details.DS39747E-page 114© 2009 <strong>Microchip</strong> Technology Inc.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!