Gast
#1873273
Hallo,
wie kriege ich das hin das er meinen ersten programm ablauf nur einmal
ausführt ? hier die software
$regfile = "m8def.dat"
'initialisierung (Atmega8)
$crystal = 3690000 'Frequenz
Config Portb = Output
Config Portc = Output
'Konfiguriert die Ports als Ausgänge
Portb.0 = 1
Waitms 20
Portb.1 = 1
Waitms 20
Portb.2 = 1
Waitms 20
Portb.3 = 1
Waitms 20
Portb.4 = 1
Waitms 20
Portb.5 = 1
Waitms 20
Portc.0 = 1
Waitms 20
Portc.1 = 1
Waitms 20
Portc.2 = 1
Waitms 20
Portc.3 = 1
Waitms 20
Portc.2 = 0
Waitms 10
Portc.1 = 0
Waitms 10
Portc.0 = 0
Waitms 10
Portb.5 = 0
Waitms 10
Portb.4 = 0
Waitms 10
Portb.3 = 0
Waitms 10
Portb.3 = 0
Waitms 10
Portb.2 = 0
Waitms 10
Portb.1 = 0
Waitms 10
Portb.0 = 0
Waitms 10
'Initalisierung
Goto , Do
Do
Portb.0 = 1
Waitms 20
Portb.0 = 0
Waitms 20
Portb.1 = 1
Waitms 20
Portb.1 = 0
Waitms 20
Portb.2 = 1
Waitms 20
Portb.2 = 0
Waitms 20
Portb.3 = 1
Waitms 20
Portb.3 = 0
Waitms 20
Portb.4 = 1
Waitms 20
Portb.4 = 0
Waitms 20
Portb.5 = 1
Waitms 20
Portb.5 = 0
Waitms 20
Portc.0 = 1
Waitms 20
Portc.0 = 0
Waitms 20
Portc.1 = 1
Waitms 20
Portc.1 = 0
Waitms 20
Portc.2 = 1
Waitms 20
Portc.2 = 0
Waitms 20
Portc.3 = 1
Waitms 20
Portc.3 = 0
Waitms 20 'Knight
Rider Vorlauf 10 LED´s
Portc.1 = 1
Waitms 20
Portc.1 = 0
Waitms 20
Portc.0 = 1
Waitms 20
Portc.0 = 0
Waitms 20
Portb.5 = 1
Waitms 20
Portb.5 = 0
Waitms 20
Portb.4 = 1
Waitms 20
Portb.4 = 0
Waitms 20
Portb.3 = 1
Waitms 20
Portb.3 = 0
Waitms 20
Portb.2 = 1
Waitms 20
Portb.2 = 0
Waitms 20
Portb.1 = 1
Waitms 20
Portb.1 = 0
Waitms 20
Portb.0 = 1
Waitms 20
Portb.0 = 0
Waitms 20 ' Knight
Rider Zurücklauf 10 LED´s
Loop
'Endlosschleife
End 'Ende des
Programmes
er soll bis zur intialiesrung einmal durchlaufen und dann in den
normalen programm modus laufen! wie mache ich das am besten?