Hallo Leute,

kann mir jemand sagen was an dier Schreibweise nich richtig ist?
PortC ist bei mir als Output und PortAC als Input konfiguriert.

Code:
Do

   If Porta = &B00000000 Then
      Portc.0 = 1
      Portc.1 = 0
      Portc.2 = 1
      Portc.3 = 0
   End If

   If Porta = &B00000001 Then
      Portc.0 = 1
      Portc.1 = 0
      Portc.2 = 0
      Portc.3 = 0
   End If


   If Porta = &B00000010 Then
      Portc.0 = 0
      Portc.1 = 0
      Portc.2 = 1
      Portc.3 = 0
   End If


   If Porta = &B00000011 Then
      Portc.0 = 1
      Portc.1 = 0
      Portc.2 = 1
      Portc.3 = 0
   End If

Loop
Ich vermute, dass hiermit "Porta = &B00000011" etwas nicht stimmt.

Was meint ihr?

Danke schon mal im voraus.