Die Präsentation wird geladen. Bitte warten

Die Präsentation wird geladen. Bitte warten

1 Elektronische Bedienkarte Türker Yigitoglu und David Jesensek.

Ähnliche Präsentationen


Präsentation zum Thema: "1 Elektronische Bedienkarte Türker Yigitoglu und David Jesensek."—  Präsentation transkript:

1 1 Elektronische Bedienkarte Türker Yigitoglu und David Jesensek

2 2 Ablauf Problemstellung Problemstellung Vorführung Vorführung Elektronische Realisation Elektronische Realisation Programm Programm

3 3 Kneipe Die Kippe Küche Problem Bedienung

4 4 Vorgaben fernbedienbarkostengünstig einfach zu bedienen

5 5 Elektronische Bedienkarte

6 6 Elektronische Realisation

7 7 Bauteile Infrarotempfänger TSOP 1736 Infrarotempfänger TSOP 1736 Taster S1 – S3 zum setzen Taster S1 – S3 zum setzen Taster R1 – R3 zum löschen Taster R1 – R3 zum löschen Register 74LS374 Register 74LS374 Low Current LED´s Low Current LED´s

8 8

9 9 Ausschnitte aus dem Programm

10 10 Struktogramm

11 11 Struktogramm

12 12 Taster SETSTUDI1: SETSTUDI1: mov A,R4 mov A,R4 lcall VERGLEICHSETZEN lcall VERGLEICHSETZEN mov R4,A mov R4,A lcall LEDSETZENUNDLOESCHEN lcall LEDSETZENUNDLOESCHEN clr P1.5 clr P1.5 setb P1.6 setb P1.6 setb P1.7 setb P1.7 clr P5.7 clr P5.7 setb P5.7 setb P5.7 clr P5.7 clr P5.7 ljmp ABFRAGE ljmp ABFRAGE ABFRAGE: jnb P5.0,SETSTUDI1 jnb P5.3,RESETSTUDI1 jnb P5.1,SETSTUDI2 jnb P5.4,RESETSTUDI2 jnb P5.2,SETSTUDI3 jnb P5.5,RESETSTUDI3 jmp ABFRAGE

13 13 VERGLEICHSETZEN: VERGLEICHSETZEN: LED1: LED1: cjne A,#00000000b,LED2 cjne A,#00000000b,LED2 mov A,#00000001b mov A,#00000001b ret ret LED2: LED2: cjne A,#00000001b,LED3 cjne A,#00000001b,LED3 mov A,#00000011b mov A,#00000011b ret ret LED3: LED3: cjne A,#00000011b,LED4 cjne A,#00000011b,LED4 mov A,#00000111b mov A,#00000111b ret ret LED4: LED4: cjne A,#00000111b,LED5 cjne A,#00000111b,LED5 mov A,#00001111b mov A,#00001111b ret ret LED5: cjne A,#00001111b,LED6 mov A,#00011111b retLED6: cjne A,#00011111b,LED7 mov A,#00111111b retLED7: cjne A,#00111111b,LED8 mov A,#01111111b retLED8: cjne A,#01111111b,NICHTS mov A,#11111111b NICHTS:ret Taster

14 14 LED´s LEDSETZENUNDLOESCHEN: LEDSETZENUNDLOESCHEN: rrc A rrc A mov P4.0,C mov P4.0,C rrc A rrc A mov P4.2,C mov P4.2,C rrc A rrc A mov P4.4,C mov P4.4,C rrc A rrc A mov P4.6,C mov P4.6,C rrc A rrc A mov P4.7,C mov P4.7,C rrc A rrc A mov P4.5,C mov P4.5,C rrc A rrc A mov P4.3,C mov P4.3,C rrc A rrc A mov P4.1,C mov P4.1,C ret ret mov A,R4 lcall VERGLEICHSETZEN mov R4,A lcall LEDSETZENUNDLOESCHEN clr P1.5 setb P1.6 setb P1.7 clr P5.7 setb P5.7 clr P5.7 ljmp ABFRAGE

15 15 Infrarot / Interrupt mov IEN0,#10010100b mov IEN0,#10010100b mov TCON,#00000100b mov TCON,#00000100b setb P3.3 setb P3.3 ORG 013h;Interruptvektoradresse Externer Interrupt 1(P3.3) ORG 013h;Interruptvektoradresse Externer Interrupt 1(P3.3) lcall AUSLESEN;Aufruf Interrupt-Service-Routine AUSLESEN lcall AUSLESEN;Aufruf Interrupt-Service-Routine AUSLESEN reti reti

16 16 Infrarot / Interrupt AUSLESEN: AUSLESEN: clr EX1 clr EX1 mov A,#00000000b mov A,#00000000b lcall MITTE lcall MITTE lcall BITS lcall BITS mov C,P3.3 mov C,P3.3 rlc A rlc A lcall BITS lcall BITS mov C,P3.3 mov C,P3.3 rlc A rlc A MITTE: mov R2,#0222d SCHLEIFE1: djnz R2,SCHLEIFE1 ret BITS: mov R2,#0222d mov R3,#04d SCHLEIFE2: djnz R2,SCHLEIFE2 mov R2,#0222d djnz R3,SCHLEIFE2 ret

17 17 RC5-Code

18 18 Verbesserungen mehrere Infrarotempfänger mehrere Infrarotempfänger mehrere Auswahlmöglichkeiten mehrere Auswahlmöglichkeiten

19 19 Vielen Dank Vielen Dank


Herunterladen ppt "1 Elektronische Bedienkarte Türker Yigitoglu und David Jesensek."

Ähnliche Präsentationen


Google-Anzeigen