Microchip Technology DM240015 Data Sheet
PIC24FJ128GC010 FAMILY
DS30009312B-page 378
2012-2013 Microchip Technology Inc.
REGISTER 29-1:
AMPxCON: OP AMP x CONTROL REGISTER
R/W-0
U-0
R/W-0
R/W-0
R/W-0
R-0
R-x
R/W-0
AMPEN
—
AMPSIDL
AMPSLP
INTPOL1
INTPOL0
CMOUT
CMPSEL
bit 15
bit 8
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
R/W-0
SPDSEL
AMPOE
NINSEL2
NINSEL1
NINSEL0
PINSEL2
PINSEL1
PINSEL0
bit 7
bit 0
Legend:
R = Readable 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
AMPEN:
Op Amp Control Module Enable bit
1
= Module is enabled
0
= Module is disabled
bit 14
Unimplemented:
Read as ‘0’
bit 13
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
bit 12
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
bit 11-10
INTPOL<1:0>:
Interrupt Mode Select bits
When CMPSEL = 1:
11
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.
Op amp interrupts are not generated.
bit 9
CMOUT:
Comparator Mode Output State bit
When CMPSEL = 1:
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).
Op Amp mode (no digital state information is generated).
bit 8
CMPSEL:
Op Amp Mode Select bit
1
= Configured as a comparator
0
= Configured as an op amp
bit 7
SPDSEL:
Op Amp/Comparator Power/Speed Select bit
1
= Higher power and bandwidth (faster response time)
0
= Lower power and bandwidth (slower response time)
bit 6
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)