You are on page 1of 21
EC1258 - MICROPROCESSOR LAB SA A ag SUBHASHINI.S Department of IT CONCEPT mm 0 This project can be used in Quiz competitions. 0 The circuit is based on Microprocessor. o Simultaneously five players can participate in this game. c It has five separate LED’s to indicate who has pressed the key and it also display the number on the seven segment display of the microprocessor kit. CONCEPT Continue. _ a co The Reset switch is used to reset all the switches and the circuit will get ready for the next round. 0 The above system is monitored and controlled by the 8 bit microprocessor 8085 and using the Ports of 8255. CONCEPT Continue. _ a o The Microprocessor continuously monitors the five switches and if any one of the switch is pressed then it latches the switch and the microprocessor switch on the corresponding LED and display the number in the seven segment switch. co A Buzzer sound is also produced to indicate that some one has pressed any one of the Switch. BLOCK DIAGRAM switches ;>-——— (1-5) -——~v Reset Switch 8255 —e 8085 LED Driver Buzzer jo} Buzzer iver |} FLOW CHART SWITCH CFF ALL CIRCUIT DIAGRAM rer ? uun2003 o 0 330E BUZZER SOURCE CODE a 000 PORTA EQU OCH 000 PORTB EGU DH 000 REG =EQU =ODEH O000 ORG 4100H 4100 = 3694 MVIA,S4H 4102 D3 DE OUT REG 4104 3EDF MVI AIOE 4106 §=0300 OUT PORTB SOURCE CODE Continue. _ a 4108 ODBOC TOP: INPORTA get switch! status AINA «EB O2 ANI OOOOOOI08 ;check first button AIC. «C2 2E AI JNZ SWI 4i0F = DBO IN PORTA :get switch2 status 4 EB O4 ANI OOOOOIOOB — ;check second button 43 £238 4 JNZ SW2 46 = =DBOE IN PORTA wget switch3 status 48 = E608 ANI QOOQIQ008 — check third button 4A £2.42 4 NZ SW3 SOURCE CODE Continue. _ a 4D) = DBO IN PORTA :get switch4 status AF «EB AO ANI QOD(00008 = ;check fourth button 4l2i C2 40 Al JNZ SW4 4124 DBO IN PORTA ;get switchd status 4126 = E620 ANI QOIDOQ008 — ;check fifth button 4128 «C2 564! JNZ SWS 4(2B C3 08 Al JMP TOP AE = SEFE SWI: MVNA BB sswitch ONT LED 4130 0300 OUT PORTB 4132, CD 7041 CALL DELAY SOURCE CODE Continue. _ a 4135 C350 41 JMP DOWN 4138 SEFD = SW2: MVIASIII0IB switch ON 2 LED 4I3A D3 0D OUT PORTB 430 = CD 7041 CALL DELAY 4I3F 0 C3 5D 41 JMP DOWN 4142) 3EFBOSW3: MVIASIICIIB — -switch ON 3 LED 444 0300 OUT PORTB 446 CD704I CALL DELAY 449 (35D 41 JMP DOWN 4G BEF? «| SW4: MVIAJIIIOIIE =~ sswitch ON 4 LED 44E D300 OUT PORTB SOURCE CODE Continue. _ a 4150 CO7041 CALL DELAY 4153 C350 41 JMP DOWN 4IS6 EEF «= SWS: MVIAIIDIIIE ~— sswitch ONS LED 458 O300 OUT PORTB 415A CD 7041 CALL DELAY 45D 7 DOWN: MOV A.C 4ISE —«EBIF ANI IFH 4160 §= D300 OUT PORTB 4162 DBOC OD: = INPORTA 4164 = EBOI ANI 1H SOURCE CODE Continue. _ a 4IBE 4169 AIEB 4160 4170 4170 4im AIT3 476 4I77 CAEZ 41 3E DF D300 C3 08 41 oF 06 02 OF OO LOOPI: 1B 78 DELAY: LOOP: dZ0 MVI AONB OUT PORTB JMP TOP MOVCA MVIB,02H LX! D,OFH DCX D MOV AE SOURCE CODE Continue. _ a 4178 4179 ANC 4170 4180 4lg1 B2 027641 05 27341 C3 ORAD JNZ LOOP DERB JNZ LOOP! RET END WORK FLOW ee Move The Immediate data HDI 8 to Accumulator Get the Status of Switch | To Check the first Button - Perform the Immediate AND Operation OOOO010 With ACC value HOI B | 1 0 | 1 | | | 0 0 0 0 0 0 | 0 0 a 0 O 0 Oo I If no zero Jump To swl WORK FLOW a SWITCH ON LED ONE move the data to Acc |((! {/{1 8 Call the Delay Program In Delay Move the Acc value to C Register And load the OF H (0000 11111 8)value to DE register Pair Perform the logical ORA Operation Then Jump Down WORK FLOW a In Jump Move E register Value to Accumulator Perform the Immediate AND Operation with the value(OF H) Finally Reset the Acc Value with {101111 B Like Wise all the switches are tested. Initially all LEDs set to off ELECTRONIC QUIZ TABLE a Microprocessor Found the switch then the led will glow and buzzer is on CECRS Microprocessor Found the pressed switch then the led will glow and buzzer is on the No shown the 7 - Segment LED © e000 SEVEN DEGMENT LED THANK YOU

You might also like