TODOPIC
Microcontroladores PIC => Almacén del Assembler => Mensaje iniciado por: fedeelectricc en 26 de Agosto de 2011, 03:59:09
-
hola q tal esta es la primer ves q escribo en un foro disculpen si no ba aca lo q escribo queria pedirles ayuda con un programa de un pic q tiene formato .asm y cuando lo quero pasar a .hex me tira errores el compilador q uso es el mplab los errores son los siguientes
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F628A "ppm_pic_sls.asm" /l"ppm_pic_sls.lst" /e"ppm_pic_sls.err"
Warning[224] C:\MPLAB\PPM_PIC_SLS.ASM 51 : Use of this instruction is not recommended.
Error[126] C:\MPLAB\PPM_PIC_SLS.ASM 51 : Argument out of range (0086 not between 0005 and 0007)
Warning[224] C:\MPLAB\PPM_PIC_SLS.ASM 69 : Use of this instruction is not recommended.
Error[126] C:\MPLAB\PPM_PIC_SLS.ASM 69 : Argument out of range (0086 not between 0005 and 0007)
Warning[224] C:\MPLAB\PPM_PIC_SLS.ASM 99 : Use of this instruction is not recommended.
Error[126] C:\MPLAB\PPM_PIC_SLS.ASM 99 : Argument out of range (0085 not between 0005 and 0007)
Warning[224] C:\MPLAB\PPM_PIC_SLS.ASM 101 : Use of this instruction is not recommended.
Error[126] C:\MPLAB\PPM_PIC_SLS.ASM 101 : Argument out of range (0086 not between 0005 and 0007)
Message[302] C:\MPLAB\PPM_PIC_SLS.ASM 103 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\MPLAB\PPM_PIC_SLS.ASM 105 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] C:\MPLAB\PPM_PIC_SLS.ASM 107 : Register in operand not in bank 0. Ensure that bank bits are correct.
Halting build on first failure as requested.
BUILD FAILED: Fri Aug 26 03:52:53 2011
adjunto el programa en asm muchas gracias por la ayuda
-
.
¿Y si en vez de tris TRISB usás movwf TRISB? En definitiva lo que querés hacer es movwf W a trisb.
Los últimos 3 mensajes (del tipo 302) no implican que hayas cometido un error, sino que los pone el compilador siempre que modifiques un registro fuera del banco 0, aunque previamente hayas hecho el cambio en el registro status. Lo hace por si las dudas.
Saludos.
-
hola mtristan gracias por responder tan rapido te cuento q no entiendo mucho sobre programas en .asm yo los unicos programas q hice los hice con niple y este programa lo baje de una pagina. quisiera si me podes explicar un poquito donde tendria q poner movwf, lo tendria q poner en el etiqueta o en la instruccion muchas gracias saludos
-
hola q tal habrá alguna persona buena q me ayude porq la verdad me esta sacando canas verdes esto jajajaja porq no entiendo mucho de .asm va en verdad no entiendo mucho de hacer programas para pic muchas gracias por su ayuda
:-/
-
Cambia las 4 palabras que dicen TRIS por MOVWF.
Saludos.
-
hola brunof gracias por responder vos te referis a estas palabras
tris TRISA ; Configuro el puerto A; Bits 0, 3 y 4 salidas, el resto entrada
movlw b'11111111'
tris TRISB ; Configuro el puerto B; todos los bits como entrada
recien probe con poner movwf MOVWFA
movwf MOVWFB
Y ME SIGUE TIRANDO LOS ERRORES, NO SERA UN ERROR DEL COMPILADOR?
-
tris TRISA
a
movwf TRISA
Simil con el resto...
-
bruno probé como me dijiste y a lo primero no me anduvo y al final descubrí q había mas etiquetas con el tris y las cambie a todas y me lo compilo muchísimas gracias a vos y a todos los q me ayudaron. cuando termine mi proyecto lo voy a publicar para q lo vean. saludos