Microchip Technology MA330031-2 Data Sheet

Page of 530
dsPIC33EPXXXGP50X, dsPIC33EPXXXMC20X/50X AND PIC24EPXXXGP/MC20X
DS70000657H-page 318
 2011-2013 Microchip Technology Inc.
 
REGISTER 22-2:
CTMUCON2: CTMU CONTROL REGISTER 2
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
EDG1MOD
EDG1POL
EDG1SEL3
EDG1SEL2
EDG1SEL1
EDG1SEL0
EDG2STAT
EDG1STAT
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
U-0
U-0
EDG2MOD
EDG2POL
EDG2SEL3
EDG2SEL2
EDG2SEL1
EDG2SEL0
bit 7
bit 0
Legend:
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
EDG1MOD: 
Edge 1 Edge Sampling Mode Selection bit
1
 = Edge 1 is edge-sensitive
0
 = Edge 1 is level-sensitive
bit 14
EDG1POL:
 Edge 1 Polarity Select bit
1
 = Edge 1 is programmed for a positive edge response
0
 = Edge 1 is programmed for a negative edge response
bit 13-10
EDG1SEL<3:0>:
 Edge 1 Source Select bits
1xxx
 = Reserved
01xx
 = Reserved
0011
 = CTED1 pin
0010
 = CTED2 pin
0001
 = OC1 module
0000
 = Timer1 module
bit 9
EDG2STAT:
 Edge 2 Status bit
Indicates the status of Edge 2 and can be written to control the edge source.
1
 = Edge 2 has occurred
0
 = Edge 2 has not occurred
bit 8
EDG1STAT:
 Edge 1 Status bit
Indicates the status of Edge 1 and can be written to control the edge source.
1
 = Edge 1 has occurred
0
 = Edge 1 has not occurred
bit 7
EDG2MOD:
 Edge 2 Edge Sampling Mode Selection bit
1
 = Edge 2 is edge-sensitive
0
 = Edge 2 is level-sensitive
bit 6
EDG2POL:
 Edge 2 Polarity Select bit
1
 = Edge 2 is programmed for a positive edge response
0
 = Edge 2 is programmed for a negative edge response
bit 5-2
EDG2SEL<3:0>:
 Edge 2 Source Select bits
1111
 = Reserved
01xx
 = Reserved
0100
 = CMP1 module
0011
 = CTED2 pin
0010
 = CTED1 pin
0001
 = OC1 module
0000
 = IC1 module
bit 1-0
Unimplemented:
 Read as ‘0’