Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 2

Tic Tac Toe using 8051 Microcontroller

Hamza Yousaf:2016143
Hayder Saad:2016167
Mohammad Zain:2016239
Faculty of Electrical Engineering, GIKI
Pakistan

Abstract— This is a report on the making of tic tac toe using the
8051 microcontroller. The working of the game is based on
comparator code.

Keywords— Tic Tac Toe, 8051, Microcontroller, game, bicolour


led

I. INTRODUCTION
This report is based on how the 8051 microcontroller
combined with bicolour LEDs and pushbutton switches to
create a tic tac toe game.
II. COMPONENTS
The components used in this project include an 8051
microcontroller, bi colour LED’s, push button switches, Fig. 1 The circuit as simulated on Proteus
crystal (to give clock to microcontroller),and a
microcontroller bed.
III. WORKING
Each bicolour led is connected to its own separate input port
with its own separate push button switch. We can keep track of
whose turn it is by keeping count of what turn number it is.
Odd number turns indicate player 1’s turn and an even number
turn indicates player 2’s turn.

IV. LIMITATIONS
As shown, the project works perfectly when simulated on Proteus,
and it works properly on hardware as well. However, one
limitation was that we were unable to display the score of the two
players due to lack of input output ports. If there were more than
40 pins on the microcontroller, we would have been able to
display the scores of the two players as well.

V. CONCLUSION
We successfully managed to achieve all that was required from
our project. We wrote the simplest possible code which Fig. 2 Our project in Real Life
couldn’t be found online either. We then successfully managed
to implement it on hardware on our first try. So overall it was a
successful project.

You might also like