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 : _________________________________________________


EC6513 - MICROPROCESSOR AND MICROCONTROLLER LABORATORY

COURSE OBJECTIVES

C01 - To learn the working of ARM processor

C02 - To introduce ALP concepts and features

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

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

COURSE OUTCOMES

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

  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. Assess the performance of optical devices: light sources, fibers and detectors from both physical and system point of view
  6. --- Content provided by⁠ FirstRanker.com ---

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

EC6513 – MICROPROCESSOR AND MICROCONTROLLER LABORATORY

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

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
7,8,9 Decimal arithmetic and Code conversion CO3
10,11,12 Move a data block without overlap CO3
13,14,15 Matrix operations Searching and Sorting a string 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

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

ADDITIONAL EXPERIMENTS BEYOND THE SYLLABUS

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

VISION

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

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

  • 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
  • --- Content provided by​ FirstRanker.com ---

DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING

VISION

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
  • --- Content provided by‌ FirstRanker.com ---

  • 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

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. --- Content provided by‍ FirstRanker.com ---

  3. 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

  4. 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

  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

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

  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

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 ---

EC6513 - MICROPROCESSOR AND MICROCONTROLLER LABORATORY

LABORATORY SYLLABUS

COURSE OBJECTIVES

  • To learn the working of ARM processor
  • To introduce ALP concepts and features
  • --- Content provided by‌ FirstRanker.com ---

  • 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
  • To be familiar with MASM

LIST OF EXPERIMENTS:

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

8086 Programs using kits and MASM

  1. Basic arithmetic and Logical operations
  2. Move a data block without overlap
  3. Code conversion, decimal arithmetic and Matrix operations.
  4. Floating point operations, string manipulations, sorting and searching
  5. --- Content provided by FirstRanker.com ---

  6. Password checking, Print RAM size and system date
  7. Counters and Time Delay

Peripherals and Interfacing Experiments

  1. Traffic light control
  2. Stepper motor control
  3. --- Content provided by⁠ FirstRanker.com ---

  4. Digital clock
  5. Key board and Display
  6. Printer status
  7. Serial interface and Parallel interface
  8. A/D and D/A interface and Waveform Generation 8051
  9. --- Content provided by FirstRanker.com ---

Experiments using kits and MASM

  1. Basic arithmetic and Logical operations
  2. Square and Cube program, Find 2"s complement of a number
  3. Unpacked BCD to ASCII

COURSE OUTCOMES

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

  • 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
  • Execute Programs in 8051
  • Assess the performance of optical devices: light sources, fibers and detectors from both physical and system point of view
  • --- Content provided by⁠ FirstRanker.com ---

EC6513 - MICROPROCESSOR AND MICROCONTROLLER LABORATORY

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 string 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

Expt.No.1 BASIC ARITHMETIC AND LOGICAL OPERATIONS

Aim:

To write an Assembly Language Program to perform Arithmetic operation 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 ---

Arithmetic Operation:

  1. Addition:

    Algorithm:

    1. Clear BL register to store carry
    2. Get the addend in AX register pair
    3. Get the Augend in CX register pair
    4. --- Content provided by‌ FirstRanker.com ---

    5. Add Augend and addend
    6. Check for carry, If it is one go to step 6 else go to step 7
    7. Increments carry (BL register by 1)
    8. Store the sum in memory from AX register pair
    9. Store the carry in memory from BL register
    10. --- Content provided by⁠ FirstRanker.com ---

    11. Stop

Program:

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.

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

Tabulation:

Input Output
Address Data Address Data
  1. Subtraction:

    Algorithm:

    1. Clear BL register for storing borrow
    2. Get the minuend in AX register pair
    3. Get the subtrahend in CX register pair
    4. --- Content provided by FirstRanker.com ---

    5. Subtract minuend and subtrahend
    6. Check borrow, if borrow is one go to step 6 else go to step 8
    7. Increment borrow (BL register by 1)
    8. Negate AX register
    9. Store the difference from AX in memory
    10. --- Content provided by​ FirstRanker.com ---

    11. Story the borrow from BL in memory
    12. 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:

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

Input Output
Address Data Address Data
  1. Multiplication

    Algorithm:

    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. --- Content provided by⁠ FirstRanker.com ---

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

Program:

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

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:

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
  2. --- Content provided by FirstRanker.com ---

Program:

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

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.

Applications:

  1. barrel shifters
  2. Multiple-precision arithmetic
  3. --- Content provided by‍ FirstRanker.com ---

  4. Calculation pipeline
  5. binary multipliers
  6. Calculation in a single clock

Expt.No.2 DECIMAL ARITHMETIC AND CODE CONVERSION

Aim:

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

To write an Assembly Language Program to perform Code conversion and Decimal Arithmetic operations 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

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.
  2. --- 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. Get the second input and store in BL.
    3. --- Content provided by FirstRanker.com ---

    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 Label Mnemonics
1000 MOV AL, [1100]
1004 MOV BL, [1101]
1008 MUL BL
100A AAM
100C MOV [1150], AH
1010 MOV [1151], AL
1014 HLT
Input Output
Address Data Address Data
  1. Using DAS

    Algorithm:

    1. Get the first input and store in AL.
    2. Get the second input and store in BL.
    3. Subtract the contents of BL from AL.
    4. Adjust decimal accumulator after subtraction.
    5. --- Content provided by⁠ FirstRanker.com ---

    6. Store the result.

Program:

Address Label Mnemonics
1000 MOV AL, [1100]
1004 MOV BL, [1101]
1008 SUB AL, BL
100A DAS
100B MOV [1150], AL
100F HLT

Tabulation:

Input Output
Address Data Address Data

Code Conversion:

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

  1. Binary to BCD

    Algorithm:

    1. Get the input and store in AL.
    2. Clear the carry flag.
    3. Rotate right the bits of input.
    4. Find logical XOR between input and shifted input.
    5. --- Content provided by⁠ FirstRanker.com ---

    6. Store the result.

Program:


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

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

Address Label Mnemonics