Ed wrote... >I do however, remember seeing somewhere in the Microchip literature that the >"TRIS" command should not be used as it is unsupported. If so, what replaces >it? You may be confusing the TRIS instruction (present on older PICs, not recommended for use anymore) with the TRIS registers. The latter are always present and are used to select the directionality of the PIC port pins. Instead of using the old TRIS instruction to load the TRIS registers, they are now loaded simply by putting the desired value in W and then writing it to the TRIS register with the movwf instruction. Dave D. -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads