Neville, This message is normal and it is not an error. MPLAB is simply making you aware that it is necessary to switch to another bank other than bank 0 in order to access TRISB and TRISA. And you have indeed moved to bank 1 before accessing them, which is correct. It gives you this information regardless of whether your code actually does select the right bank or not. This message is given for every line that contains a reference to a register that is not in Bank 0. Regards Trev . . . . . . t@introspectiv.org 9090 - TR-909 Clone Project: http://introspectiv.org/ -----Original Message----- From: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] On Behalf Of Neville Paintin Sent: 06 January 2003 22:34 To: PICLIST@MITVMA.MIT.EDU Subject: [PIC]: Warning message in MPLAB ; set bank 1 movlw 0 bsf STATUS, RP0 movwf TRISB movwf TRISA ; set bank 0 bcf STATUS, RP0 Why is it when I complie this code I get a [302] Register in operand not in bank 0. Ensure that bank bits are correct message? Regards Neville... Click Here To Visit My Home Page -- 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