26.10.2012 Aufrufe

Tresor-Steuerung

Tresor-Steuerung

Tresor-Steuerung

MEHR ANZEIGEN
WENIGER ANZEIGEN

Erfolgreiche ePaper selbst erstellen

Machen Sie aus Ihren PDF Publikationen ein blätterbares Flipbook mit unserer einzigartigen Google optimierten e-Paper Software.

ldi R16, 0x02<br />

cbi RS ;LCD soll Steuerbefehl erhalten<br />

cbi RW ;LCD soll lesen<br />

rcall LC2<br />

cbi RW ;Disable LCD Contr. 1<br />

sbi RS ;Disable LCD Contr. 2<br />

rcall Warten_1m<br />

ldi R16, ' '<br />

rcall LC2<br />

ldi R16, ' '<br />

rcall LC2<br />

ldi R16, ' '<br />

rcall LC2<br />

ldi R16, ' '<br />

rcall LC2<br />

ret<br />

;Zeitschleifen<br />

WARTEN_10u: ;Unterprogramm WARTEN 10uSekunden<br />

nop<br />

nop<br />

nop<br />

nop<br />

ret<br />

WARTEN_100u: //Unterprogramm WARTEN_100uSekunden<br />

ldi r23, 9<br />

W2: rcall WARTEN_10u<br />

nop<br />

dec r23<br />

brne W2<br />

ret //Rücksprung hinter den Aufrufbefehl<br />

WARTEN_1m: //Unterprogramm WARTEN_1Milisekunde<br />

ldi r24, 9<br />

W3: rcall WARTEN_100u //R22 ruterzählen<br />

nop<br />

nop<br />

nop<br />

nop<br />

nop<br />

nop<br />

dec r24<br />

brne W3<br />

Seite 34

Hurra! Ihre Datei wurde hochgeladen und ist bereit für die Veröffentlichung.

Erfolgreich gespeichert!

Leider ist etwas schief gelaufen!