Table of Contents
Sr. No. 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. Name of Experiment Basic 8085 programs using kit 8085 Programs on Kit Code conversion using 8085 8085 and Stepper Motor Digital to Analog Conversion using 8085 Analog to Digital Conversion using 8085 8051 Basic Program LCD and 8051 Keyboard and 8051 ADC and 8051 Page No. 3 12 22 28 31 34 37 40 43 47
Experiment-1 AIM: Basic 8085 programs using kit i) ii) iii) iv) Write a program for addition of two 8-bit nos. Write a program for subtraction of two 8-bit nos. Write a program for addition of two 16-bit nos. Write a program for subtraction of two 16-bit nos.
Program: i)
ii) Algorithm:
Program ii)
iii)
Algorithm :
Program iii)
iv)
Algorithm:
Program iv)
Outline of the Procedure (a) Switch on the Microprocessor kit and press reset. (b) Press 1 and then A for writing the code in assembly language. (c) Select the starting RAM address for writing the code. (d) Start writing the above mentioned program(s) from the selected RAM address. (e) For executing the code, press G and write the memory location from which the code has been started. (f) Then press shift + $
Cautions: a. Before enter the program press RST key on 8085 kit. b. Proper care must be taken while handling the microprocessor kit. Learning outcomes: Mathematical operations using 8085 microprocessor.
Worksheet of the student Date of Performance AIM: Observation Table: i) Sr. no. Without carry With carry ii) Sr. no. Without carry With carry iii) Sr. no. Without carry With carry iv) Sr. no. Without carry With carry Learning Outcomes (what I have learnt): Subtraction of two 16-bit nos. 1st location=data 2nd location= data Result 3rd location=data Addition of two 16- bit nos. 1st location= data 2nd location=data Result 3rd location=data Subtraction of two 8-bit nos. 1st location=data 2nd location=data Result 3rd location=data Addition of two 8-bit nos. 1st location = data 2nd location= data Result 3rd location= data Registration No.
10
11
Experiment 2: AIM: 8085 programs on kit i) ii) iii) iv) Write a program to multiply two 8-bit nos. Write a program for division of two 8-bit nos. Write a program to sort given n nos. in ascending order. Write a program to sort given n nos. in descending order.
Algorithm:
Program i)
12
ii)
Algorithm:
13
Program: ii)
iii)
Algorithm:
Program iii)
15
iv)
Algorithm:
16
Program iv)
17
Outline of the Procedure (a) Switch on the Microprocessor kit and press reset. (b) Press 1 and then A for writing the code in assembly language.
18
(c) Select the starting RAM address for writing the code. (d) Start writing the above mentioned program(s) from the selected RAM address. (e) For executing the code, press G and write the memory location from which the code has been started. (f) Then press shift + $
Cautions: a. Before enter the program press RST key on 8085 kit. b. Proper care must be taken while handling the microprocessor kit. Result: Mathematical operations using 8085 microprocessor.
19
Worksheet of performance Date of performance: AIM: i) Sr. no. Multiplication of two 8-bit nos. 1st location=data 2nd location=data Result 3rd location=data Registration No.:
Division of two 8-bit nos. 1st location=data 2nd location=data Result 3rd location=data
iii)
Input address
iv)
Input address
Learning outcomes:
20
21
Experiment -3 AIM: Code conversion using 8085 i) ii) Write an assembly language program for BCD to binary code conversion Write an assemble language program for binary to BCD code conversion
Algorithm:
Program: i)
22
ii)
Algorithm:
23
Program ii)
24
(a) Switch on the Microprocessor kit and press reset. (b) Press 1 and then A for writing the code in assembly language. (c) Select the starting RAM address for writing the code. (d) Start writing the above mentioned program(s) from the selected RAM address. (e) For executing the code, press G and write the memory location from which the code has been started. (f) Then press shift + $
Cautions: a. Before enter the program press RST key on 8085 kit. b. Proper care must be taken while handling the microprocessor kit. Result: Code conversion using 8085 microprocessor.
26
Worksheet of student Date of performance: No.: Aim: i) BCD to binary code conversion Value= Value= Registration
Value= Value=
Learning outcomes:
27
Experiment- 4 AIM: Interfacing and control of stepper motor using 8085 microprocessor. Requirement: Stepper motor , 8085 kit Algorithm:
Program:
Forward direction:
Reverse direction:
28
Result: Thus, an assembly language program to control the stepper motor was written using 8085 kit.
29
i)
Value
ii)
Value
30
Experiment no. 5: AIM: Write a program to generate square wave and triangular wave generator using DAC. Requirements: 8085 kit, CRO, 8255 i) Square wave generator
Algorithm:
Program:
ii)
Algorithm:
31
Program:
Result: Thus the square and triangular wave generated using 8085 kit.
32
ii)
Triangular wave
33
Experiment no. 6 AIM: Write an assembly language program to convert analog to digital signal and to display it in 7-segment LED display. Requirements: 8085 kit, 7-segment LED,wires, bread board. Circuit:
Program:
34
35
Learning outcomes:
36
Experiment no. 7 AIM: Basic programs of 8051 i) ii) iii) iv) Write a program to toggle all the bits of P1 after some delay. Write a program to generate square wave of 50% duty cycle on bit 0 of port 1. Write a program to add two 16 bit nos. 3CE7H and 3B8DH. Place the sum in R7 and R6 (lower byte). Write a program for HEX to ASCII conversion.
Requirements: Keil software Learning Objectives: Use of keil software to perform basic assembly programs Outline of the procedure:
Program i)
Program ii)
Program iii)
37
Program iv)
38
39
Experiment no. 8: AIM: Interfacing of LCD with 8051 microcontroller Requirements: 8051,11.0592 MHz crystal,33pF(2),10F,10K,push button,1K,LCD,Bread board,connecting wires,5V power supply. Circuit Diagram:
40
41
Learning Outcome:
42
Experiment no. 9: AIM: Interfacing of keyboard with microcontroller 8051 Requirements: 8051,11.0592 MHz crystal,33pF(2),10F,10K,push button,1K,LCD,Bread board, connecting wires,5V power supply, 5piece of keys, 4k resistor,10k resistor. Circuit Diagram:
43
44
45
Learning outcomes:
46
Experiment 10: AIM: Interfacing of ADC with 8051 microcontroller. Requirements: 8051 ,11.0592MHz crystal, 33pf ,10f,10K,push button,1K,Analog to digital convertor (ADC0808), breadboard, connecting wires, 5v power supply. Circuit Diagram:
Program:
47
48
49
50
Observation ( show the result on oscilloscope and paste the result of proteus design)
Learning outcomes:
51