> Jinx: > > I think the F84 really needs the RP0 bit as it has two memory banks ... Yes, but you don't need to use it for accessing the tris registers. These lines are clipped from a program I use quite regularly for the F84 (it was written a long time ago in a different environment, and MPLAB still squawks about using trisa) porta equ 05h ;port a address portb equ 06h ; b trisa equ 85h ; a direction trisb equ 86h ; b start equ 00h ;program start vector org start ;define program start vector goto entry entry movlw 10h tris porta ;porta ...i oooo movlw 00h tris portb ;portb oooo oooo movlw 80h option .............. ================= And how the banksel bits must be used in the F628 in a very similar program start equ 0x00 ;program start vector org 0x00 goto entry entry clrf porta movlw 0x07 ;comparators off movwf cmcon clrf status ;bank0 (clear rp0 and rp1) (snip) bsf status,rp0 ;select bank1 bcf status,rp1 movlw 0x00 ;oooo oooo movwf trisa movlw 0x02 ;oooo ooio movwf trisb movlw 0x80 ;portb pull-ups off movwf option_reg bcf status,rp0 ;back to bank0 bcf status,rp1 -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads