+ All Categories
Home > Entertainment & Humor > Micro Processor Mini Project,Electronic Quiz Table

Micro Processor Mini Project,Electronic Quiz Table

Date post: 21-Aug-2014
Category:
Upload: subhashini-sundaram
View: 3,606 times
Download: 8 times
Share this document with a friend
Description:
Micro Processor Mini Project,Electronic Quiz Table
Popular Tags:
21
EC1258 – MICROPROCESSOR LAB MINI PROJECT ELECTRONIC QUIZ TABLE SUBMITTED BY SUBHASHINI.S Department of IT
Transcript
Page 1: Micro Processor Mini Project,Electronic Quiz Table

EC1258 – MICROPROCESSOR LAB

MINI PROJECT

ELECTRONIC QUIZ TABLE

SUBMITTED BY

SUBHASHINI.S

Department of IT

Page 2: Micro Processor Mini Project,Electronic Quiz Table

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

Page 3: Micro Processor Mini Project,Electronic Quiz Table

CONCEPTContinue…

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

Page 4: Micro Processor Mini Project,Electronic Quiz Table

CONCEPTContinue… 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

Page 5: Micro Processor Mini Project,Electronic Quiz Table

BLOCK DIAGRAM

ELECTRONIC QUIZ TABLE

Page 6: Micro Processor Mini Project,Electronic Quiz Table

FLOW CHART

ELECTRONIC QUIZ TABLE

Page 7: Micro Processor Mini Project,Electronic Quiz Table

CIRCUIT DIAGRAM

ELECTRONIC QUIZ TABLE

Page 8: Micro Processor Mini Project,Electronic Quiz Table

SOURCE CODE0000 PORTA EQU 0CH0000 PORTB EQU 0DH0000 REG EQU 0EH0000 ORG 4100H

4100 3E 94 MVI A,94H4102 D3 0E OUT REG4104 3E DF MVI A,11011111B4106 D3 0D OUT PORTB

ELECTRONIC QUIZ TABLE

Page 9: Micro Processor Mini Project,Electronic Quiz Table

SOURCE CODEContinue…4108 DB 0C TOP: IN PORTA ;get switch1

status410A E6 02 ANI 00000010B ;check first

button410C C2 2E 41 JNZ SW1410F DB 0C IN PORTA ;get switch2

status4111 E6 04 ANI 00000100B ;check

second button4113 C2 38 41 JNZ SW24116 DB 0C IN PORTA ;get switch3

status4118 E6 08 ANI 00001000B ;check third

button411A C2 42 41 JNZ SW3

ELECTRONIC QUIZ TABLE

Page 10: Micro Processor Mini Project,Electronic Quiz Table

SOURCE CODEContinue…411D DB 0C IN PORTA ;get switch4

status411F E6 10 ANI 00010000B ;check

fourth button4121 C2 4C 41 JNZ SW44124 DB 0C IN PORTA ;get switch5

status4126 E6 20 ANI 00100000B ;check fifth

button4128 C2 56 41 JNZ SW5412B C3 08 41 JMP TOP412E 3E FE SW1: MVI A,11111110 B

;switch ON 1 LED4130 D3 0D OUT PORTB4132 CD 70 41 CALL DELAY

ELECTRONIC QUIZ TABLE

Page 11: Micro Processor Mini Project,Electronic Quiz Table

SOURCE CODEContinue…4135 C3 5D 41 JMP DOWN4138 3E FD SW2:MVI A,11111101B

;switch ON 2 LED413A D3 0D OUT PORTB413C CD 70 41 CALL DELAY413F C3 5D 41 JMP DOWN4142 3E FB SW3:MVI A,11111011B

;switch ON 3 LED4144 D3 0D OUT PORTB4146 CD 70 41 CALL DELAY4149 C3 5D 41 JMP DOWN414C 3E F7 SW4: MVI A,11110111B

;switch ON 4 LED414E D3 0D OUT PORTB

ELECTRONIC QUIZ TABLE

Page 12: Micro Processor Mini Project,Electronic Quiz Table

SOURCE CODEContinue…4150 CD 70 41 CALL DELAY4153 C3 5D 41 JMP DOWN4156 3E EF SW5: MVI A,11101111B

;switch ON 5 LED4158 D3 0D OUT PORTB415A CD 70 41 CALL DELAY415D 79 DOWN: MOV A,C415E E6 1F ANI 1FH4160 D3 0D OUT PORTB4162 DB 0C D1: IN PORTA4164 E6 01 ANI 01H

ELECTRONIC QUIZ TABLE

Page 13: Micro Processor Mini Project,Electronic Quiz Table

SOURCE CODEContinue…4166 CA 62 41 JZ D14169 3E DF MVI A,11011111B416B D3 0D OUT PORTB416D C3 08 41 JMP TOP4170 DELAY:4170 4F MOV C,A4171 06 02 MVI B,02H4173 11 0F 00 LOOP1: LXI D,0FH4176 1B LOOP: DCX D4177 7B MOV A,E

ELECTRONIC QUIZ TABLE

Page 14: Micro Processor Mini Project,Electronic Quiz Table

SOURCE CODEContinue…4178 B2 ORA D4179 C2 76 41 JNZ LOOP417C 05 DCR B417D C2 73 41 JNZ LOOP14180 C9 RET4181 END

ELECTRONIC QUIZ TABLE

Page 15: Micro Processor Mini Project,Electronic Quiz Table

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 10 0 0 0 0 0 1 00 0 0 0 0 0 1 0

If no zero Jump To sw1 ELECTRONIC QUIZ TABLE

Page 16: Micro Processor Mini Project,Electronic Quiz Table

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 DownELECTRONIC QUIZ TABLE

Page 17: Micro Processor Mini Project,Electronic Quiz Table

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

Page 18: Micro Processor Mini Project,Electronic Quiz Table

Initially all LEDs set to off

ELECTRONIC QUIZ TABLE

Page 19: Micro Processor Mini Project,Electronic Quiz Table

Microprocessor Found the switch then the led will glow and buzzer is on

ELECTRONIC QUIZ TABLE

Page 20: Micro Processor Mini Project,Electronic Quiz Table

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

Page 21: Micro Processor Mini Project,Electronic Quiz Table

THANK YOU


Recommended