Hallo Leute,
kann mir einer erklären, warum an meinem Controller die Pins 2 und 3 vom Port C ständig high sind, wobei alle anderen so funktionieren wie sie sollen!?
Hier noch der Code:
Danke schon mal im voraus.Code:$regfile = "m32def.dat" $crystal = 4000000 $baud = 9600 $hwstack = 250 Config Lcdpin = Pin , Db4 = Porta.3 , Db5 = Porta.4 , Db6 = Porta.5 , Db7 = Porta.6 , E = Porta.2 , Rs = Porta.1 Config Lcd = 16 * 2 l Initlcd Cursor Off Config Portb = Input Config Portc = Output Taste_up Alias Pinb.0 Taste_down Alias Pinb.2 Taste_ok Alias Pinb.1 Config Debounce = 100 'Entprellzeit für Tester auf 30ms Waitms 20 'warte wegen LCD Cls Locate 1 , 1 Lcd "Frequenzbox V06" Locate 2 , 1 Lcd "Testprogramm" Wait 2 Do Portc.3 = 1 Wait 1 Portc.3 = 0 Wait 1 Portc.2 = 1 Wait 1 Portc.2 = 0 Wait 1 Portc.1 = 1 Wait 1 Portc.1 = 0 Wait 1 Portc.0 = 1 Wait 1 Portc.0 = 0 Wait 1 Loop







Zitieren

Lesezeichen