Veran estoi intentando programar un pic con el Mplab i cuando lo intento pasar al pic con el win pic me sale esto:
list p=16F84A
include "p16F84A.inc"
org 00h
reset
goto inicio
org 10h
inicio
bsf STATUS,5
movlw 00h
movwf TRISB
bcf STATUS,5
programa
movlw 00h
movwf PORTB
call sg1
movlw 0ffh
movwf PORTB
call sg1
goto programa
sg1
movlw 0ffh
movwf 0ch
movwf 0dh
movlw 01h
movwf 0eh
salto1
decfsz 0ch,1
goto salto1
decfsz 0dh,1
goto salto1
decfsz 0eh,1
goto salto1
return
end
Cual es el error?
lo he rebisado i no he encontrado nada
Ayudenme
vale creo que el problema no esta aqui sinó que cuando lo creo con el Mplab i le doi a Proyect-Build All aparece esto:
Clean: Deleting intermediary and output files.
Clean: Deleted file "led2.err".
Clean: Deleted file "C:\Users\sergi\Documents\pic 16f84a\prueva2\led2.cod".
Clean: Deleted file "C:\Users\sergi\Documents\pic 16f84a\prueva2\led2.hex".
Clean: Deleted file "led2.lst".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84A "led2.asm" /l"led2.lst" /e"led2.err"
Warning[205] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 1 : Found directive in column 1. (list)
Warning[215] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 1 : Processor superseded by command line. Verify processor symbol.
Warning[205] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 3 : Found directive in column 1. (org)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 4 : Found opcode in column 1. (goto)
Warning[205] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 6 : Found directive in column 1. (org)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 8 : Found opcode in column 1. (bsf)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 9 : Found opcode in column 1. (movlw)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 10 : Found opcode in column 1. (movwf)
Message[302] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 10 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 11 : Found opcode in column 1. (bcf)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 12 : Found opcode in column 1. (movlw)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 13 : Found opcode in column 1. (movwf)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 15 : Found opcode in column 1. (goto)
Warning[205] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 16 : Found directive in column 1. (END)
Loaded C:\Users\sergi\Documents\pic 16f84a\prueva2\led2.COD.
BUILD SUCCEEDED: Thu Feb 17 21:17:18 2011
ayudenme porque no entiendo nada
lo que e escrito con le Mplab es lo siguiente:Error -> de escritura en dirección 0x000000
escrito: 0x2810 leído: 0x3FFF
list p=16F84A
include "p16F84A.inc"
org 00h
reset
goto inicio
org 10h
inicio
bsf STATUS,5
movlw 00h
movwf TRISB
bcf STATUS,5
programa
movlw 00h
movwf PORTB
call sg1
movlw 0ffh
movwf PORTB
call sg1
goto programa
sg1
movlw 0ffh
movwf 0ch
movwf 0dh
movlw 01h
movwf 0eh
salto1
decfsz 0ch,1
goto salto1
decfsz 0dh,1
goto salto1
decfsz 0eh,1
goto salto1
return
end
Cual es el error?
lo he rebisado i no he encontrado nada
Ayudenme
vale creo que el problema no esta aqui sinó que cuando lo creo con el Mplab i le doi a Proyect-Build All aparece esto:
Clean: Deleting intermediary and output files.
Clean: Deleted file "led2.err".
Clean: Deleted file "C:\Users\sergi\Documents\pic 16f84a\prueva2\led2.cod".
Clean: Deleted file "C:\Users\sergi\Documents\pic 16f84a\prueva2\led2.hex".
Clean: Deleted file "led2.lst".
Clean: Done.
Executing: "C:\Program Files\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84A "led2.asm" /l"led2.lst" /e"led2.err"
Warning[205] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 1 : Found directive in column 1. (list)
Warning[215] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 1 : Processor superseded by command line. Verify processor symbol.
Warning[205] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 3 : Found directive in column 1. (org)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 4 : Found opcode in column 1. (goto)
Warning[205] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 6 : Found directive in column 1. (org)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 8 : Found opcode in column 1. (bsf)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 9 : Found opcode in column 1. (movlw)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 10 : Found opcode in column 1. (movwf)
Message[302] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 10 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 11 : Found opcode in column 1. (bcf)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 12 : Found opcode in column 1. (movlw)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 13 : Found opcode in column 1. (movwf)
Warning[203] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 15 : Found opcode in column 1. (goto)
Warning[205] C:\USERS\SERGI\DOCUMENTS\PIC 16F84A\PRUEVA2\LED2.ASM 16 : Found directive in column 1. (END)
Loaded C:\Users\sergi\Documents\pic 16f84a\prueva2\led2.COD.
BUILD SUCCEEDED: Thu Feb 17 21:17:18 2011
ayudenme porque no entiendo nada
Última edición: