At 11:21 AM 12/28/01 -0500, you wrote: >I did read it. I set the rp0 bit in hopes of addressing the option reg. >After the code was imported to the PSP and didn't work, I disassembled it and >found that trm0 was being addressed instead. Isn't setting rp0 the method of >addressing bank1? The disassembler doesn't know that though, generally they just do a instruction-by-instruction disassembly, they don't pay attention to the RP flags being set. If you can run it through a simulator you'll probably find it works properly. To most dumb dissassemblers, a movwf trisb really does look like a movwf portb. Jeff -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads