I'm relatively new to PICBasic Pro. I am having a very hard time initializing the comparator and then using it. I want to run a test using the 12F683's comparator and a digital pot as a reference voltage. The digital pot would be programmed by a 16F877 running the main program while the 12F683 will be running monitor program and send an interrupt to the 877 when the comparator is toggled. I would like the output of the comparator to be available outside the PIC. In reading the spec I found that "CMCON0 = 1" is the only thing I could find to initialize the comparator. After this I am at a loss for how to use the comparator. If anyone can help or point me to a webpage or an article I would be forever greatful. Thanks in advance.