Code:
OPA1CON = %1100000          ' Opamp 1 Enabled, SP set.
Isn't that missing a bit?
Try
Code:
OPA1CON = %11000000          ' Opamp 1 Enabled, SP set.
For OPAMP1 you have
Code:
' RC2  (pin 8)    AN6, Opamp1Out.       ### output - see notes.
' RC1  (pin 9)    AN5, Opamp1in-.       Junction of RF and RG.
' RC0  (pin 10)   AN4, Opamp1in+.       + sense of 0R1 series load resistor.
So, to use these for the opamp:
- set the TRIS bits for RC0, RC1, and RC2
- set ANSEL bits for AN4, AN5, and AN6