enkavak
Newbie level 5
Hi there
I'm trying to use the analog comparator module of PIC18F2550, but it does not work. Is there anyone who worked with comparator modules of PIC family. Here is my code sample.
setup_comparator(A0_A3_A1_A3);
setup_vref(VREF_HIGH|15);
enable_interrupts(INT_COMP);
enable_interrupts(GLOBAL);
I'm trying to use the analog comparator module of PIC18F2550, but it does not work. Is there anyone who worked with comparator modules of PIC family. Here is my code sample.
setup_comparator(A0_A3_A1_A3);
setup_vref(VREF_HIGH|15);
enable_interrupts(INT_COMP);
enable_interrupts(GLOBAL);