ahh .. I just tend to ignore that warning, but I'll update my current code to include that.. sometimes it's hard to follow all of the discussions on this list.. I probably read about 1% of all the messages that come across because it becomes overwhelming.. -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Banjo Spam Sent: Tuesday, April 01, 2003 8:40 PM To: PICLIST@MITVMA.MIT.EDU Subject: Re: [PIC]: Serial Port and using remaining PortB bits? Yes, it *is* completely obvious!! :-) Just kidding, but we all (together) did review this within the last few weeks. XOR'ing a register value with 0x080 gets rid of Error 302 (I think that is the number). It also has the side effect of giving an error if the register is not in Bank 1. There are various and sundry ways of getting rid of the "not in Bank 0" error. Each with their own advantages, disadvantages, adherents, and detractors. Hope this helps. --- "Russell C. Hay" wrote: > I'm probably missing something completely obvious, > but why are you XOR'ing > TRISB with 0x080? I've had no problem just using > TRISB without XOR'ing it > (after switching to bank 1) Just curious ... > > -----Original Message----- > From: pic microcontroller discussion list > [mailto:PICLIST@MITVMA.MIT.EDU]On Behalf Of Rick > Regan > Sent: Tuesday, April 01, 2003 7:22 PM > To: PICLIST@MITVMA.MIT.EDU > Subject: Re: [PIC]: Serial Port and using remaining > PortB bits? > > > > bsf TRISB ^ 0x080, 0 ; Set PortB 0.1.2 to output > > bsf TRISB ^ 0x080, 1 > > bsf TRISB ^ 0x080, 2 > > The comment says output, but you are setting them > to input. > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Tax Center - File online, calculators, forms, > and more > http://tax.yahoo.com > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu > > -- > http://www.piclist.com hint: To leave the PICList > mailto:piclist-unsubscribe-request@mitvma.mit.edu __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu -- http://www.piclist.com hint: To leave the PICList mailto:piclist-unsubscribe-request@mitvma.mit.edu