Error in plugin: Atmel AVR Assembler Command: COMPILE diese fehlermeldung erhalte ich beim debuggen! der aufruf der unterroutine "delay" funktioniert nut, wenn ich nach "rcall delay" etwas stehen habe, z.B. nop wen ich nur einen rjmp befehl danach schreibe, geht es nicht. kann jemand helfen? hier der code ; Ampel steuerung mit ATMega 8 .include "m8def.inc" .def temp = r16 .def uZahl = r17 .def mZahl = r18 .def oZahl = r19 ldi temp, Low(RAMEND) out SPL, temp ldi temp, high(RAMEND) out SPH, temp ;Stack Pointer Intialisieren ldi temp, 0x00 out DDRD, temp ;Byte D ist ausgang ldi temp, 0b00100100 out PORTD, temp ;Alle ampeln Rot ldi oZahl, 0x01 rcall delay nop rjmp loop delay: ldi mZahl, 0xff delay_: ldi uZahl, 201 delay__: dec uZahl brne delay__ dec mZahl brne delay_ dec oZahl brne delay ret loop: ldi temp, 0b00100110 ;Rot - Rot Gelb out PortD, temp ldi oZahl, 1 rcall delay ldi temp, 0b00100001 ;Rot - Grün out PortD, temp ldi oZahl, 5 rcall delay ldi temp, 0b00100010 ;Rot - Gelb out PortD, temp ldi oZahl, 1 rcall delay ldi temp, 0b00100100 ;Rot - Rot out PortD, temp ldi oZahl, 1 rcall delay ldi temp, 0b00110100 ;Rot Gelb - Rot out PortD, temp ldi oZahl, 1 rcall delay ldi temp, 0b00001100 ;Grün - Rot out PortD, temp ldi oZahl, 5 rcall delay ldi temp, 0b00010100 ;Gelb - Rot out PortD, temp ldi oZahl, 1 rcall delay ldi temp, 0b00100100 ;Rot - Rot out PortD, temp ldi oZahl, 1 rcall delay rjmp loop
so, also den error habe ich durch neuinstallation avrs beseitigt. aber jetzt will er sobald ich auf auto connect klicke und der zum STK500 connecten will, will er das board updaten, obwohl ich das vorkurzem schonmal gemacht habe, kann das sein, das ich das machen muss? denn wenn ich auf abrechen klicke und dann die .hex überspiele klappt trotzdem alles gut. aber wenn ich dann das stk umstöpsel, und port D mit den LEDs verbinde, passiert garnichts, also nicht mal eine einzige LED leuchtet. warum??? Helft mir bideeee!
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.