I have ran the code and it checks out. The ADC and Comparator module works together. I did not use the same pins for the same function. PIC16F873A here is a part of the code I used: movlw B'000000' call PROC_ADC_INIT movlw B'00000110' call PROC_COMPARATOR_INIT loop_output: nop movlw .1 call PROC_COMPARATOR_OUTPUT movlw .2 call PROC_ADC_SAMPLING nop goto loop_output call PROC_COMPARATOR_SHUTDOWN call PROC_ADC_SHUTDOWN John --- Jan-Erik Soderholm wrote: > John Chung wrote : > > > Yes! A positive reply! Thanks Dwayne. > > > > John > > Well... :-) > Dwayne replied about two completely different PICs, > so you > still have to check this with your specific PIC, > which > from another post from you seems to be a 16F87xA, > right ? > > When checking the 87xA data sheet, it seems as there > is > no specific selection between ADC and comparators. > As long > as a pin is configured as analog input, it can be > used > by the ADC and the comparator(s) at the same time. > Anyway, that is what it looks like... :-) > > Jan-Erik. > > > > -- > http://www.piclist.com PIC/SX FAQ & list archive > View/change your membership options at > http://mailman.mit.edu/mailman/listinfo/piclist > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist