Banjo Spam wrote: >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. I wrote: > 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. I was not commenting on the "XOR'ing a register value with 0x080" issue. I was trying to point out the bug in the code. 'bcf' should be used instead of 'bsf' to set these PORTB bits to output. __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - File online, calculators, forms, and more http://tax.yahoo.com -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads