Tiny12-Lauflicht will nicht
Hallo!
Code:
$regfile = "at12def.dat"
$crystal = 1200000
$tiny
Config Pinb.0 = Output
Config Pinb.1 = Output
Config Pinb.2 = Output
Config Pinb.3 = Output
Config Pinb.4 = Output
Eins:
Portb = 1
Waitms 200
Portb = 2
Waitms 200
Portb = 4
Waitms 200
Portb = 8
Waitms 200
Portb = 16
Waitms 200
Goto Eins
Bringt mir folgendes Ergebnis:
http://video.google.de/videoplay?doc...41342921510491
Ich hab 10x mit Datenblatt meinen Schaltplan kontrolliert und kam zu dem Schluss, dass die Pinne in der richtigen Reihenfolge mit der LED-Zeile verbunden sind. Die linke ist LED1(für Informatiker 0). Die wird auch zuerst eingeschaltet. Aber danach wirds dann komisch. Ist der Fehler nun in der Software oder doch irgendwie in der Hardware?
Ich bin verzweifelt! :)
Re: Tiny12-Lauflicht will nicht
Hallo!, versuch doch mal den folgenden Code:
Ist nur mal eine Idee, habs nicht getestet.
Code:
$regfile = "at12def.dat"
$crystal = 1200000
$tiny
Config Portb.0 = Output 'Port setzt auf Augsgang
Config Portb.1 = Output 'Pin setzt auf Eingang !
Config Portb.2 = Output
Config Portb.3 = Output
Config Portb.4 = Output
Eins:
Portb = 1
Waitms 200
Portb = 2
Waitms 200
Portb = 4
Waitms 200
Portb = 8
Waitms 200
Portb = 16
Waitms 200
Goto Eins
Viel Erfolg Bernd