it is just a warning Ignore it all it does is warn you that you should set BSF STATUS, RP0 before accessing trisa but does not check if you do Peter -----Original Message----- From: enpassant To: PICLIST@MITVMA.MIT.EDU Date: Saturday, May 08, 1999 12:03 PM Subject: Need help debuging 16F84 code. >Hi, >I'm trying to use Peter Anderson's LCD_CTRL.ASM code (originally for >16C84) on my 16F84. I get the following error message and can't figure >out why? I suspect it may have to do with the difference in the memory >layout between chips??? How can I fix this. Thanks in advance. > >"Message[302] D:\LCD_CTRL.ASM 182 : Register in operand not in bank 0. >Ensure that bank bits are correct." > >; LCD_CTRL.ASM >; >; Provides a collection of routines to output to serial LCD at 2400 >; Copyright, Peter H. Anderson, Morgan State University, June 14, '97 >; >; ..... >; >_SEROUT: ; transmits content of W at 2400 Baud > > MOVWF _SER_DATA > > BSF STATUS, RP0 ; make TX bit an output > BCF TRISA, TX ; <------------------------------ERROR >OCCURS HERE. > BCF STATUS, RP0 > BCF PORTA, TX ; set to stop bit > > MOVLW .255 > MOVWF _SER_TIME ; be sure stop bit has been high present > >; >; .....