Ece Lab Manual Ece 315

Only available on StudyMode
  • Topic: Binary-coded decimal, Binary numeral system, Computer
  • Pages : 11 (2799 words )
  • Download(s) : 399
  • Published : March 23, 2013
Open Document
Text Preview
LABORATORY MANUAL ECE 315
MICROPROCESSOR BASED SYSTEM DESIGN LABORATORY

1

TABLE OF CONTENTS

S. No.

Title of the Experiment Perform the following using 8085 Simulator and 8085 Microprocessor kit in assembly language: (i).Write a program to add two 8-bit numbers. (Or) Write a program to add two 16- bit numbers. (ii) Write a program to subtract two 8-bit numbers. (Or) Write a program to subtract two 16-bit numbers. Perform the following using 8085 Simulator and 8085 Microprocessor kit in assembly language: (i) Write a program to multiply two 8 bit numbers by repetitive addition method (Or) Write a program to multiply two 8 bit numbers by rotation method. (ii)Write a program to divide 16-bit number by 8-bit number. Perform the following using 8085 Simulator and 8085 Microprocessor kit in assembly language: (i) Finding 1’s and 2’s complement of an 8-bit number.(ii) Finding 1’s and 2’s complement of an 16-bit number. Perform the following using 8085 Simulator and 8085 Microprocessor kit in assembly language: (i) Write a program to count number of 1’s in a program. (ii) Split hex data into two nibbles and swap the higher nibble and lower nibble of that number. Write a program to convert a 2-digit BCD number into its binary equivalent number. Perform the following using 8085 Simulator and 8085 Microprocessor kit in assembly language: (i) Write a program for displaying BCD down counter. Counter should count numbers from 99 to 00 and it should increment after every 1 sec. (ii) Write a program for displaying binary up counter. Counter should count numbers from 00 to FFH and it should increment after every 0.5 sec. Interfacing of Seven segment display with 8085 microprocessor. Interfacing of D/A converter with 8085 microprocessor to generate RAMP wave. Interfacing and control of stepper motor using 8085 microprocessor. Design 8085 Microprocessor based Traffic light control.

Page No.

1

3

2

7

3

11

4

15

5

17

6

19

7 8 9 10

21 23 25 26

2

Experiment 1
1. Aim: Perform the following using 8085 Simulator and 8085 Microprocessor kit in assembly language: i. Write a program to add two 8-bit numbers. (Or) Write a program to add two 16bit numbers. ii. Write a program to subtract two 8-bit numbers. (Or) Write a program to subtract two 16-bit numbers. Equipment required: 8085 microprocessor kit 2. Learning Objective: a. To acquaint with 8085 microprocessor performance. b. To determine the addition and subtraction of two numbers. 3. Program Program ( i.a ):

Program (i.b):

3

Program ( ii.a):

4

Program ( ii.b ):

5

4. Required Results: Input: 1st number: …………. 2nd number: ………… Output: Addition of two numbers: ………. Subtraction of two numbers: …….. 5. Cautions: a. Before enter the program press RST key on 8085 kit. b. Proper care must be taken while handling the microprocessor kit. 6. Learning outcomes: Mathematical operations using 8085 kit.

6

Experiment 2
1. Aim: Perform the following using 8085 Simulator and 8085 Microprocessor kit in assembly language: i. Write a program to multiply two 8 bit numbers by repetitive addition method (or) write a program to multiply two 8 bit numbers by rotation method. ii. Write a program to divide 16-bit number by 8-bit number. Equipment required: 8085 Microprocessor kit. 2. Learning Objective: a. To acquaint with 8085 microprocessor performance. b. To determine the division and multiplication of two numbers. 3. Program Program (i.a):

7

Program ( i.b):

8

Program (ii):
MVI E, 00 : Quotient = 0 LHLD 2200H : Get dividend LDA 2300 : Get divisor MOV B, A : Store divisor MVI C, 08 : Count = 8 NEXT: DAD H : Dividend = Dividend x 2 MOV A, E RLC MOV E, A : Quotient = Quotient x 2 MOV A, H SUB B : Is most significant byte of Dividend > divisor JC SKIP : No, go to Next step MOV H, A : Yes, subtract divisor INR E : and Quotient = Quotient + 1 SKIP:DCR C : Count = Count - 1 JNZ NEXT : Is count =0 repeat MOV A, E STA 2401H...
tracking img