Could you send only the lines between 100 and 130? Otherwise I will have to count it. thanks -----Mensagem original----- De: pic microcontroller discussion list [mailto:PICLIST@MITVMA.MIT.EDU] Em nome de Tim Webb Enviada em: ter=E7a-feira, 29 de janeiro de 2002 15:42 Para: PICLIST@MITVMA.MIT.EDU Assunto: [PIC]: Can I set a port bit equ to a variable??? why am I getting these errors? Error[108] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 27 : Illegal character (,) Error[108] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 28 : Illegal character (,) Error[108] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 29 : Illegal character (,) Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 66 : Missing argument(s) Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 67 : Missing argument(s) Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 98 : Missing argument(s) Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 110 : Missing argument(s) Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 117 : Missing argument(s) Error[128] C:\PROGRA~1\MPLAB\ET53965\LCD2.ASM 119 : Missing argument(s) Title "test.asm" ; ; Revision: 01/29/02 ; list p=3D16f877,c=3D140 ; processor type errorlevel 1, -(305) #include "p16f877.inc" ; ; Configuration Bits: ; ; Oscillator =3D HS ; Watchdog Timer =3D Off ; Power Up Timer =3D On ; Code Protect =3D Off ; Brown Out Detect =3D On ; Low Voltage Program =3D Disabled ; Data EE Protect =3D Off ; Flash Program Write =3D Enabled ; Background Debug =3D Disabled ; ; DelayL equ 0x20 ; delay register LOW byte DelayM equ 0x21 ; delay register MID byte DelayH equ 0x22 ; delay register HIGH byte rw equ PORTA,0 rs equ PORTA,1 cs equ PORTA,2 Start bcf STATUS, RP0 ; select bank 0 clrf PORTA ; clear PORTA clrf PORTB ; clear PORTB clrf PORTC ; clear PORTC clrf PORTD ; clear PORTD clrf PORTE ; clear PORTE bsf STATUS, RP0 ; select bank 1 clrf TRISA ; set as outputs clrf TRISB clrf TRISC clrf TRISD clrf TRISE movlw b'00000111' movwf ADCON1 ; PORTA inputs =3D digital call delay_250ms ; startup stabilize delay call init call text stop goto stop init bsf rs bsf cs movlw 0x38 movwf PORTD call clk movlw 0x0c movwf PORTD call clk movlw 0x06 movwf PORTD call clk movlw 0x01 movwf PORTD call clk return text movlw 0x80 movwf PORTD call clk bsf rs movlw 'H' movwf PORTD call clk movlw 'I' movwf PORTD call clk bcf rs return clk call delay bcf cs call delay bsf cs return delay ; 250ms delay clrf DelayL ; Clear DelayL Register clrf DelayM ; Clear DelayM Register movlw 06h ; Move literal 06h to W register movwf DelayH ; Move w register to DelayH register Wait1 decfsz DelayL ; Decrement 1 from DelayL Register, skip if zero goto Wait1 ; Not 0, continue loop decfsz DelayM ; Decrement 1 from DelayM Register, skip if zero goto Wait1 ; Not 0, continue loop decfsz DelayH ; Decrement 1 from DelayH Register, skip if zero goto Wait1 ; Not 0, continue loop return END -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details. -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.