Yes! A positive reply! Thanks Dwayne. John --- Dwayne Reid wrote: > At 11:43 AM 9/10/2006, John Chung wrote: > >I would like to double check with you guys. I have > the > >ADC working but now I want the comparator module > which > >use RA0-5 pins....... Can I use the same pins for > >different functions......... RA0-5 for comparator > >module and adc running at the same time. I can > split > >the pins for different functionality. > > > >1) comparator module at four input multiplexed with > 2 > >comparator. take pin ra3 and ra2 > >2) adc on pin ra0 and ra1. > > I'm not sure which PIC you are using but I've used > both the A/D and > comparitor sections at the same time on both the > 12f675 and > 16f676. Its just a matter of getting CMCON and > ANSEL set up > correctly (as well as the TRIS registers, of > course). > > Hope this helps. > > dwayne > > -- > Dwayne Reid > Trinity Electronics Systems Ltd Edmonton, AB, > CANADA > (780) 489-3199 voice (780) 487-6397 fax > > Celebrating 22 years of Engineering Innovation (1984 > - 2006) > .-. .-. .-. .-. .-. .-. .-. .-. > .-. .- > `-' `-' `-' `-' `-' `-' `-' `-' > `-' > Do NOT send unsolicited commercial email to this > email address. > This message neither grants consent to receive > unsolicited > commercial email nor is intended to solicit > commercial email. > > -- > 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