EC- 316 MICROPROCESSORS LAB PROJECT BASED ON INTEL 8085...

16
TITLE: COMPLETE THE PATTERN Submitted by: ECE-3: RAJAT SINGH (135/EC/13) RIPUDAMAN SINGH (137/EC/13) EC- 316 MICROPROCESSORS LAB PROJECT BASED ON INTEL 8085

Transcript of EC- 316 MICROPROCESSORS LAB PROJECT BASED ON INTEL 8085...

TITLE: COMPLETE THE PATTERN

Submitted by: ECE-3: RAJAT SINGH (135/EC/13) RIPUDAMAN SINGH (137/EC/13)

EC- 316 MICROPROCESSORS

LAB

PROJECT BASED ON INTEL

8085

PROJECT TITLE AND PARTNER DETAILS

Project Title: COMPLETE THE PATTERN

Student Details:

The project was undertaken by:

1. RAJAT SINGH (135/EC/13)

2. RIPUDAMAN SINGH (137/EC/13).

SYNOPSIS

A 2 player game wherein players battle it out to complete their

respective LED patterns. It consists of an LED (RGB) matrix in which

LEDs blink such that one LED is of an odd color for a short period of

time. Players are provided with push buttons to claim their

observation. Players are awarded for every correct observation and

penalized for every mistimed claim. Every award contributes towards

completion of respective pattern. First player to complete the

pattern WINS

INTRODUCTION

Intel 8085 was an important milestone in the development of

microprocessors. It required less circuitry as compared to its

contemporary counterparts. As a result, it was possible to build

simpler and cheaper micro-computer systems.

Intel 8085 is an ideal microprocessor for the purpose of introducing

students with the vast subject of microprocessors. Since we are

required to develop a project based on Intel 8085, we decided to

make use of its input-output, interrupt and computational abilities.

We were inspired to make a project whereby we can use all the

above mentioned features of Intel 8085 and use it to create a project

which is fun and enjoyable.

Our project utilizes the input output facilities by taking navigation

and select inputs from the user and displaying the “SCORE” on the

LED matrix and the score updates furtherly till all the 4 scoring LED

glows. Interrupt RST7.5 and RST6.5 is used by the two pushbuttons

(for the users) to claim the observation.

With our project, we aimed at creating something that was both

valuable and fun, which not only made the learning process

enjoyable, but also instilled a satisfying feeling once our project was

completed.

PROJECT DESCRIPTION

Complete the pattern is played between two players. 6x6 LED matrix

will blink in a different pattern for some time and an odd color of led

(RED IN OUR CASE) will glow in between for a short interval of time.

The moment that led blinks one of the user has to claim his/her

observation. If claimed it right than one of them will get a point in

the form of a scoring led. If anyone claimed it wrong a penalty will be

given in the form of glowing a scoring led of the opponent. Whoever

completes his/her pattern first will win.

Various components used in the project:

1. 36 DIFFERENT LED (RED GREEN BLUE)

2. EEPROM 28256

3. STANDARD PUSH BUTTONS

4. RAM 62256

5. 8085 MICROPROCESSOR

6. LATCH 74573

7. DECODER 74138

8. NOR GATE 7402

9. LC CRYSTAL 6MHz

BLOCK DIAGRAM

PROJECT PICTURES

PROGRAM FLOWCHART

START

INITIALIZATION

MAIN: CHECK

FOR INPUT

INTERRUPT

SUBROUTINE 1

END

INTERRUPT

SUBROUTINE 2

INTERRUPT SUBROUTINE FOR PLAYER 1

START

ODD-LED IS PRESENT

MODIFY UPPER BITS

AND SAVE

RETURN

CHECK IF LSB SET OR MSB

SET LEDs ARE GLOWING

YES

NO

MODIFY LOWER

BITS AND SAVE

END

END

YES

NO

INTERRUPT SUBROUTINE FOR PLAYER 2

START

ODD-LED IS PRESENT

MODIFY LOWER BITS

AND SAVE

RETURN

CHECK IF LSB SET OR MSB

SET LEDs ARE GLOWING

YES

NO

MODIFY UPPER

BITS AND SAVE

END

END

YES

NO

SCHEMATIC

TESTING

Testing the Circuit Board, these steps were followed during the

testing process:

1. A simple assembly language program was burnt in the EEPROM to

check for inputs on the SID pin and to throw the same as output on

the SOD line.

RIM

ANI 80H

ORI 40H

SIM

The output on the SOD pin was indicated using a red LED. The

working of this program ensured smooth functioning of the 8085 and

the EEPROM.

2. The output ports were checked individually to verify the decoding

logic.

3. All the IC were individually tested on the IC tester in

microprocessor lab.

Gantt chart

01-Jan 20-Feb 10-Apr 30-May 19-Jul

COMPLETE THE PATTERN

CHOOSE PARTNER

DECIDING PROJECT

GETTING APPROVED

STUDY OF 8085 DATASHEET

STUDY OF RAMESH GAONKAR

PREPARE SCHEMATIC

TESTING OF SCHEMATIC

PCB LAYOUT

PROGRAMMING

TESTING AND IMPROVEMENT

CONCLUSION

Complete the pattern game is working but with a minute error. This

implies that both hardware and software components are

functioning as expected.

This project would not have been possible without the motivation

and guidance from Professor Gadre. Our batch mates were also very

helpful and supportive.

BIBILOGRAPHY

GAONKAR, R. S., & GAONKAR, R. S. (1996). Microprocessor architecture,

programming, and applications with the 8085. Englewood Cliffs, N.J., Prentice Hall.

ISBN-13 978-81-87972-88-4

DATASHEETS:

http://elearning.tukenya.ac.ke/pluginfile.php/14944/mod_resource/content/2/intel-

8085_datasheet.pdf

http://www.nxp.com/documents/data_sheet/74HC_HCT238.pdf

http://www.ti.com.cn/cn/lit/ds/symlink/sn74ls32.pdf

https://e-radionica.com/productdata/LD3361BS.pdf

http://www.atmel.com/Images/doc0007.pdf