hola a todos apelo a su gran sentido de ayuda al projimo desde ya muchas gracias por leer mi problema
resulta que hice un programa en donde tengo un stop, star, jog(pique) que son entradas en el PORTA y comandan una salida del PORTB el programa en la simulacion en proteus 7.7 funciona a las mil maravillas a 4mhz pero cuando lo he implementado en un protoboard no funciona el ckto es simple lo recontra revizado todos los implementos funcionan correctamente he probado con otro integrado identico porcierto estoy usando un p16f84a d 4mhz
el programa en mplab es:
le doy build all en MPLAB y compila
Algo mas que pasa esque utilizo el pickit2 programer
y me sale este aviso :
Warning: No configutation words in hex file.
in MPLAB use File-Export to save hex with config.
este aviso me sale despues de q importo el archivo .hex pero igual pude grabarlo en los pic que use como vuelvo a repetir la simulacion funciona a las mil maravillas
resulta que hice un programa en donde tengo un stop, star, jog(pique) que son entradas en el PORTA y comandan una salida del PORTB el programa en la simulacion en proteus 7.7 funciona a las mil maravillas a 4mhz pero cuando lo he implementado en un protoboard no funciona el ckto es simple lo recontra revizado todos los implementos funcionan correctamente he probado con otro integrado identico porcierto estoy usando un p16f84a d 4mhz
el programa en mplab es:
Código:
;CUANDO SE ACIONA EL STAR SE DESACTIVA EL JOG Y VICEVERSA
;CUANDO SE PRESIONA EL STOP DESHABILITA TODO CON UN 0 LOGICO
LIST P=PIC16F84A
INCLUDE "P16F84A.INC"
ORG 0X00 ;.........
GOTO STAR
ORG 0X0C
CBLOCK
RETAR1
RETAR2
RETAR3
ENDC
STAR
BSF STATUS,RP0
BSF TRISA,0 ;PULSADOR STOP ES UN NORMALMENTE CERRADO
BSF TRISA,1 ;PULSADOR STAR ES UN NO
BSF TRISA,2 ;PULSADOR JOG O PIQUE ES UN NO
BCF TRISB,1 ;SALIDA COMANDADA
BCF STATUS,RP0 ;.........
CLRF PORTA
CLRF PORTB
STOP BTFSS PORTA,0 ;TEST DE STOP PARA EL FUNCIONAMIENTO DEL STAR Y JOG
GOTO BORRA
BTFSS PORTA,1 ;SI STAR ACCIONA DA UN RETARDO SI NO DA PASE AL JOG
GOTO JOG ;IR A JOG
CALL DELAY ;RETARDO ANTI REBOTE
BTFSS PORTA,1 ;SI STAR ACCIONA ENCIENDE LA SALIDA SI NO DA PASE AL JOG
GOTO JOG ;
BSF PORTB,1 ;
GOTO STOP
JOG BTFSC PORTB,1
GOTO STOP
CALL DELAY
BTFSC PORTB,1
GOTO STOP
JAG BTFSS PORTA,2
GOTO APAGA
CALL DELAY
BTFSS PORTA,2
GOTO APAGA
BTFSS PORTA,0
GOTO BORRA
CALL DELAY
BTFSS PORTA,0
GOTO BORRA
BSF PORTB,1
GOTO JAG
APAGA BCF PORTB,1
GOTO STOP
BORRA CLRF PORTB
GOTO STOP
DELAY
MOVLW .7
MOVWF RETAR1
L1 MOVLW .213
MOVWF RETAR2
L2 CLRWDT
DECFSZ RETAR2
GOTO L2
DECFSZ RETAR1
GOTO L1
CLRWDT
RETURN
END
---------------------------------------------------------------------
Debug build of project `D:\carlos\pruebas pic\circuito stop,star,jog\SSJS.mcp' started.
Language tool versions: MPASMWIN.exe v5.37, mplink.exe v4.37, mplib.exe v4.37
Preprocessor symbol `__DEBUG' is defined.
Wed Sep 22 11:41:29 2010
----------------------------------------------------------------------
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "C:\Archivos de programa\Microchip\MPASM Suite\MPASMWIN.exe" /q /p16F84A "SSJS.ASM" /l"SSJS.lst" /e"SSJS.err" /o"SSJS.o" /d__DEBUG=1
Warning[205] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 4 : Found directive in column 1. (LIST)
Warning[205] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 5 : Found directive in column 1. (INCLUDE)
Message[313] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 9 : CBLOCK constants will start with a value of 0.
Message[302] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 16 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 17 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 18 : Register in operand not in bank 0. Ensure that bank bits are correct.
Message[302] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 19 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[207] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 24 : Found label after column 1. (STOP)
Warning[207] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 35 : Found label after column 1. (JOG)
Warning[207] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 40 : Found label after column 1. (JAG)
Warning[207] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 53 : Found label after column 1. (APAGA)
Warning[207] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 56 : Found label after column 1. (BORRA)
Warning[207] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 61 : Found label after column 1. (DELAY)
Warning[207] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 64 : Found label after column 1. (L1)
Warning[207] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 66 : Found label after column 1. (L2)
Message[305] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 67 : Using default destination of 1 (file).
Message[305] D:\CARLOS\PRUEBAS PIC\CIRCUITO STOP,STAR,JOG\SSJS.ASM 69 : Using default destination of 1 (file).
Executing: "C:\Archivos de programa\Microchip\MPASM Suite\mplink.exe" /p16F84A "SSJS.o" /u_DEBUG /z__MPLAB_BUILD=1 /z__MPLAB_DEBUG=1 /o"SSJS.cof" /M"SSJS.map" /W
MPLINK 4.37, Linker
Copyright (c) 1998-2010 Microchip Technology Inc.
Errors : 0
MP2HEX 4.37, COFF to HEX File Converter
Copyright (c) 1998-2010 Microchip Technology Inc.
Errors : 0
Loaded D:\carlos\pruebas pic\circuito stop,star,jog\SSJS.cof.
----------------------------------------------------------------------
Debug build of project `D:\carlos\pruebas pic\circuito stop,star,jog\SSJS.mcp' succeeded.
Language tool versions: MPASMWIN.exe v5.37, mplink.exe v4.37, mplib.exe v4.37
Preprocessor symbol `__DEBUG' is defined.
Wed Sep 22 11:41:31 2010
----------------------------------------------------------------------
BUILD SUCCEEDED
Algo mas que pasa esque utilizo el pickit2 programer
y me sale este aviso :
Warning: No configutation words in hex file.
in MPLAB use File-Export to save hex with config.
este aviso me sale despues de q importo el archivo .hex pero igual pude grabarlo en los pic que use como vuelvo a repetir la simulacion funciona a las mil maravillas
