Problem mit PIC-Programm

Im Unterforum Microcontroller - Beschreibung: Hardware - Software - Ideen - Projekte

Elektronik Forum Nicht eingeloggt       Einloggen       Registrieren




[Registrieren]      --     [FAQ]      --     [ Einen Link auf Ihrer Homepage zum Forum]      --     [ Themen kostenlos per RSS in ihre Homepage einbauen]      --     [Einloggen]

Suchen


Serverzeit: 27 9 2024  22:01:04      TV   VCR Aufnahme   TFT   CRT-Monitor   Netzteile   LED-FAQ   Osziloskop-Schirmbilder            


Elektronik- und Elektroforum Forum Index   >>   Microcontroller        Microcontroller : Hardware - Software - Ideen - Projekte


Autor
Problem mit PIC-Programm

    







BID = 509699

Microvader

Gerade angekommen


Beiträge: 10
 

  


HAllo,
ein Freund hat mir ein Programm geschick, aber mein Computerprogramm meldet 22 Fehler !!
Kann jemand das schnell durchschauen und mir dann die schlimmsten Fehler sagen?
Hier ist das Programm:

list=p10f202

#include 'p10f202.inc'

__CONFIG _CP_OFF & _WDT_OFF & _MCLRE_OFF

org 0x20

ZAEHL1 res 1

org 0x00

movwf OSCCAL

movlw b'00000000'
tris GPIO

bsf GPIO,0

bsf GPIO,1
call ein_sec
call ein_sec
call ein_sec
bcf GPIO,1

movlw D'30'
movwf ZAEHL1

start call beep
decfsz ZAEHL1,1
goto start

bcf GPIO,0

movlw D'60'
movwf ZAEHL1

start2 call blink
decfsz ZAEHL1,1
goto start2

movlw D'30'
movwf ZAEHL1

start3 call blink2
decfsz ZAEHL1,1
goto start3


sleep

blink
bsf GPIO,1
call halb_sec
bcf GPIO,1
call halb_sec
return

blink2

bsf GPIO,1
call ein_sec
bcf GPIO,1
call ein_sec
return



beep
bsf GPIO,1
call ein_sec
bcf GPIO,1
call halb_sec
return

halb_sec
call WAIT
call WAIT
return

ein_sec
call WAIT
call WAIT
call WAIT
call WAIT
return



WAIT
movlw .250
movwf loops

top movlw .250
movwf loops2

top2 nop
decfsz loops2, F
goto top2
decfsz loops, F
goto top
retlw .0

end
Danke schon mal im voraus!











BID = 509703

Racingsascha

Schreibmaschine



Beiträge: 2247
Wohnort: Gundelsheim
ICQ Status  

 

  

Und welche Fehler sind das? Welches Computerprogramm? MPLAB IDE vX.YZ?

_________________
Fnord ist die Quelle aller Nullbits in deinem Computer.
Fnord ist die Angst, die Erleichterung, und ist die Angst.
Fnord schläft nie.

BID = 509706

perl

Ehrenmitglied



Beiträge: 11110,1
Wohnort: Rheinbach


Zitat :
Kann jemand das schnell durchschauen und mir dann die schlimmsten Fehler sagen?
Warum ? Offensichtlich tut dein Programm das doch schon.

BID = 509708

Microvader

Gerade angekommen


Beiträge: 10

JA, genau und das Programm mit dem man die Programme testet heißt MPASMWIN

BID = 509710

Microvader

Gerade angekommen


Beiträge: 10

Das Programm kann mir zwar sagen, dass Fehler drinm sind, aber nicht welche!

BID = 509715

Racingsascha

Schreibmaschine



Beiträge: 2247
Wohnort: Gundelsheim
ICQ Status  

Dann lad dir mal die originale MPLAB IDE (afaik v8.00) von Microchip runter. Die sagt dir das 100%ig.

_________________
Fnord ist die Quelle aller Nullbits in deinem Computer.
Fnord ist die Angst, die Erleichterung, und ist die Angst.
Fnord schläft nie.

BID = 509720

Microvader

Gerade angekommen


Beiträge: 10

Kannst du mir da mal einen Link geben?

BID = 509723

Microvader

Gerade angekommen


Beiträge: 10

Einen Fehler hab ich jetzt schon gefunden:
Ich habe statt list p=10F202, list=p10F202 geschrieben
Jetzt bleiben aber immer noch 21 Fehler übrig!

BID = 509736

Racingsascha

Schreibmaschine



Beiträge: 2247
Wohnort: Gundelsheim
ICQ Status  

Link

EDIT: ein Mod sollte diesen Thread mal nach Mikrocontroller schieben, da ist er imho besser aufgehoben.

_________________
Fnord ist die Quelle aller Nullbits in deinem Computer.
Fnord ist die Angst, die Erleichterung, und ist die Angst.
Fnord schläft nie.

[ Diese Nachricht wurde geändert von: Racingsascha am 21 Mär 2008 19:09 ]

BID = 509753

Microvader

Gerade angekommen


Beiträge: 10

BID = 509760

Ltof

Inventar



Beiträge: 9322
Wohnort: Hommingberg

Wieso fragst Du nicht Deinen Freund? Läuft das Programm bei ihm? Welche Entwicklungsumgebung benutzt er denn - und welche benutzt Du?

edit:
hier sind die Meldungen des Assemblers:


Code :


Error[105] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 2 : Cannot open file (Include File "'p10f202.inc'" not found)
Warning[205] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 4 : Found directive in column 1. (__CONFIG)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 4 : Symbol not previously defined (_CP_OFF)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 4 : Symbol not previously defined (_WDT_OFF)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 4 : Symbol not previously defined (_MCLRE_OFF)
Warning[205] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 6 : Found directive in column 1. (org)
Warning[205] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 10 : Found directive in column 1. (org)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 12 : Found opcode in column 1. (movwf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 12 : Symbol not previously defined (OSCCAL)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 14 : Found opcode in column 1. (movlw)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 15 : Found opcode in column 1. (tris)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 15 : Symbol not previously defined (GPIO)
Error[126] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 15 : Argument out of range (0000 not between 0005 and 0009)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 17 : Found opcode in column 1. (bsf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 17 : Symbol not previously defined (GPIO)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 19 : Found opcode in column 1. (bsf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 19 : Symbol not previously defined (GPIO)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 20 : Found opcode in column 1. (call)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 21 : Found opcode in column 1. (call)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 22 : Found opcode in column 1. (call)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 23 : Found opcode in column 1. (bcf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 23 : Symbol not previously defined (GPIO)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 25 : Found opcode in column 1. (movlw)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 26 : Found opcode in column 1. (movwf)
Message[302] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 26 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 29 : Found opcode in column 1. (decfsz)
Message[302] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 29 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 30 : Found opcode in column 1. (goto)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 32 : Found opcode in column 1. (bcf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 32 : Symbol not previously defined (GPIO)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 34 : Found opcode in column 1. (movlw)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 35 : Found opcode in column 1. (movwf)
Message[302] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 35 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 38 : Found opcode in column 1. (decfsz)
Message[302] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 38 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 39 : Found opcode in column 1. (goto)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 41 : Found opcode in column 1. (movlw)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 42 : Found opcode in column 1. (movwf)
Message[302] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 42 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 45 : Found opcode in column 1. (decfsz)
Message[302] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 45 : Register in operand not in bank 0. Ensure that bank bits are correct.
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 46 : Found opcode in column 1. (goto)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 49 : Found opcode in column 1. (sleep)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 52 : Found opcode in column 1. (bsf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 52 : Symbol not previously defined (GPIO)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 53 : Found opcode in column 1. (call)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 54 : Found opcode in column 1. (bcf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 54 : Symbol not previously defined (GPIO)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 55 : Found opcode in column 1. (call)
Warning[204] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 56 : Found pseudo-op in column 1. (return)
Warning[227] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 56 : Substituting RETLW 0 for RETURN pseudo-op
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 60 : Found opcode in column 1. (bsf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 60 : Symbol not previously defined (GPIO)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 61 : Found opcode in column 1. (call)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 62 : Found opcode in column 1. (bcf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 62 : Symbol not previously defined (GPIO)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 63 : Found opcode in column 1. (call)
Warning[204] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 64 : Found pseudo-op in column 1. (return)
Warning[227] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 64 : Substituting RETLW 0 for RETURN pseudo-op
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 69 : Found opcode in column 1. (bsf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 69 : Symbol not previously defined (GPIO)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 70 : Found opcode in column 1. (call)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 71 : Found opcode in column 1. (bcf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 71 : Symbol not previously defined (GPIO)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 72 : Found opcode in column 1. (call)
Warning[204] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 73 : Found pseudo-op in column 1. (return)
Warning[227] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 73 : Substituting RETLW 0 for RETURN pseudo-op
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 76 : Found opcode in column 1. (call)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 77 : Found opcode in column 1. (call)
Warning[204] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 78 : Found pseudo-op in column 1. (return)
Warning[227] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 78 : Substituting RETLW 0 for RETURN pseudo-op
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 81 : Found opcode in column 1. (call)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 82 : Found opcode in column 1. (call)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 83 : Found opcode in column 1. (call)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 84 : Found opcode in column 1. (call)
Warning[204] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 85 : Found pseudo-op in column 1. (return)
Warning[227] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 85 : Substituting RETLW 0 for RETURN pseudo-op
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 90 : Found opcode in column 1. (movlw)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 91 : Found opcode in column 1. (movwf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 91 : Symbol not previously defined (loops)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 94 : Found opcode in column 1. (movwf)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 94 : Symbol not previously defined (loops2)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 97 : Found opcode in column 1. (decfsz)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 97 : Symbol not previously defined (loops2)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 98 : Found opcode in column 1. (goto)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 99 : Found opcode in column 1. (decfsz)
Error[113] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 99 : Symbol not previously defined (loops)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 100 : Found opcode in column 1. (goto)
Warning[203] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 101 : Found opcode in column 1. (retlw)
Warning[205] D:PROGRAMMEMPLABPRJTESTTEST2.ASM 103 : Found directive in column 1. (end)



Mach was draus.

Gruß,
Ltof

_________________
„Schreibe nichts der Böswilligkeit zu, was durch Dummheit hinreichend erklärbar ist.“
(Hanlon’s Razor)

[ Diese Nachricht wurde geändert von: Ltof am 21 Mär 2008 21:47 ]

BID = 509763

bastler16

Schreibmaschine

Beiträge: 2140
Wohnort: Frankreich

Erst kommt der Dateiname (...test2.asm), danach die Zeile und dann die eigentliche Meldung. Das sollte doch nicht so schwer sein, die Probleme zu erkennen und zu beheben.
Ich kann nicht helfen, bin aus der "AVR-Fraktion".

BID = 509767

Ltof

Inventar



Beiträge: 9322
Wohnort: Hommingberg

"test2.asm" heißt das Listing auf meiner Maschine. Das wird bei Microvader anders heißen.

_________________
„Schreibe nichts der Böswilligkeit zu, was durch Dummheit hinreichend erklärbar ist.“
(Hanlon’s Razor)

BID = 509769

bastler16

Schreibmaschine

Beiträge: 2140
Wohnort: Frankreich

Schon klar.


Zurück zur Seite 1 im Unterforum          Vorheriges Thema Nächstes Thema 


Zum Ersatzteileshop


Bezeichnungen von Produkten, Abbildungen und Logos , die in diesem Forum oder im Shop verwendet werden, sind Eigentum des entsprechenden Herstellers oder Besitzers. Diese dienen lediglich zur Identifikation!
Impressum       Datenschutz       Copyright © Baldur Brock Fernsehtechnik und Versand Ersatzteile in Heilbronn Deutschland       

gerechnet auf die letzten 30 Tage haben wir 16 Beiträge im Durchschnitt pro Tag       heute wurden bisher 13 Beiträge verfasst
© x sparkkelsputz        Besucher : 182085120   Heute : 5752    Gestern : 5794    Online : 607        27.9.2024    22:01
5 Besucher in den letzten 60 Sekunden        alle 12.00 Sekunden ein neuer Besucher ---- logout ----viewtopic ---- logout ----
xcvb ycvb
0.0509300231934