otra vez molestando T_T
pues este es mi primer programa, la parte del config me lo robe de aqui porque no supe como ponerlo
Error de MPLAB:
Es la primera vez que me sale este error:
Error - Absolute code section '.org_1' must start at a word-aligned address.
que podra ser?
gracias al moderador por ordenar mi codigo .
Um bueno al guien podria mandarme cualquier ejemplo en 18f2550, que haga lo que sea para ver mas o menos la estructura que lleva? me creeran que no encuentro 1 solo ejemplo de este pic en assambler?? puro C, algunos diran que asm es querer complicarse la vida pero siento que en asm se lo que estoy haciendo al 100, ya aprendiendo quiza use el ccs
pues este es mi primer programa, la parte del config me lo robe de aqui porque no supe como ponerlo
Código:
#INCLUDE<P18F2550.INC> ;include MCU head file
CONFIG FOSC = XTPLL_XT, PLLDIV = 1,CPUDIV = OSC1_PLL2,USBDIV = 2,PWRT = ON,BOR = SOFT, VREGEN = OFF
CONFIG WDT = OFF ,WDTPS = 1,MCLRE = ON,PBADEN = OFF,LVP = OFF,XINST = OFF,DEBUG = OFF
ORG 0X00
GOTO MAIN
ORG 0X05
MAIN
MOVLB 0X0F ;BANCO15
MOVLW B'00001111' ;PUERTOA DIGITAL
MOVWF ADCON1
MOVLW 0X00
MOVWF TRISA ;PUERTO A COMO SALIDA
CICLO MOVLW 0X01
MOVWF PORTA ;RA0 SET
CALL DELAY
MOVLW 0X00
MOVWF PORTA
CALL DELAY
GOTO CICLO
DELAY MOVLB 0x01
MOVLW .255
MOVWF 0X00
MOVLW .255
MOVWF 0X01
DECFSZ 0X01
GOTO $-1
DECFSZ 0X00
GOTO $-5
MOVLB 0X0F
RETURN
END
Código:
Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\MPASMWIN.exe" /q /p18F2550 "led_parpadeando.asm" /l"led_parpadeando.lst" /e"led_parpadeando.err" /o"led_parpadeando.o" /d__DEBUG=1
Warning[205] C:\USERS\ALPHARSP\DOCUMENTS\ELECTRONICA\18F2550_ASM\LED_PARPADEANDO.ASM 2 : Found directive in column 1. (CONFIG)
Warning[205] C:\USERS\ALPHARSP\DOCUMENTS\ELECTRONICA\18F2550_ASM\LED_PARPADEANDO.ASM 3 : Found directive in column 1. (CONFIG)
Warning[205] C:\USERS\ALPHARSP\DOCUMENTS\ELECTRONICA\18F2550_ASM\LED_PARPADEANDO.ASM 4 : Found directive in column 1. (ORG)
Warning[203] C:\USERS\ALPHARSP\DOCUMENTS\ELECTRONICA\18F2550_ASM\LED_PARPADEANDO.ASM 5 : Found opcode in column 1. (GOTO)
Warning[205] C:\USERS\ALPHARSP\DOCUMENTS\ELECTRONICA\18F2550_ASM\LED_PARPADEANDO.ASM 6 : Found directive in column 1. (ORG)
Warning[202] C:\USERS\ALPHARSP\DOCUMENTS\ELECTRONICA\18F2550_ASM\LED_PARPADEANDO.ASM 22 : Argument out of range. Least significant bits used.
Warning[202] C:\USERS\ALPHARSP\DOCUMENTS\ELECTRONICA\18F2550_ASM\LED_PARPADEANDO.ASM 24 : Argument out of range. Least significant bits used.
Warning[205] C:\USERS\ALPHARSP\DOCUMENTS\ELECTRONICA\18F2550_ASM\LED_PARPADEANDO.ASM 33 : Found directive in column 1. (END)
Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\mplink.exe" "..\..\..\..\..\Program Files (x86)\Microchip\MPASM Suite\LKR\18f2550_g.lkr" "led_parpadeando.o" /u_DEBUG /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"led_parpadeando.cof" /M"led_parpadeando.map" /W
MPLINK 4.34, Linker
Copyright (c) 2009 Microchip Technology Inc.
Error - Absolute code section '.org_1' must start at a word-aligned address.
Errors : 1
Link step failed.
----------------------------------------------------------------------
Debug build of project `C:\Users\Alpharsp\Documents\Electronica\18F2550_ASM\led_parpadeando.mcp' failed.
Language tool versions: MPASMWIN.exe v5.34, mplink.exe v4.34
Preprocessor symbol `__DEBUG' is defined.
Sun Mar 21 19:36:52 2010
----------------------------------------------------------------------
BUILD FAILED
Error - Absolute code section '.org_1' must start at a word-aligned address.
que podra ser?
gracias al moderador por ordenar mi codigo .
Um bueno al guien podria mandarme cualquier ejemplo en 18f2550, que haga lo que sea para ver mas o menos la estructura que lleva? me creeran que no encuentro 1 solo ejemplo de este pic en assambler?? puro C, algunos diran que asm es querer complicarse la vida pero siento que en asm se lo que estoy haciendo al 100, ya aprendiendo quiza use el ccs
Última edición: