FirstRanker Logo

FirstRanker.com - FirstRanker's Choice is a hub of Question Papers & Study Materials for B-Tech, B.E, M-Tech, MCA, M.Sc, MBBS, BDS, MBA, B.Sc, Degree, B.Sc Nursing, B-Pharmacy, D-Pharmacy, MD, Medical, Dental, Engineering students. All services of FirstRanker.com are FREE

📱

Get the MBBS Question Bank Android App

Access previous years' papers, solved question papers, notes, and more on the go!

Install From Play Store

Download Anna University B-Tech ECE 5th Sem Microprocessor and Microcontroller MM Lab Manual Question Paper

Download Anna University B.Tech (Bachelor of Technology) ECE (Electronics And Communications Engineering) 5th Sem Microprocessor and Microcontroller MM Lab Manual Question Paper.

This post was last modified on 13 December 2019

Anna University B.Tech Lab Manual


FirstRanker.com

DEPARTMENT OF

ELECTRONICS AND COMMUNICATION ENGINEERING

--- Content provided by​ FirstRanker.com ---

EC6513 - MICROPROCESSOR AND MICROCONTROLLERLABORATORY

V SEMESTER - R 2013

LABORATORY MANUAL

Name : ____________________________________

Register No. : ____________________________________

--- Content provided by‌ FirstRanker.com ---

Section : ____________________________________

FirstRanker.com

EC6513-MICROPROCESSOR AND MICROCONTROLLER LABORATORY

COURSE OBJECTIVES

C01 - To learn the working of ARM processor

--- Content provided by⁠ FirstRanker.com ---

C02 - To introduce ALP concepts and features

C03 - To write ALP for arithmetic and logical operations in 8086 and 8051

C04 - To differentiate Serial and Parallel Interface

C05 - To interface different I/Os with Microprocessors

C06 - To be familiar with MASM

--- Content provided by​ FirstRanker.com ---

COURSE OUTCOMES

  1. Write programs in ARM for a specific Application
  2. Write ALP Programs for fixed and Floating Point and Arithmetic
  3. Interface different I/Os with processor and Generate waveforms using Microprocessors
  4. Execute Programs in 8051
  5. --- Content provided by​ FirstRanker.com ---

  6. Assess the performance of optical devices: light sources, fibers and detectors from both physical and system point of view

INTRODUCTION

This course illustrates the concepts covered in course CS6412 and provides students with hands-on experience in Assembly language programs.

PREREQUISITE:

  1. Digital Electronics
  2. --- Content provided by FirstRanker.com ---

EC6513 – MICROPROCESSOR AND MICROCONTROLLER LABORATORY

Lecture No./Session No. Name of the Experiment Course objectives Proposed date
1,2,3 Introduction to lab CO1

CYCLE I-8086 PROGRAMS USING KITS AND MASM

4,5,6 Basic arithmetic and Logical operations CO2

FirstRanker.com

7,8,9 Decimal arithmetic and Code conversion CO3
10,11,12 Move a data block without overlap CO3
13,14,15 Searching and Sorting a sting in a given array CO2

CYCLE 2 - PERIPHERALS AND INTERFACING EXPERIMENTS

16,17,18 D/A interface and Waveform Generation CO4
19,20,21 A/D interface CO5
22,23,24 Key board and Display CO5
25,26,27 Stepper motor control CO2
Traffic light control CO5
28,29,30 Digital clock CO6
Serial interface and Parallel interface CO4

CYCLE III - 8051 PROGRAMS USING KITS AND MASM

--- Content provided by‍ FirstRanker.com ---

31,32,33 Basic arithmetic and Logical operations CO1
34,35,36 Square and Cube program, Find 2's complement of a number CO5
Unpacked BCD to ASCII
37,38,39 Password checking and Print RAM size with system date CO6
Counters and Time Delay

ADDITIONAL EXPERIMENTS BEYOND THE SYLLABUS

40,41,42 Sorting of an array using 8051 CO2
Separate odd and even numbers using 8086
43,44,45 Sum of N consecutive numbers using 8086 CO3

FirstRanker.com

VISION

College of Engineering is committed to provide highly disciplined, conscientious and enterprising professionals conforming to global standards through value based quality education and training.

MISSION

--- Content provided by​ FirstRanker.com ---

  • To provide competent technical manpower capable of meeting requirements of the industry
  • To contribute to the promotion of Academic Excellence in pursuit of Technical Education at different levels
  • To train the students to sell his brawn and brain to the highest bidder but to never put a price tag on heart and soul

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

VISION

--- Content provided by‍ FirstRanker.com ---

To impart professional education integrated with human values to the younger generation, so as to shape them as proficient and dedicated engineers, capable of providing comprehensive solutions to the challenges in deploying technology for the service of humanity

MISSION

  • To educate the students with the state-of-art technologies to meet the growing challenges of the electronics industry
  • To carry out research through continuous interaction with research institutes and industry, on advances in communication systems
  • To provide the students with strong ground rules to facilitate them for systematic learning, innovation and ethical practices
  • --- Content provided by FirstRanker.com ---

FirstRanker.com

PROGRAMME EDUCATIONAL OBJECTIVES (PEOS)

  1. Fundamentals To impart students with fundamental knowledge in Mathematics, Science and fundamentals of engineering that will would them to be successful professionals
  2. Core Competence To provide students with sound knowledge in engineering and experimental skills to identify complex software problems in industry and to develop practical solution for them
  3. Breadth To provide relevant training and experience to bridge the gap between theory and practice this enables to find solutions for real time problem in industry and organization and to design products requiring interdisciplinary skills
  4. --- Content provided by​ FirstRanker.com ---

  5. Professionalism skills To bestow students with adequate training and provide opportunities to work as team that will build up their communication skills, individual leadership and supportive qualities and to develop them to adapt and work in ever changing technologies
  6. Lifelong Learning To develop the ability of students to establish themselves as professionals in Computer Science and Engineering and to create awareness about the need for lifelong learning and pursuing advanced degrees

FirstRanker.com

PROGRAMME OUTCOMES (POS)

  1. To apply basic knowledge of Mathematics, Science and Engineering fundamentals in Computer Science and Engineering field
  2. --- Content provided by⁠ FirstRanker.com ---

  3. To design and conduct experiments as well as to analyze and interpret and apply the same in the career
  4. To design and develop innovative and creative software applications
  5. To understand a complex real world problems and develop an efficient practical solutions
  6. To create, select and apply appropriate technique, resources, modern engineering and IT tools
  7. To understand their roles as professionals and give the best to the society
  8. --- Content provided by⁠ FirstRanker.com ---

  9. To develop a system that will meet expected need with realistic constraints such as economical, environmental, social, political, ethical, safe and sustainable
  10. To communicate effectively and make others understand exactly what they are trying to convey in both verbal and written forms
  11. To work in a team as team member or a leader and make unique contributions and work with coordination
  12. To engage lifelong learning and exhibit their technical skills
  13. To develop and manage projects in multidisciplinary environments
  14. --- Content provided by⁠ FirstRanker.com ---

FirstRanker.com

EC6513-MICROPROCESSOR AND MICROCONTROLLER

LABORATORY

SYLLABUS

COURSE OBJECTIVES

--- Content provided by⁠ FirstRanker.com ---

  • To learn the working of ARM processor
  • To introduce ALP concepts and features
  • To write ALP for arithmetic and logical operations in 8086 and 8051
  • To differentiate Serial and Parallel Interface
  • To interface different I/Os with Microprocessors
  • --- Content provided by FirstRanker.com ---

  • To be familiar with MASM

LIST OF EXPERIMENTS:

8086 Programs using kits and MASM

  1. Basic arithmetic and Logical operations
  2. Move a data block without overlap
  3. --- Content provided by FirstRanker.com ---

  4. Code conversion, decimal arithmetic and Matrix operations.
  5. Floating point operations, string manipulations, sorting and searching
  6. Password checking, Print RAM size and system date
  7. Counters and Time Delay

Peripherals and Interfacing Experiments

--- Content provided by⁠ FirstRanker.com ---

  1. Traffic light control
  2. Stepper motor control
  3. Digital clock
  4. Key board and Display
  5. Printer status
  6. --- Content provided by‍ FirstRanker.com ---

  7. Serial interface and Parallel interface
  8. A/D and D/A interface and Waveform Generation 8051

Experiments using kits and MASM

  1. Basic arithmetic and Logical operations
  2. Square and Cube program, Find 2"s complement of a number
  3. --- Content provided by‌ FirstRanker.com ---

  4. Unpacked BCD to ASCII

COURSE OUTCOMES

  • Write programs in ARM for a specific Application
  • Write ALP Programs for fixed and Floating Point and Arithmetic
  • Interface different I/Os with processor and Generate waveforms using Microprocessors
  • --- Content provided by‍ FirstRanker.com ---

  • Execute Programs in 8051
  • Assess the performance of optical devices: light sources, fibers and detectors from both physical and system point of view

FirstRanker.com

FirstRanker.com

EC6513 - MICROPROCESSOR AND MICROCONTROLLER LABORATORY

--- Content provided by‍ FirstRanker.com ---

CONTENTS

Sl. No. Name of the Experiment Page No.
CYCLE 1-8086 PROGRAMS USING KITS AND MASM
1 Basic arithmetic and Logical operations 10
2 Decimal arithmetic and Code conversion 15
3 Move a data block without overlap 21
4 Matrix operations 24
5 Searching and Sorting a sting in a given array 27
6 Password checking and Print RAM size with system date 33
7 Counters and Time Delay 36
CYCLE 2 - PERIPHERALS AND INTERFACING EXPERIMENTS
8 Stepper motor control 39
9 Traffic light control 42
10 Digital clock 47
11 Serial interface and Parallel interface 50
12 A/D interface 54
13 Key board and Display 57
14 D/A interface and Waveform Generation 60
CYCLE 3-8051 PROGRAMS USING KITS AND MASM
15 Basic arithmetic and Logical operations 64
16 Square and Cube program, Find 2's complement of a number 69
17 Unpacked BCD to ASCII 71
ADDITIONAL EXPERIMENTS BEYOND THE SYLLABUS
18 Sorting of an array using 8051 74
19 Separate odd and even numbers using 8086 77
20 Sum of N consecutive numbers using 8086 80

FirstRanker.com

FirstRanker.com

Expt.No.1 BASIC ARITHMETIC AND LOGICAL OPERATIONS

Aim:

--- Content provided by‌ FirstRanker.com ---

To write an Assembly Language Program to perform Arithmetic operation and to execute using 8086 microprocessor

Apparatus required:

  1. 8086 Kit
  2. Power cable
  3. Keyboard
  4. --- Content provided by⁠ FirstRanker.com ---

Procedure:

To enter program in Trainer Kit

  1. Press ‘RESET' key
  2. Press 'A(Address)' key
  3. Press "Enter" key
  4. --- Content provided by FirstRanker.com ---

  5. Enter the starting address (16 bit)
  6. Press “Enter” key
  7. Type the Assembly Language Program
  8. Press ‘RESET' key

To executive the program

--- Content provided by FirstRanker.com ---

  1. Press "GO"
  2. Type the starting address to execute the program
  3. Press 'RESET' key

To verify the result

  1. Type "SB(Substitute Byte)”
  2. --- Content provided by FirstRanker.com ---

  3. Enter the output address location to check the result

Arithmetic Operation:

  1. Addition:

Algorithm:

  1. Clear BL register to store carry
  2. --- Content provided by⁠ FirstRanker.com ---

  3. Get the addend in AX register pair
  4. Get the Augend in CX register pair
  5. Add Augend and addend
  6. Check for carry, If it is one go to step 6 else go to step 7

FirstRanker.com

--- Content provided by‍ FirstRanker.com ---

  1. Increments carry (BL register by 1)
  2. Store the sum in memory from AX register pair
  3. Store the carry in memory from BL register
  4. Stop

Program:

--- Content provided by​ FirstRanker.com ---

Address Label Mnemonics
1000 MOV BL, 00H
1003 MOV AX, 1010H
1007 MOV CX, 2020H
100B CLC
100C ADD AX, CX
100E JNC Label1
1010 INC BL
1012 Label 1 MOV [1200], AX
1016 MOV [1202], BL
101A HLT

Precaution:

Make sure that all the machine codes should be as per the specified in the program.

Tabulation:

Input Output
Address Data Address Data
  1. Subtraction:

Algorithm:

--- Content provided by‌ FirstRanker.com ---

  1. Clear BL register for storing borrow
  2. Get the minuend in AX register pair
  3. Get the subtrahend in CX register pair
  4. Subtract minuend and subtrahend
  5. Check borrow, if borrow is one go to step 6 else go to step 8
  6. --- Content provided by‌ FirstRanker.com ---

  7. Increment borrow (BL register by 1)

FirstRanker.com

  1. Negate AX register
  2. Store the difference from AX in memory
  3. Story the borrow from BL in memory
  4. --- Content provided by‌ FirstRanker.com ---

  5. Stop

Program:

Address Label Mnemonics
1000 MOV BL, 00H
1003 MOV AX, 2024H
1007 MOV CX, 1010H
100B SUB AX, CX
100D JNC Label1
100F INC BL
1011 NEG AX
1013 Label 1 MOV [1200], AX
1017 MOV [1202], BL
101B HLT

Tabulation:

Input Output
Address Data Address Data
  1. Multiplication

Algorithm:

--- Content provided by⁠ FirstRanker.com ---

  1. Clear DX register
  2. Load the AX register pair with multiplicand
  3. Load the CX register pair with multiplier
  4. Multiply multiplicand and multiplier
  5. Store the higher byte of product(from DX register pair) in memory specified
  6. --- Content provided by FirstRanker.com ---

  7. Store the lower byte of product(from AX register pair) in memory specified
  8. Stop

FirstRanker.com

Program:

Address Label Mnemonics
1000 MOV DX, 0000H
1004 MOV AX, 00FFH
1008 MOV CX, 0002H
100C MUL CX
100E MOV [1200], AX
1012 MOV [1202], DX
1016 HLT

Tabulation:

--- Content provided by‌ FirstRanker.com ---

Input Output
Address Data Address Data
  1. Division:

Algorithm

  1. Clear DX register
  2. Load the AX register pair with dividend
  3. Load the CX register pair with divisor
  4. --- Content provided by‍ FirstRanker.com ---

  5. Dividend divided by divisor
  6. Store the quotient (from AX register pair) in memory specified
  7. Store the remainder (from DX register pair) in memory specified
  8. Stop

Program:

--- Content provided by‌ FirstRanker.com ---

Address Label Mnemonics
1000 MOV DX, 0000H
1004 MOV AX, 0008H
1008 MOV CX, 0004H
100C DIV CX
100E MOV [1200], AX
1012 MOV [1202], DX
1016 HLT

FirstRanker.com

Tabulation:

Input Output
Address Data Address Data

Result:

Thus Assembly language program are written to perform arithmetic operation using 8086 microprocessor. They are executed using 8086 processor and the outputs are verified.

Outcome:

--- Content provided by​ FirstRanker.com ---

At the end of this experiment the students able to write ALP programs for Arithmetic and Logical operations.

Viva – voce

  1. Write the size of the data bus of 8086.
  2. Write the size of the address bus of 8086.
  3. What is meant by physical addressing in 8086?
  4. --- Content provided by​ FirstRanker.com ---

  5. What is meant by an Opcode?
  6. What is meant by an Operand?
  7. What is meant by a Mnemonics?
  8. What are the other possibilities of writing ADD, SUB and MUL instructions in other addressing modes?
  9. What is the difference between microprocessor and microcontroller?
  10. --- Content provided by FirstRanker.com ---

  11. What is meant by LATCH?
  12. What is the difference between primary & secondary storage device?
  13. What is the difference between static and dynamic RAM?
  14. What is an interrupt?
  15. Differentiate between RAM and ROM?
  16. --- Content provided by FirstRanker.com ---

  17. Define - Compiler
  18. Define - Flag
  19. Define Stack
  20. How clock signal is generated in 8086 microprocessor?
  21. State the functions of queue status line QS0 and QS1 in 8086 microprocessor.
  22. --- Content provided by FirstRanker.com ---

  23. What is the purpose of BIU& EU?
  24. List out the two examples of assembler directives.

FirstRanker.com

FirstRanker.com

Applications:

--- Content provided by⁠ FirstRanker.com ---

  1. barrel shifters
  2. Multiple-precision arithmetic
  3. Calculation pipeline
  4. binary multipliers
  5. Calculation in a single clock
  6. --- Content provided by​ FirstRanker.com ---

FirstRanker.com

FirstRanker.com

Expt.No.2 DECIMAL ARITHMETIC AND CODE CONVERSION

Aim:

To write an Assembly Language Program to perform Code conversion and Decimal Arithmetic operations and to execute using 8086 microprocessor

--- Content provided by FirstRanker.com ---

Apparatus required:

  1. 8086 Kit
  2. Power cable
  3. Keyboard

Procedure:

--- Content provided by‍ FirstRanker.com ---

To enter program in Trainer Kit

  1. Press 'RESET' key
  2. Press 'A(Address)' key
  3. Press “Enter” key
  4. Enter the starting address (16 bit)
  5. --- Content provided by‌ FirstRanker.com ---

  6. Press “Enter” key
  7. Type the Assembly Language Program
  8. Press ‘RESET' key

To executive the program

  1. Press "GO"
  2. --- Content provided by‌ FirstRanker.com ---

  3. Type the starting address to execute the program
  4. Press ‘RESET' key

To verify the result

  1. Type "SB(Substitute Byte)”
  2. Enter the output address location to check the result
  3. --- Content provided by‌ FirstRanker.com ---

Decimal Arithmetic:

  1. Using DAA

Algorithm:

  1. Get the first input and store in AL.
  2. Get the second input and store in BL.
  3. --- Content provided by⁠ FirstRanker.com ---

  4. Clear the CL reg.
  5. Add the contents of AL and BL.
  6. Adjust decimal accumulator after addition.
  7. Store the result.

FirstRanker.com

--- Content provided by FirstRanker.com ---

Program:

Address Label Mnemonics
1000 MOV AL, [1100]
1004 MOV BL, [1101]
1008 MOV CL, 00
100B ADD AL,BL
100D DAA
100E JNC L1
1010 INC CL
1012 L1 MOV [1150], AL
1016 MOV [1151], CL
101A HLT

Tabulation:

Input Output
Address Data Address Data
  1. Using AAM

Algorithm:

  1. Get the first input and store in AL.
  2. --- Content provided by FirstRanker.com ---

  3. Get the second input and store in BL.
  4. Multiply the contents of AL and BL.
  5. Adjust decimal accumulator after multiplication.
  6. Store the result.

Program:

--- Content provided by​ FirstRanker.com ---

Address

This download link is referred from the post: Anna University B.Tech Lab Manual