> I've not looked at the 18Fxx but the TRIS registers are in bank 1 normally > so you'll have to do something like this: > > bsf rp0 ;select register bank 1 > movlw 0x81 ;get the setting > movwf trisc ;copy it to the tris register > bcf rp0 ;back to register bank 0 > > The ports themselves (in bank 0) are the same address as the tris > registers, only up in register bank 1. It's an easy mistake to make. This doesn't apply to the PIC18 series. They have a totally different RAM address space model. The RP0 and RP1 bits don't exist. Instead there is the BSR register and the "access bank". See the manual for details. ***************************************************************** Embed Inc, embedded system specialists in Littleton Massachusetts (978) 742-9014, http://www.embedinc.com -- http://www.piclist.com hint: The list server can filter out subtopics (like ads or off topics) for you. See http://www.piclist.com/#topics