1 Elektronische Bedienkarte Türker Yigitoglu und David Jesensek
2 Ablauf Problemstellung Problemstellung Vorführung Vorführung Elektronische Realisation Elektronische Realisation Programm Programm
3 Kneipe Die Kippe Küche Problem Bedienung
4 Vorgaben fernbedienbarkostengünstig einfach zu bedienen
5 Elektronische Bedienkarte
6 Elektronische Realisation
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
9 Ausschnitte aus dem Programm
10 Struktogramm
11 Struktogramm
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 VERGLEICHSETZEN: VERGLEICHSETZEN: LED1: LED1: cjne A,# b,LED2 cjne A,# b,LED2 mov A,# b mov A,# b ret ret LED2: LED2: cjne A,# b,LED3 cjne A,# b,LED3 mov A,# b mov A,# b ret ret LED3: LED3: cjne A,# b,LED4 cjne A,# b,LED4 mov A,# b mov A,# b ret ret LED4: LED4: cjne A,# b,LED5 cjne A,# b,LED5 mov A,# b mov A,# b ret ret LED5: cjne A,# b,LED6 mov A,# b retLED6: cjne A,# b,LED7 mov A,# b retLED7: cjne A,# b,LED8 mov A,# b retLED8: cjne A,# b,NICHTS mov A,# b NICHTS:ret Taster
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 Infrarot / Interrupt mov IEN0,# b mov IEN0,# b mov TCON,# b mov TCON,# b 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 Infrarot / Interrupt AUSLESEN: AUSLESEN: clr EX1 clr EX1 mov A,# b mov A,# b 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 RC5-Code
18 Verbesserungen mehrere Infrarotempfänger mehrere Infrarotempfänger mehrere Auswahlmöglichkeiten mehrere Auswahlmöglichkeiten
19 Vielen Dank Vielen Dank