Microchip Technology MA330031-2 Hoja De Datos

Descargar
Página de 530
 2011-2013 Microchip Technology Inc.
DS70000657H-page 215
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
14.2
Input Capture Registers 
REGISTER 14-1:
ICxCON1: INPUT CAPTURE x CONTROL REGISTER 1
U-0
U-0
R/W-0
R/W-0
R/W-0
R/W-0
U-0
U-0
ICSIDL
ICTSEL2
ICTSEL1
ICTSEL0
bit 15
bit 8
U-0
R/W-0
R/W-0
R/HC/HS-0
R/HC/HS-0
R/W-0
R/W-0
R/W-0
ICI1
ICI0
ICOV
ICBNE
ICM2
ICM1
ICM0
bit 7
bit 0
Legend:
HC = Hardware Clearable bit
HS = Hardware Settable bit
R = 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 unknown
bit 15-14 
Unimplemented:
 Read as ‘0’
bit 13
ICSIDL:
 Input Capture Stop in Idle Control bit 
1
 = Input capture will Halt in CPU Idle mode
0
 = Input capture will continue to operate in CPU Idle mode
bit 12-10
ICTSEL<2:0>:
 Input Capture Timer Select bits
111
 = Peripheral clock (F
P
) is the clock source of the ICx
110
 = Reserved
101
 = Reserved
100
 = T1CLK is the clock source of the ICx (only the synchronous clock is supported)
011
 = T5CLK is the clock source of the ICx
010
 = T4CLK is the clock source of the ICx
001
 = T2CLK is the clock source of the ICx
000
 = T3CLK is the clock source of the ICx
bit 9-7
Unimplemented:
 Read as ‘0’
bit 6-5
ICI<1:0>: 
Number of Captures per Interrupt Select bits (this field is not used if ICM<2:0> = 001 or 111)
11
 = Interrupt on every fourth capture event
10
 = Interrupt on every third capture event
01
 = Interrupt on every second capture event
00
 = Interrupt on every capture event
bit 4
ICOV:
 Input Capture Overflow Status Flag bit (read-only)
1
 = Input capture buffer overflow occurred
0
 = No input capture buffer overflow occurred
bit 3
ICBNE:
 Input Capture Buffer Not Empty Status bit (read-only)
1
 = Input capture buffer is not empty, at least one more capture value can be read
0
 = Input capture buffer is empty
bit 2-0
ICM<2:0>: 
Input Capture Mode Select bits
111
 = Input capture functions as interrupt pin only in CPU Sleep and Idle modes (rising edge detect
only, all other control bits are not applicable)
110
 = Unused (module is disabled)
101
 = Capture mode, every 16th rising edge (Prescaler Capture mode)
100
 = Capture mode, every 4th rising edge (Prescaler Capture mode)
011
 = Capture mode, every rising edge (Simple Capture mode)
010
 = Capture mode, every falling edge (Simple Capture mode)
001
 = Capture mode, every edge rising and falling (Edge Detect mode (ICI<1:0>) is not used in this mode)
000
 = Input capture module is turned off