Gast
#695140
Hallo! habe so ein Code: $regfile = "m16def.dat" $crystal = 8000000 Config Lcd = 16 * 4 Config Lcdpin = Pin , Db4 = Portb.0 , Db5 = Portb.1 , Db6 = Portb.2 , Db7 = Portb.3 , E = Portb.5 , Rs = Portb.4 Initlcd Dim Zahl As Byte Cls Cursor Off Do Cls Zahl = Pina Zahl = Zahl And &B00001111 Locate 1 , 1 Lcd Zahl Waitms 50 Loop End also beim PortA funktioniert das alles wunderbar. wenn ich aber Statt Dim Zahl As Byte Dim Zahl1 As Byte und statt Zahl = Pina Zahl = Zahl And &B00001111 Zahl1 = Pind Zahl1 = Zahl1 And &B00001111 und LCD Zahl1 schreibe, funktioniert das nicht. warum? Danke