Hallo,

ich habe soeben ein kleines Problem im Simulator von Bascom 1.11.9.0
festgestellt.
Unabhängig vom simulierten Zustand von PINA.0 wird die erste IF Bedingung stets als erfüllt betrachtet. Auch wenn PINA.0 eigentlich = 0 ist.
Bei anderen Portpins ist alles OK.

Code:
$regfile = "attiny24.dat"
$crystal = 1000000
$sim

Config Porta = Input
Config Portb = Output

Do

If Pina.0 = 1 Then
   Portb = 255
   Bitwait Pina.4 , Reset
   Portb = 0
End If

If Pina.1 = 1 Then
   Portb = 255
   Bitwait Pina.4 , Reset
   Portb = 0
End If

If Pina.0 = 0 Then
   Portb = 255
   Bitwait Pina.4 , Reset
   Portb = 0
End If

Loop
End
Seltsam, seltsam.
Gleiches gilt auch für andere Chips, die einen Port A haben.
Hat jemand eine Erklärung?