Gast
#341602
Hallo, Wie kann ich ein IR Signal, empfangen durch TSOP 1736 am At90S2313 auswerten ? Ich sende die Adresse 0 und den Befehl 35. Wenn Adresse und Command ,die ich via FB sende, empfangen wird möchte ich einen Ausgang ansteuern. Leider klappt das noch nicht. Was machen ich falsch ? $regfile = "2313def.dat" $crystal = 4000000 Config Pinb.0 = Input Config Rc5 = Pinb.0 Enable Interrupts Config Pinb.4 = Output Dim Address As Byte Dim Command As Byte Do Getrc5(address , Command) If Address < 255 Then Command = Command And &B10111111 If Address = 0 Then If Command = 35 Then Toggle Pinb.4 End If End If End If Loop