Upload
carsten-heinen
View
110
Download
0
Embed Size (px)
Citation preview
11
ElektronischeElektronische
BedienkarteBedienkarte
Türker Yigitoglu und David Jesensek
22
AblaufAblauf
ProblemstellungProblemstellung VorführungVorführung Elektronische RealisationElektronische Realisation ProgrammProgramm
33
Kneipe “Die Kippe“
Küche
ProblemProblem
Bedienung
44
VorgabenVorgaben
fernbedienbarfernbedienbar
kostengünstigkostengünstig
einfach zu bedieneneinfach zu bedienen
55
Elektronische BedienkarteElektronische Bedienkarte
66
ElektronischeElektronische
RealisationRealisation
77
BauteileBauteile
Infrarotempfänger TSOP 1736Infrarotempfänger TSOP 1736 Taster S1 – S3 zum setzenTaster S1 – S3 zum setzen Taster R1 – R3 zum löschenTaster R1 – R3 zum löschen Register 74LS374Register 74LS374 Low Current LED´sLow Current LED´s
88
1 2 3 4 5 6
A
B
C
D
654321
D
C
B
A
Title
Number RevisionSize
B
Date: 7-Feb-2005 Sheet of File: F:\BEDIENKARTE\..\Bedienkarte.Sch Drawn By:
V8LED
V2LED
V3LED
V4LED
V6LED
V7LED
V1LED
V5LED
1A1
2A2
3A3
VCCA4
P4.7A5
P4.5A6
P4.3A7
P4.1A8
P5.0A9
P5.2A10
P5.4A11
P5.6A12
P1.0A13
P1.2A14
P1.4A15
P1.6A16
P3.7A17
P3.5A18
P3.3A19
P3.1A20
GNDA21
22A22
23A23
24A24
25A25
UAREFA26
P6.0A27
P6.2A28
P6.4A29
P6.6A30
UAGNDA31
32A32
A0B1
A1B2
A2B3
A3B4
A4B5
A5B6
A6B7
A7B8
AD0B9
AD1B10
AD2B11
AD3B12
AD4B13
AD5B14
AD6B15
AD7B16
A15B17
A14B18
A13B19
A12B20
A11B21
A10B22
A9B23
A8B24
25B25
26B26
27B27
28B28
29B29
30B30
31B31
32B32
1C1
2C2
3C3
VCCC4
P4.6C5
P4.4C6
P4.2C7
P4.0C8
P5.1C9
P5.3C10
P5.5C11
P5.7C12
P1.1C13
P1.3C14
P1.5C15
P1.7C16
P3.6C17
P3.4C18
P3.2C19
P3.0C20
GNDC21
22C22
23C23
24C24
25C25
VAREFC26
P6.1C27
P6.3C28
P6.5C29
P6.7C30
VAGNDC31
32C32
VG96
MCS535_96P
1 23 45 67 89 1011 1213 1415 1617 1819 20
74LS374A
HEADER 10X2
LED6
LED4
LED2LED1
LED3
LED7
LED5
LED0
V16LED
V10LED
V11LED
V12LED
V14LED
V15LED
V9LED
V13LED
GND
1 23 45 67 89 1011 1213 1415 1617 1819 20
74LS374B
HEADER 10X2
LED6
LED4
LED2LED1
LED3
LED7
LED5
LED0
V24LED
V18LED
V19LED
V20LED
V22LED
V23LED
V17LED
V21LED
1 23 45 67 89 1011 1213 1415 1617 1819 20
74LS374C
HEADER 10X2
LED6
LED4
LED2LED1
LED3
LED7
LED5
LED0
S1
TASTER
RES1
TASTER
S2
TASTER
RES2
TASTER
S3
TASTER
RES3
TASTER
GND
123
TSOP1736
KLEMME3
R7RES2
R8RES2
R6RES2
R5RES2
R4RES2
R3RES2
R2RES2
R1RES2
R9RES2
R10RES2
R11RES2
R12RES2
R13RES2
R14RES2
R15RES2
R16RES2
R17RES2
R18RES2
R19RES2
R24RES2
R23RES2
R22RES2
R21RES2
R20RES2
GND
GND GND GND
GND
VCC
VCC VCC
VCC
VCC
P4.1
P4.1
P4.1 P4.1
P4.3 P4.3 P4.3
P4.3P4.5
P4.5P4.5P4.5
P4.7 P4.7
P4.7
P4.7
P4.0 P4.0
P4.0
P4.0
P4.2
P4.2P4.2P4.2
P4.4
P4.4P4.4 P4.4
P4.6
P4.6P4.6 P4.6
Clock
Clock
ClockClock
O/E_3O/E_2O/E_1
P3.3
P3.3
P5.0
P5.0
P5.2
P5.2
P5.1
P5.1 P5.3
P5.3P5.4
P5.4
P5.5
P5.5
O/E_2 O/E_3O/E_1
99
Ausschnitte aus dem Ausschnitte aus dem ProgrammProgramm
1010
StruktogrammStruktogramm
1111
StruktogrammStruktogramm
1212
TasterTaster
SETSTUDI1:SETSTUDI1:
mov A,R4mov A,R4 lcall VERGLEICHSETZENlcall VERGLEICHSETZEN mov R4,Amov R4,A lcall LEDSETZENUNDLOESCHENlcall LEDSETZENUNDLOESCHEN clr P1.5clr P1.5 setb P1.6setb P1.6 setb P1.7setb P1.7 clr P5.7 clr P5.7 setb P5.7setb P5.7 clr P5.7clr P5.7 ljmp ABFRAGEljmp ABFRAGE
ABFRAGE:jnb P5.0,SETSTUDI1jnb P5.3,RESETSTUDI1jnb P5.1,SETSTUDI2jnb P5.4,RESETSTUDI2jnb P5.2,SETSTUDI3jnb P5.5,RESETSTUDI3jmp ABFRAGE
1313
VERGLEICHSETZEN:VERGLEICHSETZEN:
LED1:LED1: cjne A,#00000000b,LED2cjne A,#00000000b,LED2 mov A,#00000001bmov A,#00000001b retret LED2:LED2: cjne A,#00000001b,LED3cjne A,#00000001b,LED3 mov A,#00000011bmov A,#00000011b retret LED3:LED3: cjne A,#00000011b,LED4cjne A,#00000011b,LED4 mov A,#00000111bmov A,#00000111b retret LED4:LED4: cjne A,#00000111b,LED5cjne A,#00000111b,LED5 mov A,#00001111bmov A,#00001111b retret
LED5:LED5:cjne A,#00001111b,LED6cjne A,#00001111b,LED6mov A,#00011111bmov A,#00011111bretretLED6:LED6:cjne A,#00011111b,LED7cjne A,#00011111b,LED7mov A,#00111111bmov A,#00111111bretretLED7:LED7:cjne A,#00111111b,LED8cjne A,#00111111b,LED8mov A,#01111111bmov A,#01111111bretretLED8:LED8:cjne A,#01111111b,NICHTScjne A,#01111111b,NICHTSmov A,#11111111bmov A,#11111111bNICHTS:NICHTS:retret
Taster
1414
LED´sLED´s
LEDSETZENUNDLOESCHEN:LEDSETZENUNDLOESCHEN:
rrc Arrc A mov P4.0,Cmov P4.0,C rrc Arrc A mov P4.2,Cmov P4.2,C rrc Arrc A mov P4.4,Cmov P4.4,C rrc Arrc A mov P4.6,Cmov P4.6,C rrc Arrc A mov P4.7,Cmov P4.7,C rrc Arrc A mov P4.5,Cmov P4.5,C rrc Arrc A mov P4.3,Cmov P4.3,C rrc Arrc A mov P4.1,Cmov P4.1,C retret
mov A,R4mov A,R4lcall VERGLEICHSETZENlcall VERGLEICHSETZENmov R4,Amov R4,Alcall LEDSETZENUNDLOESCHENlcall LEDSETZENUNDLOESCHENclr P1.5clr P1.5setb P1.6setb P1.6setb P1.7setb P1.7clr P5.7 clr P5.7 setb P5.7setb P5.7clr P5.7clr P5.7ljmp ABFRAGEljmp ABFRAGE
1515
Infrarot / InterruptInfrarot / Interrupt
mov IEN0,#10010100bmov IEN0,#10010100b mov TCON,#00000100bmov TCON,#00000100b setb P3.3setb P3.3
ORG 013hORG 013h ;Interruptvektoradresse Externer Interrupt 1(P3.3);Interruptvektoradresse Externer Interrupt 1(P3.3) lcall AUSLESENlcall AUSLESEN ;Aufruf Interrupt-Service-Routine AUSLESEN;Aufruf Interrupt-Service-Routine AUSLESEN retireti
1616
Infrarot / InterruptInfrarot / Interrupt
AUSLESEN:AUSLESEN: clr EX1clr EX1 mov A,#00000000bmov A,#00000000b lcall MITTElcall MITTE lcall BITSlcall BITS lcall BITSlcall BITS lcall BITSlcall BITS lcall BITSlcall BITS lcall BITSlcall BITS lcall BITSlcall BITS lcall BITSlcall BITS lcall BITSlcall BITS lcall BITSlcall BITS lcall BITSlcall BITS lcall BITSlcall BITS lcall BITSlcall BITS mov C,P3.3mov C,P3.3 rlc Arlc A lcall BITSlcall BITS mov C,P3.3mov C,P3.3 rlc Arlc A
MITTE:mov R2,#0222dSCHLEIFE1:djnz R2,SCHLEIFE1ret
BITS:mov R2,#0222dmov R3,#04dSCHLEIFE2:djnz R2,SCHLEIFE2mov R2,#0222ddjnz R3,SCHLEIFE2ret
1717
RC5-CodeRC5-Code
1818
VerbesserungenVerbesserungen
mehrere Infrarotempfängermehrere Infrarotempfänger mehrere Auswahlmöglichkeitenmehrere Auswahlmöglichkeiten
1919
Vielen DankVielen Dank