How to use the build-in comparator of a PIC