hola, me gustaria que me digeseis que he hecho mal al programar y/o provar el pic, he utilizado este programa:
list p=16f84a
include <p16f84a.inc>
TRISB equ 0x86
TRISA equ 0x85
STATUS equ 0x03
PORTB equ 0x06
PORTA equ 0x05
contador1 equ 0x0D
contador2 equ 0x0E
org 0x00
bsf STATUS,5
movlw b'11111101'
movwf TRISB
bcf STATUS,5
bcf PORTB,1
ENCABEZADO
bsf PORTB,1
call delay
bcf PORTB,1
call delay
goto ENCABEZADO
delay
movlw 0xff
movwf contador1
repeticion1
movlw 0xff
movwf contador2
repeticion2
decfsz contador2,1
goto repeticion2
decfsz contador1,1
goto repeticion1
return
end
después lo compile con el mpasm de mplab version 7.51, y al compilarlo me daban estos mensages:
Make: The target "C:\Users\Kp\Desktop\Parapadeo LED.o" is out of date.
Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84A "Parapadeo LED.asm" /l"Parapadeo LED.lst" /e"Parapadeo LED.err"
Warning[205] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 1 : Found directive in column 1. (list)
Warning[205] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 2 : Found directive in column 1. (include)
Warning[205] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 11 : Found directive in column 1. (org)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 12 : Found opcode in column 1. (bsf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 13 : Found opcode in column 1. (movlw)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 14 : Found opcode in column 1. (movwf)
Message[302] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 14 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 15 : Found opcode in column 1. (bcf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 16 : Found opcode in column 1. (bcf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 18 : Found opcode in column 1. (bsf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 19 : Found opcode in column 1. (call)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 20 : Found opcode in column 1. (bcf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 21 : Found opcode in column 1. (call)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 22 : Found opcode in column 1. (goto)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 25 : Found opcode in column 1. (movlw)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 26 : Found opcode in column 1. (movwf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 28 : Found opcode in column 1. (movlw)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 29 : Found opcode in column 1. (movwf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 31 : Found opcode in column 1. (decfsz)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 32 : Found opcode in column 1. (goto)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 33 : Found opcode in column 1. (decfsz)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 34 : Found opcode in column 1. (goto)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 35 : Found opcode in column 1. (return)
Warning[205] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 37 : Found directive in column 1. (end)
Loaded C:\Users\Kp\Desktop\Parapadeo LED.COD.
BUILD SUCCEEDED: Tue Aug 17 13:33:18 2010
despues de esto, lo probe en el pic simulator IDE, y aparentemente funcionaba como tenia que funcionar...
despues lo programe con el winpic800, con el programador puerto paralelo de pablin, http://www.pablin.com.ar/electron/circuito/mc/ppp/index.htm
lo programe, y despues monte el pic en una board con un cristal de 4mhz, 2 condensadores de 22 pf, resistencia de 220 ohm, el led, una fuente de 5 v, y etc... y nada, no ocurre nada... porfavor necesito ayuda...
list p=16f84a
include <p16f84a.inc>
TRISB equ 0x86
TRISA equ 0x85
STATUS equ 0x03
PORTB equ 0x06
PORTA equ 0x05
contador1 equ 0x0D
contador2 equ 0x0E
org 0x00
bsf STATUS,5
movlw b'11111101'
movwf TRISB
bcf STATUS,5
bcf PORTB,1
ENCABEZADO
bsf PORTB,1
call delay
bcf PORTB,1
call delay
goto ENCABEZADO
delay
movlw 0xff
movwf contador1
repeticion1
movlw 0xff
movwf contador2
repeticion2
decfsz contador2,1
goto repeticion2
decfsz contador1,1
goto repeticion1
return
end
después lo compile con el mpasm de mplab version 7.51, y al compilarlo me daban estos mensages:
Make: The target "C:\Users\Kp\Desktop\Parapadeo LED.o" is out of date.
Executing: "C:\Program Files (x86)\Microchip\MPASM Suite\MPAsmWin.exe" /q /p16F84A "Parapadeo LED.asm" /l"Parapadeo LED.lst" /e"Parapadeo LED.err"
Warning[205] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 1 : Found directive in column 1. (list)
Warning[205] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 2 : Found directive in column 1. (include)
Warning[205] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 11 : Found directive in column 1. (org)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 12 : Found opcode in column 1. (bsf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 13 : Found opcode in column 1. (movlw)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 14 : Found opcode in column 1. (movwf)
Message[302] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 14 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 15 : Found opcode in column 1. (bcf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 16 : Found opcode in column 1. (bcf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 18 : Found opcode in column 1. (bsf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 19 : Found opcode in column 1. (call)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 20 : Found opcode in column 1. (bcf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 21 : Found opcode in column 1. (call)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 22 : Found opcode in column 1. (goto)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 25 : Found opcode in column 1. (movlw)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 26 : Found opcode in column 1. (movwf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 28 : Found opcode in column 1. (movlw)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 29 : Found opcode in column 1. (movwf)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 31 : Found opcode in column 1. (decfsz)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 32 : Found opcode in column 1. (goto)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 33 : Found opcode in column 1. (decfsz)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 34 : Found opcode in column 1. (goto)
Warning[203] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 35 : Found opcode in column 1. (return)
Warning[205] C:\USERS\KP\DESKTOP\PARAPADEO LED.ASM 37 : Found directive in column 1. (end)
Loaded C:\Users\Kp\Desktop\Parapadeo LED.COD.
BUILD SUCCEEDED: Tue Aug 17 13:33:18 2010
despues de esto, lo probe en el pic simulator IDE, y aparentemente funcionaba como tenia que funcionar...
despues lo programe con el winpic800, con el programador puerto paralelo de pablin, http://www.pablin.com.ar/electron/circuito/mc/ppp/index.htm
lo programe, y despues monte el pic en una board con un cristal de 4mhz, 2 condensadores de 22 pf, resistencia de 220 ohm, el led, una fuente de 5 v, y etc... y nada, no ocurre nada... porfavor necesito ayuda...