----- Original Message ----- From: "michael brown" Subject: Re: [PIC] TRIS Problem > > bank switch. Don't worry about it. You can disable it with a #pragma . I prefer to use errorlevel right at the point to remind me and not disable the message from a point where I might shoot myself in the foot. Also, with SFR's moving around between processors, I much prefer to use banksel. This way when I rip off the code for another project I don't get a nasty surprise. errorlevel -302 banksel TRISA movwf TRISA banksel PORTA errorlevel +302 I feel like this makes it a lot more obvious your intention. --McD -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist