English
Language : 

PIC24FJ128GC010 Datasheet, PDF (378/472 Pages) Microchip Technology – 16-Bit Flash Microcontrollers with 12-Bit Pipeline A/D, Sigma-Delta A/D, USB On-The-Go and XLP Technology
PIC24FJ128GC010 FAMILY
REGISTER 29-1: AMPxCON: OP AMP x CONTROL REGISTER
R/W-0
AMPEN
bit 15
U-0
R/W-0
R/W-0
R/W-0
R-0
—
AMPSIDL AMPSLP INTPOL1 INTPOL0
R-x
CMOUT
R/W-0
CMPSEL
bit 8
R/W-0
SPDSEL
bit 7
R/W-0
AMPOE
R/W-0
NINSEL2
R/W-0
NINSEL1
R/W-0
NINSEL0
R/W-0
PINSEL2
R/W-0
PINSEL1
R/W-0
PINSEL0
bit 0
Legend:
R = Readable bit
-n = Value at POR
W = Writable bit
‘1’ = Bit is set
U = Unimplemented bit, read as ‘0’
‘0’ = Bit is cleared
x = Bit is unknown
bit 15
bit 14
bit 13
bit 12
bit 11-10
bit 9
bit 8
bit 7
bit 6
AMPEN: Op Amp Control Module Enable bit
1 = Module is enabled
0 = Module is disabled
Unimplemented: Read as ‘0’
AMPSIDL: Op Amp Peripheral Stop in Idle Mode bit
1 = Discontinues module operation when device enters Idle mode
0 = Continues module operation in Idle mode
AMPSLP: Op Amp Peripheral Enabled in Sleep Mode bit
1 = Continues module operation when device enters Sleep mode
0 = Discontinues module operation in Sleep mode
INTPOL<1:0>: Interrupt Mode Select bits
When CMPSEL = 1:
11 = Interrupt occurs on any change
10 = Interrupt occurs on negative edge
01 = Interrupt occurs on positive edge
00 = Interrupts are disabled
When CMPSEL = 0:
Op amp interrupts are not generated.
CMOUT: Comparator Mode Output State bit
When CMPSEL = 1:
1 = Non-inverting input is greater than the inverting input
0 = Non-inverting input is less than the inverting input
When CMPSEL = 0:
Op Amp mode (no digital state information is generated).
CMPSEL: Op Amp Mode Select bit
1 = Configured as a comparator
0 = Configured as an op amp
SPDSEL: Op Amp/Comparator Power/Speed Select bit
1 = Higher power and bandwidth (faster response time)
0 = Lower power and bandwidth (slower response time)
AMPOE: Amplifier Output Enable bit
1 = Amplifier or comparator output is sent to OAxOUT pin
0 = Amplifier or comparator output is not sent to OAxOUT (pin is controlled by TRISx and LATx bits)
DS30009312B-page 378
 2012-2013 Microchip Technology Inc.