Cos'è ElectroYou | Login Iscriviti

ElectroYou - la comunità dei professionisti del mondo elettrico

Errore 118 mplab ide 8.63 pic16f84a

Raccolta di codici sorgenti

Moderatore: Foto UtentePaolino

0
voti

[1] Errore 118 mplab ide 8.63 pic16f84a

Messaggioda Foto UtenteTizio » 8 mar 2011, 16:22

Il sorgente di codesto programma dovrebbe accendere sequenzialmente 8 led ogni volta che premo p1 (posto su ra0) e azzerare tutto premendo p2 (ra1). Ho utilizzato la tecnica del polling. In fase di compilazione, però, mi da l'errore 118:
Codice: Seleziona tutto
Clean: Deleting intermediary and output files.
Clean: Done.
Executing: "D:\Programmi\Mplab for PIC\MPASM Suite\MPASMWIN.exe" /q /p16F84A "parte manuale sequanziale.asm" /l"parte manuale sequanziale.lst" /e"parte manuale sequanziale.err" /d__DEBUG=1
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 23 : Overwriting previous address contents (0000)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 23 : Overwriting previous address contents (0000)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 24 : Overwriting previous address contents (0001)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 24 : Overwriting previous address contents (0001)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 25 : Overwriting previous address contents (0002)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 25 : Overwriting previous address contents (0002)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 26 : Overwriting previous address contents (0003)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 26 : Overwriting previous address contents (0003)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 27 : Overwriting previous address contents (0004)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 27 : Overwriting previous address contents (0004)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 28 : Overwriting previous address contents (0005)
Error[118]   C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 28 : Overwriting previous address contents (0005)
Message[305] C:\USERS\FRANCESCO\DESKTOP\PIC\PARTE MANUALE SEQUANZIALE.ASM 43 : Using default destination of 1 (file).
Halting build on first failure as requested.
----------------------------------------------------------------------
Debug build of project `C:\Users\Francesco\Desktop\PIC\CONTATORE MANUALE.mcp' failed.
Language tool versions: MPASMWIN.exe v5.39, mplink.exe v4.38, mplib.exe v4.38
Preprocessor symbol `__DEBUG' is defined.
Tue Mar 08 15:05:41 2011

Vi posto il programma:
Codice: Seleziona tutto
;PARTE ACCENSIONE SEQUENZIALE UNIDIREZIONALE LED
;
;

      List      P=PIC16F84A         
      INCLUDE    "P16F84A.INC"   
      ERRORLEVEL    -302
P1      EQU     0         
P2      EQU     1             
ACDC           EQU     0x0E         
      

      BSF     STATUS,RP0         
      MOVLW   B'11111011'      
      MOVWF   TRISA   
      MOVLW   0            
      MOVWF   TRISB
      BCF   STATUS,RP0      
         
      
      ORG     0x00                  
LOOP1           MOVLW   0
      MOVWF   ACDC
      CALL    LED
LOOP2           BTFSS   PORTA,P1   
      GOTO   LOOP2
      MOVLW   8         
      SUBWF   ACDC,0   
      BTFSC   STATUS,Z   
      GOTO   LOOP1   
      INCF   ACDC,1
      CALL   LED
      BTFSS    PORTA,P2
      GOTO    LOOP2      
      GOTO      LOOP1      
                  
LED           MOVF   ACDC,0
      CALL    TABLE
      MOVWF    PORTB
      RETURN

TABLE           ADDWF   PCL   
      RETLW   B'00000001'   ;0
      RETLW   B'00000011'   ;1      
      RETLW   B'00000111'   ;2
      RETLW   B'00001111'   ;3
      RETLW   B'00011111'   ;4
      RETLW   B'00111111'   ;5
      RETLW   B'01111111'   ;6
      RETLW   B'11111111'   ;7
      


      END

Dove sbaglio?
Avatar utente
Foto UtenteTizio
0 1 5
Frequentatore
Frequentatore
 
Messaggi: 111
Iscritto il: 27 set 2009, 15:58

0
voti

[2] Re: Errore 118 mplab ide 8.63 pic16f84a

Messaggioda Foto UtenteTardoFreak » 8 mar 2011, 16:28

Per forza :!:
Hai prima messo del codice (implicito org 0x00) e poi hai rimesso l' org a 0x00. "[#]"
:mrgreen:

L' org comunque non va messa a 0x00 ma almeno a 0x08 perche' alla locazione 0 c'e' il vettore di reset ed alla 4 c'e' il vettore dell' interrupt. -:-
"La follia sta nel fare sempre la stessa cosa aspettandosi risultati diversi".
"Parla soltanto quando sei sicuro che quello che dirai è più bello del silenzio".
Rispondere è cortesia, ma lasciare l'ultima parola ai cretini è arte.
Avatar utente
Foto UtenteTardoFreak
73,9k 8 12 13
-EY Legend-
-EY Legend-
 
Messaggi: 15754
Iscritto il: 16 dic 2009, 11:10
Località: Torino - 3° pianeta del Sistema Solare

0
voti

[3] Re: Errore 118 mplab ide 8.63 pic16f84a

Messaggioda Foto UtenteTizio » 8 mar 2011, 22:23

Mannaggia avevo la risposta sotto gli occhi e non me ne sono accorto, ti ringrazio per il consiglio.
Saluti,
Francesco
Avatar utente
Foto UtenteTizio
0 1 5
Frequentatore
Frequentatore
 
Messaggi: 111
Iscritto il: 27 set 2009, 15:58


Torna a Firmware e programmazione

Chi c’è in linea

Visitano il forum: Nessuno e 4 ospiti