Isn't that missing a bit?Code:OPA1CON = %1100000 ' Opamp 1 Enabled, SP set.
Try
For OPAMP1 you haveCode:OPA1CON = %11000000 ' Opamp 1 Enabled, SP set.
So, to use these for the opamp: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.
- set the TRIS bits for RC0, RC1, and RC2
- set ANSEL bits for AN4, AN5, and AN6




Bookmarks