I'm trying to use Port F on the PIC18F65J11 as both analog inputs and a comparator. For example, there are 7 pins on Port F, and I'd use 3 pins for comparator (2 comparator inputs, 1 comparator output) and the rest for analog inputs.
I know that you can configure it so that comparators are enabled, or you can turn of comparators. I'm reading the data sheet, and I'm confused how to configure it so that I can use comparator and analog inputs on Port F at the same time, if that's possible.
For reference, here's the data sheet: http://ww1.microchip.com/downloads/en/DeviceDoc/39774d.pdf. Page 143 talks about Port F. Page 260 talks about analog inputs. Page 270 talks about comparator module.