Hi,
ich hab jetzt versucht auf hardware UART umzusteigen. Allerdings funktionierts immer noch nicht

Hier mal mein Code vom Empfänger:

Code:
$regfile = "attiny2313.dat"
$crystal = 8000000
$baud = 9600


Waitms 100


Config Servos = 4 , Servo1 = Portb.0 , Servo2 = Portb.1 , Servo3 = Portb.2 , Servo4 = Portd.6 , Reload = 10

Config Portb = Output
Config Portd.6 = Output
Config Portd.1 = Output
Portd.1 = 1

On Urxc Onrxd
Enable Urxc
Enable Interrupts



Servo(1) = 130
Servo(2) = 130
Servo(3) = 130
Servo(4) = 130

Dim I As Byte
Dim Servo_data(2) As Byte

I = 0


Do
If I > 1 Then
 Servo(servo_data(1)) = Servo_data(2)
 I = 0
End If

Loop


Onrxd:
  Incr I
  Servo_data(i) = Udr
  Toggle Portd.1
Return


End
An Portd.1 hängt eine LED, um zu schaun ob die ISR überhaupt aufgerufen wird. Allerdings wird sie nicht aufgerufen, die LED ändert nicht ihren Zustand.

Code vom Sender:

Code:
$regfile = "m8def.dat"
$crystal = 8000000
$baud = 9600

Waitms 100



Do
Print "1"
Waitms 10
Print "170"

Wait 2

Print "1"
Waitms 10
Print "70"

Wait 2

Loop
End
Ich weiß echt nicht mehr was ich machen soll. Es will einfach nicht klappen.

Hoffe mir kann jemand helfen.

MfG