Olin Lathrop wrote: > Maybe you're ready for a better way of doing this. Check out my PORT module > at http://www.embedinc.com/pic. It would have automatically taken care of > this issues and made porting much easier. It does an IFDEF on CMCON to > decide whether to disable the comparators. There is similar code for the > A/D which will save from trouble next time you move to a different > processor. Thanks Olin. There are number of things in this project that are not the way I like to do things. :o) It will be open sourced and some parts are coded in a way that's not really good programming but coded so a beginner can modify it and adapt it to their needs. I do like the sound of your PORT module and will check it out. :o) -Roman -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads