Ich habe mal ein Teil des Schaltplans gezeichnet:

Bild hier  

Habe mittlerweile 860 Ohm Vorwiderstände für die IR-Dioden genommen (probiere aber weiterhin versch.).

Ein Programm zum testen habe ich hier:

Code:
  $regfile = "m32def.dat"
 ' $framesize = 32
  '$swstack = 32
  '$hwstack = 32
  $crystal = 16000000
  $baud = 9600

Config Pind.5 = Output
Config Pinc.2 = Output
Config Pinc.3 = Output
Config Pinc.4 = Output
Config Pinc.5 = Output
Config Pinc.6 = Output
Config Pinb.0 = Output
Config Pinb.1 = Output

Dim Togbit As Byte
Dim Command1 As Byte , Command2 As Byte , Command3 As Byte , Command4 As Byte , Command5 As Byte
Dim Address As Byte

Command1 = 11
Command2 = 12
Command3 = 13
Command4 = 14
Command5 = 15
Togbit = 0
Address = 1

Do

   Portb.0 = 1
   Portb.1 = 1

   Portc.6 = 1
   Print "1"
   Rc5send Togbit , Address , Command1
   Portc.6 = 0
   Portc.5 = 1
   Print "2"
   Rc5send Togbit , Address , Command2
   Portc.5 = 0
   Portc.4 = 1
   Print "3"
   Rc5send Togbit , Address , Command3
   Portc.4 = 0
   Portc.3 = 1
   Print "4"
   Rc5send Togbit , Address , Command4
   Portc.3 = 0
   Portc.2 = 1
   Print "5"
   Rc5send Togbit , Address , Command5
   Portc.2 = 0

Loop

End
Der andere Atmel 32 empfängt die Daten und verwertet diese entsprechend dem gespeicherten Programm, benutze also 2 Controller.