Errores al compilar en MPLAB X

los mensajes tipo "Message[302]" no son errores, son warnings o advertencias del compilador para avisarte que algo puede estar mal. En este caso el mensaje 302 se refiere a los bancos de memoria, tu cambias al banco 1 para configurar los registros TRIS y lo haces de la manera correcta, pero el compilador no esta seguro de que lo hayas hecho de la manera correcta ya que estas trabajando con el registro 0x85 y a el le gustaría que usaras el 0x05. Si estando en el banco 1 modificas el registro PORTA en lugar del TRISA el compilador no te marca ningún mensaje, aunque esa sea la manera incorrecta de configurar los puertos.

Esto que te digo es posible aunque no es la manera correcta de trabajar. Si estás en el banco 1 para el compilador TRISA y PORTA son iguales y equivalen al registro 0x05 de ese banco. Pero por los mensajes 302 no te preocupes tanto, probablemente el compilador esté equivocado.
 
Efectivamente, pic-man tiene toda la razón. Al final es lo que he hecho para que el compilador deje de mostrar mensajes. Muchísimas gracias por todo.
 
hola soy nuevo en el foro y tengo el siguiente problema estoy comensando en la programacion de los pic e instale el mplab para programar me pasa el siguiente problema cuando cargo el .asm y luego le ago el quickbuild para compilar y dejarlo en hex me tira error a pesar de que lo e compilado en otro pc y me compila sin problema lo e instalado mas de 5 veces pensando k es por k keda mal instalado si alguien me puede ayudar pliss ya noc que es
 
Código:
;***************************************************************
;programa ejemplo ej01b.asm	b por Basico (16f876a)
;fecha: SaApril26_08
;este programa realiza I/O y es bueno como verificacion
;del proceso global sobre un PIC
;lee por el port A y escribe por el port B el mismo dato como ¬dato 
;revision: 00			programa para PIC16F84
;velocidad de reloj:		instruccion: 
;watchdog: disable		tipo reloj: XT
;proteccion de codigo:
;***************************************************************
		LIST p=16F876a	;tipo de PIC
;***************************************************************
portA EQU 0x05	;direccion del registro asociado al port A
portB EQU 0x06 ;direccion del registro asociado al port B
;***************************************************************
		ORG 0
			goto INICIO
		ORG 05
;***************************************************************
INICIO			movlw 0ff	;W<-FF
			tris portA	;TRISA<-W	portA as Input
			movlw 00	;W<-00
			tris portB	;TRISB<-W	portB as Output
LOOP_1			movf portA,0	;W<-portA
			comf portA,0	;W<- ¬W
			movwf portB	;portB<-W
			goto LOOP_1	;lazo...
			END
;***************************************************************


ese es el programa los errores son los siguientes

Warning[215] D:\ELECTRONICA\ULTIMO AñO\COMPUTADORES\EXAMP01.ASM 12 : Processor superseded by command line. Verify processor symbol.
Warning[226] D:\ELECTRONICA\ULTIMO AñO\COMPUTADORES\EXAMP01.ASM 18 : Destination address must be word aligned
Error[157] D:\ELECTRONICA\ULTIMO AñO\COMPUTADORES\EXAMP01.ASM 19 : ORG at odd address
Warning[207] D:\ELECTRONICA\ULTIMO AñO\COMPUTADORES\EXAMP01.ASM 22 : Found label after column 1. (tris)
Error[122] D:\ELECTRONICA\ULTIMO AñO\COMPUTADORES\EXAMP01.ASM 22 : Illegal opcode (portA)
Warning[207] D:\ELECTRONICA\ULTIMO AñO\COMPUTADORES\EXAMP01.ASM 24 : Found label after column 1. (tris)
Error[122] D:\ELECTRONICA\ULTIMO AñO\COMPUTADORES\EXAMP01.ASM 24 : Illegal opcode (portB)
Warning[226] D:\ELECTRONICA\ULTIMO AñO\COMPUTADORES\EXAMP01.ASM 28 : Destination address must be word aligned
 
aqui otro programa

Código:
;PROGRAMA Menu.ASM

;*************** MAIN ************************
DEFSEG MENU, START=00H
SEG MENU

INICIO: JB P3.7,$

OPCION: JB P3.0, PROBAR
JB P3.1, DOS

CERO CALL ROTA0
JMP INICIO

PROBAR: JB P3.1, TRES

UNO: CALL ROTA1
JMP INICIO

DOS: CALL ROTA2
JMP INICIO

TRES: CALL ROTA3
JMP INICIO

;**********************************************

ROTA0: MOV A,#01H

LAZO10: MOV P1,A
MOV P2,A
ACALL RETARDO
RL A
CJNE A,#80H,LAZO10
MOV P1,A
MOV P2,A
ACALL RETARDO
MOV A,#80H

LAZO20: MOV P1,A
MOV P2,A
ACALL RETARDO
RR A
CJNE A,#01H,LAZO20
MOV P1,A
MOV P2,A
ACALL RETARDO

RET

;********************************************
ROTA1: MOV A,#01H

LAZO11: MOV P1,A
MOV P2,A
ACALL RETARDO
RL A
CJNE A,#80H,LAZO11
MOV P1,A
MOV P2,A
ACALL RETARDO
MOV P1,#00H
MOV P2,#00h
RET

;********************************************
ROTA2: MOV A,#80H

LAZO12: MOV P1,A
MOV P2,A
ACALL RETARDO
RR A
CJNE A,#01H,LAZO12
MOV P1,A
MOV P2,A
ACALL RETARDO
MOV P1,#00H
MOV P2,#00h
RET

;**********************************************

ROTA3: MOV A,#01H

LAZO13: MOV P1,A
ACALL RETARDO
RL A
CJNE A,#80H,LAZO13
MOV P1,A
ACALL RETARDO
MOV P1,#00H


MOV A,#01H

LAZO23: MOV P2,A
ACALL RETARDO
RL A
CJNE A,#80H,LAZO23
MOV P2,A
ACALL RETARDO
MOV P2,#00h

RET

;********RETARDO PARA EL SIMULADOR********

RETARDO: MOV R0,#20
DJNZ R0,$
RET

END

aqui los errores

Código:
Error[122]   D:\1.ASM 4 : Illegal opcode (MENU)
Error[122]   D:\1.ASM 5 : Illegal opcode (MENU)
Error[122]   D:\1.ASM 7 : Illegal opcode (JB)
Error[122]   D:\1.ASM 9 : Illegal opcode (JB)
Error[122]   D:\1.ASM 10 : Illegal opcode (P3.1)
Error[113]   D:\1.ASM 12 : Symbol not previously defined (ROTA0)
Error[122]   D:\1.ASM 13 : Illegal opcode (INICIO)
Error[122]   D:\1.ASM 15 : Illegal opcode (JB)
Error[113]   D:\1.ASM 17 : Symbol not previously defined (ROTA1)
Error[122]   D:\1.ASM 18 : Illegal opcode (INICIO)
Error[113]   D:\1.ASM 20 : Symbol not previously defined (ROTA2)
Error[122]   D:\1.ASM 21 : Illegal opcode (INICIO)
Error[113]   D:\1.ASM 23 : Symbol not previously defined (ROTA3)
Error[122]   D:\1.ASM 24 : Illegal opcode (INICIO)
Error[122]   D:\1.ASM 28 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 30 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 31 : Illegal opcode (P2)
Error[122]   D:\1.ASM 32 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 33 : Illegal opcode (A)
Error[122]   D:\1.ASM 34 : Illegal opcode (A)
Error[122]   D:\1.ASM 35 : Illegal opcode (P1)
Error[122]   D:\1.ASM 36 : Illegal opcode (P2)
Error[122]   D:\1.ASM 37 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 38 : Illegal opcode (A)
Error[122]   D:\1.ASM 40 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 41 : Illegal opcode (P2)
Error[122]   D:\1.ASM 42 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 43 : Illegal opcode (A)
Error[122]   D:\1.ASM 44 : Illegal opcode (A)
Error[122]   D:\1.ASM 45 : Illegal opcode (P1)
Error[122]   D:\1.ASM 46 : Illegal opcode (P2)
Error[122]   D:\1.ASM 47 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 52 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 54 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 55 : Illegal opcode (P2)
Error[122]   D:\1.ASM 56 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 57 : Illegal opcode (A)
Error[122]   D:\1.ASM 58 : Illegal opcode (A)
Error[122]   D:\1.ASM 59 : Illegal opcode (P1)
Error[122]   D:\1.ASM 60 : Illegal opcode (P2)
Error[122]   D:\1.ASM 61 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 62 : Illegal opcode (P1)
Error[122]   D:\1.ASM 63 : Illegal opcode (P2)
Error[122]   D:\1.ASM 67 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 69 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 70 : Illegal opcode (P2)
Error[122]   D:\1.ASM 71 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 72 : Illegal opcode (A)
Error[122]   D:\1.ASM 73 : Illegal opcode (A)
Error[122]   D:\1.ASM 74 : Illegal opcode (P1)
Error[122]   D:\1.ASM 75 : Illegal opcode (P2)
Error[122]   D:\1.ASM 76 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 77 : Illegal opcode (P1)
Error[122]   D:\1.ASM 78 : Illegal opcode (P2)
Error[122]   D:\1.ASM 83 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 85 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 86 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 87 : Illegal opcode (A)
Error[122]   D:\1.ASM 88 : Illegal opcode (A)
Error[122]   D:\1.ASM 89 : Illegal opcode (P1)
Error[122]   D:\1.ASM 90 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 91 : Illegal opcode (P1)
Error[122]   D:\1.ASM 94 : Illegal opcode (A)
Error[122]   D:\1.ASM 96 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 97 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 98 : Illegal opcode (A)
Error[122]   D:\1.ASM 99 : Illegal opcode (A)
Error[122]   D:\1.ASM 100 : Illegal opcode (P2)
Error[122]   D:\1.ASM 101 : Illegal opcode (RETARDO)
Error[122]   D:\1.ASM 102 : Illegal opcode (P2)
Error[122]   D:\1.ASM 108 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 109 : Illegal opcode (R0)
Warning[205] D:\1.ASM 112 : Found directive in column 1. (END)
 
Otro programa mas corto con problemas no funsiona ningunoo que esta pasando alguien sabeee aaa

Código:
DEFSEG CONTADOR, START=00H
       SEG  CONTADOR

INICIO: MOV R1,#0
INCREM: MOV A,R1
        INC A
        MOV R1,A
        ACALL BINBCD
        MOV P1,A
        ACALL RETARDO
        CJNE R1, #99, INCREM
        JMP  INICIO

BINBCD: MOV B,#10
        DIV AB
        SWAP A
        ADD A,B
        RET

RETARDO:MOV R0,#20
        DJNZ R0,$
        RET


       END

errores de este programa

Código:
Error[122]   D:\1.ASM 1 : Illegal opcode (CONTADOR)
Warning[207] D:\1.ASM 2 : Found label after column 1. (SEG)
Error[122]   D:\1.ASM 2 : Illegal opcode (CONTADOR)
Error[122]   D:\1.ASM 4 : Illegal opcode (MOV)
Error[122]   D:\1.ASM 5 : Illegal opcode (MOV)
Warning[207] D:\1.ASM 6 : Found label after column 1. (INC)
Error[122]   D:\1.ASM 6 : Illegal opcode (A)
Warning[207] D:\1.ASM 7 : Found label after column 1. (MOV)
Error[122]   D:\1.ASM 7 : Illegal opcode (R1)
Warning[207] D:\1.ASM 8 : Found label after column 1. (ACALL)
Error[122]   D:\1.ASM 8 : Illegal opcode (BINBCD)
Warning[207] D:\1.ASM 9 : Found label after column 1. (MOV)
Error[122]   D:\1.ASM 9 : Illegal opcode (P1)
Warning[207] D:\1.ASM 10 : Found label after column 1. (ACALL)
Error[122]   D:\1.ASM 10 : Illegal opcode (RETARDO)
Warning[207] D:\1.ASM 11 : Found label after column 1. (CJNE)
Error[122]   D:\1.ASM 11 : Illegal opcode (R1)
Warning[207] D:\1.ASM 12 : Found label after column 1. (JMP)
Error[122]   D:\1.ASM 12 : Illegal opcode (INICIO)
Error[122]   D:\1.ASM 14 : Illegal opcode (MOV)
Warning[207] D:\1.ASM 15 : Found label after column 1. (DIV)
Error[122]   D:\1.ASM 15 : Illegal opcode (AB)
Warning[207] D:\1.ASM 16 : Found label after column 1. (SWAP)
Error[122]   D:\1.ASM 16 : Illegal opcode (A)
Warning[207] D:\1.ASM 17 : Found label after column 1. (ADD)
Error[122]   D:\1.ASM 17 : Illegal opcode (A)
Warning[207] D:\1.ASM 18 : Found label after column 1. (RET)
Error[122]   D:\1.ASM 20 : Illegal opcode (MOV)
Warning[207] D:\1.ASM 21 : Found label after column 1. (DJNZ)
Error[122]   D:\1.ASM 21 : Illegal opcode (R0)
Warning[207] D:\1.ASM 22 : Found label after column 1. (RET)
 
el primer programa lo compile y no tuve error

checa la configuracion en : Configure > select device
de preferencia cambia el archivo .asm al directorio raiz, por ejemplo : D: miarchivo.asm y compilalo alli

yo estoy usando el MPLab 7.5


en los demas programas , me parece que no usas instrucciones propias del UC ; bajate la hoja de datos para que sepas que instrucciones puedes utilizar
 
ok el problema es que e compilado en otros compuradores con el mismo software y los mismos programas y compilan entonces noc realmente cual es el problema entiendo que debe ser el software intalado en mi maquina pero puntalmente nose que seria ya que falla solamente en mi pc siguiendo los mismos pasos que siempre bajare el mplab 7.5 y vere como anda pero la verdad que e probado distintos y lo mismo
 
mabauti dijo:
el primer programa lo compile y no tuve error

checa la configuracion en : Configure > select device
de preferencia cambia el archivo .asm al directorio raiz, por ejemplo : D: miarchivo.asm y compilalo alli

yo estoy usando el MPLab 7.5


en los demas programas , me parece que no usas instrucciones propias del UC ; bajate la hoja de datos para que sepas que instrucciones puedes utilizar


modifique el selct device tampoco sigue teniendo los mismos errores bajare la version 7.5 y posteo como me fue espero su ayuda :)
 
Instale el mplab 7.5 y ensamble el siguiente programa
Código:
;***************************************************************
;programa ejemplo ej01b.asm b por Basico (16f876a)
;fecha: SaApril26_08
;este programa realiza I/O y es bueno como verificacion
;del proceso global sobre un PIC
;lee por el port A y escribe por el port B el mismo dato como ¬dato
;revision: 00 programa para PIC16F84
;velocidad de reloj: instruccion:
;watchdog: disable tipo reloj: XT
;proteccion de codigo:
;***************************************************************
LIST p=16F876a ;tipo de PIC
;***************************************************************
portA EQU 0x05 ;direccion del registro asociado al port A
portB EQU 0x06 ;direccion del registro asociado al port B
;***************************************************************
ORG 0
goto INICIO
ORG 05
;***************************************************************
INICIO movlw 0ff ;W<-FF
tris portA ;TRISA<-W portA as Input
movlw 00 ;W<-00
tris portB ;TRISB<-W portB as Output
LOOP_1 movf portA,0 ;W<-portA
comf portA,0 ;W<- ¬W
movwf portB ;portB<-W
goto LOOP_1 ;lazo...
END
;***************************************************************

me tiro los siguientes errores creo que son solamente warning de manera que no tendria problema o si ?

Código:
Warning[205] D:\PRUEBA.ASM 12 : Found directive in column 1. (LIST)
Warning[205] D:\PRUEBA.ASM 17 : Found directive in column 1. (ORG)
Warning[203] D:\PRUEBA.ASM 18 : Found opcode in column 1. (goto)
Warning[205] D:\PRUEBA.ASM 19 : Found directive in column 1. (ORG)
Warning[203] D:\PRUEBA.ASM 22 : Found opcode in column 1. (tris)
Warning[224] D:\PRUEBA.ASM 22 : Use of this instruction is not recommended.
Warning[203] D:\PRUEBA.ASM 23 : Found opcode in column 1. (movlw)
Warning[203] D:\PRUEBA.ASM 24 : Found opcode in column 1. (tris)
Warning[224] D:\PRUEBA.ASM 24 : Use of this instruction is not recommended.
Warning[203] D:\PRUEBA.ASM 26 : Found opcode in column 1. (comf)
Warning[203] D:\PRUEBA.ASM 27 : Found opcode in column 1. (movwf)
Warning[203] D:\PRUEBA.ASM 28 : Found opcode in column 1. (goto)
Warning[205] D:\PRUEBA.ASM 29 : Found directive in column 1. (END)
 
Estimados,

Programo hace mucho tiempo en MikroC. Ahora quiero migrar a C18 pero prengo un problema: el compilador no me reconoce los registros, como por ejemplo el TRISA. Ya configuré en "select lenguaje tool locations" el C18
Adjunto una imagen de lo que me pasa.
Muchas gracias de ante mano.
Saludos
 

Adjuntos

  • kuro_104.jpg
    kuro_104.jpg
    136.7 KB · Visitas: 35
Bueno, solucioné mi problema. Lo que hice fue sacar el archivo .lkr y hacer esto:
Entorno: Mplab IDE v8.10
Error: "Error - could not find file 'c018i.o'."

Este error se genera por que no se adjuntó la dirección en donde se encuentran las librerias, entonces la solución será como sigue:

project -> build options -> project -> directories ->library search path -> new

Agregar el directorio:
c:/MCC18/lib


Esto lo saqué de la pagina: http://txos.blogspot.com/2008/09/error-could-not-find-file-c018io.html
 
Tengo un problema con la programacion estoy haciendo un sensor de niveles de liquido segun yo esta bien la programacion pero me envia los seguientes errores... :


Executing: "D:\MPLAB IDE\MCHIP_Tools\mpasmwin.exe" /q /p18F452 "tankepozo.asm" /l"tankepozo.lst" /e"tankepozo.err"
Warning[215] C:\TANKEPOZO.ASM 2 : Processor superseded by command line. Verify processor symbol.
Message[301] D:\MPLAB IDE\MCHIP_TOOLS\P16F84.INC 37 : MESSAGE: (Processor-header file mismatch. Verify selected processor.)
Error[126] D:\MPLAB IDE\MCHIP_TOOLS\P16F84.INC 116 : Argument out of range (must be greater than or equal to 255)
Error[126] D:\MPLAB IDE\MCHIP_TOOLS\P16F84.INC 117 : Argument out of range (__MAXRAM must be used first)
Error[126] D:\MPLAB IDE\MCHIP_TOOLS\P16F84.INC 117 : Argument out of range (__MAXRAM must be used first)
Error[126] D:\MPLAB IDE\MCHIP_TOOLS\P16F84.INC 117 : Argument out of range (__MAXRAM must be used first)
Error[126] C:\TANKEPOZO.ASM 4 : Argument out of range (not a valid config register address)
Error[107] C:\TANKEPOZO.ASM 55 : Illegal digit
Error[108] C:\TANKEPOZO.ASM 55 : Illegal character (0)


mi programa es el siguiente me gustaria que me ayudaran a corregir los errores....:


LIST P=16F84
#include P16F84.INC
__CONFIG _CP_OFF & _WDT_OFF & _PWRTE_ON & _XT_OSC
ORG 0
Inicio
clrf PORTB
bsf STATUS,RP0
clrf TRISB
movlw b'00001111'
movwf TRISA
bcf STATUS,RP0
Principal
movf PORTA,W
andlw b'00001111'
addwf PCL,F
goto Configuracion0
goto Configuracion1
goto Configuracion2
goto Configuracion3
goto Configuracion4
goto Configuracion5
goto Configuracion6
goto Configuracion7
goto Configuracion8
goto Configuracion9
goto Configuracion10
goto Configuracion11
goto Configuracion12
goto Configuracion13
goto Configuracion14
goto Configuracion15
Configuracion0
movlw b'01100000'
goto ActivaSalida
Configuracion1
movlw b'01000001'
goto ActivaSalida
Configuracion2
movlw b'01000010'
goto ActivaSalida
Configuracion3
movlw b'01000011'
goto ActivaSalida
Configuracion4
movlw b'00110100'
goto ActivaSalida
Configuracion5
movlw b'00010101'
goto ActivaSalida
Configuracion6
movlw b'00100110'
goto ActivaSalida
Configuracion7
movlw b'00000111' .
goto ActivaSalida
Configuracion8
movlw b'01111000'
goto ActivaSalida
Configuracion9
movlw b'01011001'
goto ActivaSalida
Configuracion10
movlw b'01101010'
goto ActivaSalida
Configuracion11
movlw b'01001011'
goto ActivaSalida
Configuracion12
movlw b'00111100'
goto ActivaSalida
Configuracion13
movlw b'00011101'
goto ActivaSalida
Configuracion14
movlw b'00101110'
goto ActivaSalida
Configuracion15
movlw b'00001111'
goto ActivaSalida
ActivaSalida
movwf PORTB
goto Principal

END

De antemano gracias a la persona que me ayude..! ^^
 
Bueno... el error es que en el MPLAB estabas eligiendo el dspositivo equivocado... Para esto anda a "Configure -> Select device..." y elegi al PIC16F84

otro error es que tenias un punto volando en la "Configuracion 7" que tiraba "ilegal digit".

te dejo el codigo que lo pase en limpio.

Código:
;****************************************************************
; Saltos indexados para algo
;****************************************************************
	LIST	p=16F84A
	#INCLUDE <p16f84.inc>


	__CONFIG _CP_OFF & _WDT_ON & _PWRTE_ON & _XT_OSC
	ERRORLEVEL	-302

;****************************************************************
	ORG	0x0000
	goto	Inicio

;****************************************************************

Inicio 
	clrf	PORTB	
	bsf	 STATUS,RP0	
	clrf	TRISB	
	movlw	b'00001111'	
	movwf	TRISA 
	bcf	 STATUS,RP0	
Principal 
	movf	PORTA,W	
	andlw	b'00001111'	
	addwf	PCL,F
Tabla
	goto	Configuracion0 
	goto	Configuracion1 
	goto	Configuracion2 
	goto	Configuracion3 
	goto	Configuracion4 
	goto	Configuracion5 
	goto	Configuracion6 
	goto	Configuracion7 
	goto	Configuracion8 
	goto	Configuracion9 
	goto	Configuracion10 
	goto	Configuracion11 
	goto	Configuracion12 
	goto	Configuracion13 
	goto	Configuracion14 
	goto	Configuracion15 
Configuracion0 
	movlw	b'01100000'	
	goto	ActivaSalida 
Configuracion1 
	movlw	b'01000001'	
	goto	ActivaSalida 
Configuracion2 
	movlw	b'01000010'	
	goto	ActivaSalida 
Configuracion3 
	movlw	b'01000011'	
	goto	ActivaSalida 
Configuracion4 
	movlw	b'00110100'	
	goto	ActivaSalida 
Configuracion5 
	movlw	b'00010101'	
	goto	ActivaSalida 
Configuracion6 
	movlw	b'00100110'	
	goto	ActivaSalida 
Configuracion7 
	movlw	b'00000111'
	goto	ActivaSalida 
Configuracion8 
	movlw	b'01111000'	
	goto	ActivaSalida 
Configuracion9 
	movlw	b'01011001'	
	goto	ActivaSalida 
Configuracion10 
	movlw	b'01101010'	
	goto	ActivaSalida 
Configuracion11 
	movlw	b'01001011'	
	goto	ActivaSalida 
Configuracion12 
	movlw	b'00111100'	
	goto	ActivaSalida 
Configuracion13 
	movlw	b'00011101'	
	goto	ActivaSalida 
Configuracion14 
	movlw	b'00101110'	
	goto	ActivaSalida 
Configuracion15 
	movlw	b'00001111'	
	goto	ActivaSalida 
ActivaSalida 
	movwf	PORTB	
	goto	Principal 

;*************************************************************************

	END

saludos!
 
es la primera vez que trabajo en programacion de pic asi es que no estoy familiarizado con el MPLAB solo otra duda me manda una serie de advertencias no se a que se deba te las muestro para que me orientes en el por que ....:

Warning[205] D:\MPLAB IDE\DLLS\TANKES.ASM 1 : Found directive in column 1. (LIST)
Warning[205] D:\MPLAB IDE\DLLS\TANKES.ASM 5 : Found directive in column 1. (__CONFIG)
Warning[205] D:\MPLAB IDE\DLLS\TANKES.ASM 6 : Found directive in column 1. (ERRORLEVEL)
Warning[205] D:\MPLAB IDE\DLLS\TANKES.ASM 9 : Found directive in column 1. (ORG)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 10 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 15 : Found opcode in column 1. (clrf)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 16 : Found opcode in column 1. (bsf)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 17 : Found opcode in column 1. (clrf)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 18 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 19 : Found opcode in column 1. (movwf)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 20 : Found opcode in column 1. (bcf)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 22 : Found opcode in column 1. (movf)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 23 : Found opcode in column 1. (andlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 24 : Found opcode in column 1. (addwf)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 26 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 27 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 28 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 29 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 30 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 31 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 32 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 33 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 34 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 35 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 36 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 37 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 38 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 39 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 40 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 41 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 43 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 44 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 46 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 47 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 49 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 50 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 52 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 53 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 55 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 56 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 58 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 59 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 61 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 62 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 64 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 65 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 67 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 68 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 70 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 71 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 73 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 74 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 76 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 77 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 79 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 80 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 82 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 83 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 85 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 86 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 88 : Found opcode in column 1. (movlw)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 89 : Found opcode in column 1. (goto)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 91 : Found opcode in column 1. (movwf)
Warning[203] D:\MPLAB IDE\DLLS\TANKES.ASM 92 : Found opcode in column 1. (goto)
Warning[205] D:\MPLAB IDE\DLLS\TANKES.ASM 95 : Found directive in column 1. (END)

me gustaria saber a que se debe .. GRACIAS.!
 
Atrás
Arriba