also der Stackpointer besteht beim 2313 wirklich nur aus einem Byte, den rest werde ich auch mal geschwind probieren.
Edit:
Also es funkt tioniert immer noch ned ich hab jetzt den code noch mals vereinfacht und alles umgestellt und noch mal angeschaut, aber immer noch nede!?!?!
Code:
;Includedatei für AT90S2313 laden
.include "2313def.inc"
;Arbeitsregister definieren
.def temp = r16
;Interupt Config.
.org 0000
rjmp start
reti
reti
reti
reti
rjmp t1int
Start:
;Interupt Config II
sei
ldi temp,0b00000000
out tccr1a,temp
ldi temp,0b10000010
out tccr1b,temp
ldi temp,0xe2
out tcnt1h, temp
ldi temp,0xb4
out tcnt1l, temp
;Stack einrichten
ldi temp,low(ramend)
out spl,temp
;PortB I/O-Config
ldi temp,0b11111111
out ddrb, temp
;PortD I/O-Config
ldi temp,0b11111111
out ddrd, temp
;Hauptprogramm
main:
rjmp main
;Interuptroutine
t1int:
ldi temp,0b00000001
out portd,temp
Reti
Lesezeichen