Micro Processor Mini Project,Electronic Quiz Table

9,008 views

Published on

Micro Processor Mini Project,Electronic Quiz Table

1 Comment
7 Likes
Statistics
Notes
No Downloads
Views
Total views
9,008
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
385
Comments
1
Likes
7
Embeds 0
No embeds

No notes for slide

Micro Processor Mini Project,Electronic Quiz Table

  1. 1. EC1258 – MICROPROCESSOR LAB MINI PROJECT ELECTRONIC QUIZ TABLE SUBMITTED BY SUBHASHINI.S Department of IT
  2. 2. CONCEPT  This project can be used in Quiz competitions.  The circuit is based on Microprocessor.  Simultaneously five players can participate in this game.  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. ELECTRONIC QUIZ TABLE
  3. 3. CONCEPT Continue…  The Reset switch is used to reset all the switches and the circuit will get ready for the next round.  The above system is monitored and controlled by the 8 bit microprocessor 8085 and using the Ports of 8255. ELECTRONIC QUIZ TABLE
  4. 4. CONCEPT Continue…  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.  A Buzzer sound is also produced to indicate that some one has pressed any one of the Switch. ELECTRONIC QUIZ TABLE
  5. 5. BLOCK DIAGRAM ELECTRONIC QUIZ TABLE
  6. 6. FLOW CHART ELECTRONIC QUIZ TABLE
  7. 7. CIRCUIT DIAGRAM ELECTRONIC QUIZ TABLE
  8. 8. SOURCE CODE 0000 PORTA EQU 0CH 0000 PORTB EQU 0DH 0000 REG EQU 0EH 0000 ORG 4100H 4100 3E 94 MVI A,94H 4102 D3 0E OUT REG 4104 3E DF MVI A,11011111B 4106 D3 0D OUT PORTB ELECTRONIC QUIZ TABLE
  9. 9. SOURCE CODE Continue… 4108 DB 0C TOP: IN PORTA ;get switch1 status 410A E6 02 ANI 00000010B ;check first button 410C C2 2E 41 JNZ SW1 410F DB 0C IN PORTA ;get switch2 status 4111 E6 04 ANI 00000100B ;check second button 4113 C2 38 41 JNZ SW2 4116 DB 0C IN PORTA ;get switch3 status 4118 E6 08 ANI 00001000B ;check third button 411A C2 42 41 JNZ SW3 ELECTRONIC QUIZ TABLE
  10. 10. SOURCE CODE Continue… 411D DB 0C IN PORTA ;get switch4 status 411F E6 10 ANI 00010000B ;check fourth button 4121 C2 4C 41 JNZ SW4 4124 DB 0C IN PORTA ;get switch5 status 4126 E6 20 ANI 00100000B ;check fifth button 4128 C2 56 41 JNZ SW5 412B C3 08 41 JMP TOP 412E 3E FE SW1: MVI A,11111110 B ;switch ON 1 LED 4130 D3 0D OUT PORTB 4132 CD 70 41 CALL DELAY ELECTRONIC QUIZ TABLE
  11. 11. SOURCE CODE Continue… 4135 C3 5D 41 JMP DOWN 4138 3E FD SW2: MVI A,11111101B ;switch ON 2 LED 413A D3 0D OUT PORTB 413C CD 70 41 CALL DELAY 413F C3 5D 41 JMP DOWN 4142 3E FB SW3: MVI A,11111011B ;switch ON 3 LED 4144 D3 0D OUT PORTB 4146 CD 70 41 CALL DELAY 4149 C3 5D 41 JMP DOWN 414C 3E F7 SW4: MVI A,11110111B ;switch ON 4 LED 414E D3 0D OUT PORTB ELECTRONIC QUIZ TABLE
  12. 12. SOURCE CODE Continue… 4150 CD 70 41 CALL DELAY 4153 C3 5D 41 JMP DOWN 4156 3E EF SW5: MVI A,11101111B ;switch ON 5 LED 4158 D3 0D OUT PORTB 415A CD 70 41 CALL DELAY 415D 79 DOWN: MOV A,C 415E E6 1F ANI 1FH 4160 D3 0D OUT PORTB 4162 DB 0C D1: IN PORTA 4164 E6 01 ANI 01H ELECTRONIC QUIZ TABLE
  13. 13. SOURCE CODE Continue… 4166 CA 62 41 JZ D1 4169 3E DF MVI A,11011111B 416B D3 0D OUT PORTB 416D C3 08 41 JMP TOP 4170 DELAY: 4170 4F MOV C,A 4171 06 02 MVI B,02H 4173 11 0F 00 LOOP1: LXI D,0FH 4176 1B LOOP: DCX D 4177 7B MOV A,E ELECTRONIC QUIZ TABLE
  14. 14. SOURCE CODE Continue… 4178 B2 ORA D 4179 C2 76 41 JNZ LOOP 417C 05 DCR B 417D C2 73 41 JNZ LOOP1 4180 C9 RET 4181 END ELECTRONIC QUIZ TABLE
  15. 15. WORK FLOW Move The Immediate data 1101111 B to Accumulator Get the Status of Switch 1 To Check the first Button - Perform the Immediate AND Operation 0000010 With ACC value 1101111 B 1 1 0 1 1 1 1 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 If no zero Jump To sw1 ELECTRONIC QUIZ TABLE
  16. 16. WORK FLOW SWITCH ON LED ONE move the data to Acc 1111 1110 B Call the Delay Program In Delay Move the Acc value to C Register And load the OF H (0000 11111 B)value to DE register Pair Perform the logical ORA Operation Then Jump Down ELECTRONIC QUIZ TABLE
  17. 17. WORK FLOW In Jump Move C register Value to Accumulator Perform the Immediate AND Operation with the value(0F H) Finally Reset the Acc Value with 1101111 B Like Wise all the switches are tested. ELECTRONIC QUIZ TABLE
  18. 18. Initially all LEDs set to off ELECTRONIC QUIZ TABLE
  19. 19. Microprocessor Found the switch then the led will glow and buzzer is on ELECTRONIC QUIZ TABLE
  20. 20. Microprocessor Found the pressed switch then the led will glow and buzzer is on the No shown the 7 – Segment LED SEVEN DEGMENT LED ELECTRONIC QUIZ TABLE

×