0% found this document useful (0 votes)
2 views6 pages

Microcontroller Lab Manual

The document outlines the curriculum for the Microcontroller and its Applications Laboratory course (EEPC 303), which includes a focus on maintaining microcontroller-based systems. It details course objectives, outcomes, and a syllabus of practical exercises involving assembly language programming and interfacing with microcontrollers like the 8051. The document also provides specific programming tasks and problem statements for students to develop their skills in microcontroller applications.

Uploaded by

debdeep89
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views6 pages

Microcontroller Lab Manual

The document outlines the curriculum for the Microcontroller and its Applications Laboratory course (EEPC 303), which includes a focus on maintaining microcontroller-based systems. It details course objectives, outcomes, and a syllabus of practical exercises involving assembly language programming and interfacing with microcontrollers like the 8051. The document also provides specific programming tasks and problem statements for students to develop their skills in microcontroller applications.

Uploaded by

debdeep89
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MICROCONTROLLER AND IT’S APPLICATIONS LAB

Course Code : EEPC 303

Course Title : MICROCONTROLLER AND IT’S


APPLICATIONS LABORATORY

Number of Credits 1 (L: 0, T: 0, P: 2)

Prerequisites NIL

Course Category PC

Course Objective
● The aim of this course is to help the student to attain the following industry identified
competency through various teaching learning experiences:
● Maintain microcontroller-based systems.

Course Outcomes
The theory, practical experiences and relevant soft skills associated with the course are to be
taught and implemented so that the student demonstrates the following industry-oriented
COs associated with the mentioned competency:
a) Interpret the salient features of various types of microcontrollers.
b) Interpret the salient features of different types of microcontrollers IC 8051.
c) Maintain the program features of the Microcontroller based application
d) Develop assembly language program.
e) Develop a program to interface 8051 microcontrollers with LED/SWITCH/MOTOR.

SYLLABUS List of Practical:(at least EIGHT are to be done)


1. Interpret details of Hardware kit for Microcontroller and practice to write and execute programs.

2. Identify different menus available in a simulator software RIDE/KEIL and demonstrate their use.

3. Develop and execute Assembly language programs using Arithmetic Instructions and
demonstrate outcome for a given input data.

4. Develop and execute Assembly language programs using Logical Instructions and demonstrate
outcome for a given input.

5. Develop and execute an Assembly language program for Addition of series of 8 bit nos, 16 bit
result and demonstrate outcome for a given input data.

6. Develop and execute Assembly language program for addition/subtraction of 16 bit no/multibyte
nos. and demonstrate outcome for a given input data.
7. Develop and execute Assembly language program for Block transfer from and to
Internal/External memory using directives and demonstrate outcome for a given input data.

8. Develop and execute Assembly language program Largest/smallest of given series of no. from
Internal/External memory and demonstrate outcome for a given input data.

9. Develop and execute Assembly language program arrange no in ascending/descending order


fromInternal/External memory and demonstrate outcome for a given input data.
10. Develop and execute Assembly language program for LED blinking/LED sequences using
delay/timer mode.

11. Develop and execute Assembly language program to interface LED with microcontroller

12. Using 8051, develop, run and test Over voltage/under voltage or over current/under current relay
circuit with suitable hardware circuit.

13. Using 8051, Develop, run and test Speed Control of a D.C. motor and note speed vs. Load
characteristics at open loop condition.

14. Using 8051, develop, run and test the operation of a stepper motor with a fixed number of steps
and determine the angular displacement per step by measuring the total angular rotation.

15. Using 8051, develop, run and test Traffic light Control using 8051.

16. Measurement of ac voltage, current, frequency and phase angle difference (either between two
voltages or between voltage and current) using suitable PT, CT, Zero crossing detectors, A/D
converters etc. using 8051.
Experiment No 3.
AIM- Develop and execute Assembly language programs using Arithmetic
Instructions and demonstrate outcome for a given input data.

Problem Statement Write an assembly language program to find [Link] the


numbers are stored in the RAM memory location 40H and 41 H. ADD them and store the
result in 42H. Also repeat the same if the user wants to give the input in the program.

FLOWCHART
Implement the Flowchart for the adapted algorithm

ADDITION
PROGRAM 1 : Program 2
ORG 0000H ORG 0000H
MOV A,40H MOV A,#24H
MOV R0,41H MOV R0,#32H
ADD A,R0 ADD A,R0
MOV 42H,A MOV 42H,A
END END

Results

OUTPUT 1 OUTPUT 2

Problem Statement Write an assembly language program to find [Link] the


numbers are stored in the RAM memory location 40H and 41 H. Subtract them and store
the result in 42H. Also repeat the same if the user wants to give the input in the program.

Substraction

PROGRAM 1 : Program 2
ORG 000H ORG 000H
MOV A,40H MOV A,#32H
MOV R0,41H MOV R0,#24H
SUB A,R0 SUB A,R0
MOV 42H,A MOV 42H,A
END END

Results

OUTPUT 1 OUTPUT 2
Problem Statement Write an assembly language program to find Multiplication of two
[Link] the numbers are stored in the RAM memory location 40H and 41 H.
Multiply them and store the result in 42H. Also repeat the same if the user wants to give the
input in the program.

MULTIPLICATION
PROGRAM:
ORG 0000H
MOV A,40H
MOV B,41H
MUL AB
MOV 42H,A
MOV A,B
MOV 43H,A
END
Output

Problem Statement Write an assembly language program to find Multiplication of two


[Link] the numbers are stored in the RAM memory location 40H and 41 H.
Divide them and store the result in 42H. Also repeat the same if the user wants to give the
input in the program.
PROGRAM:
ORG 0000H
MOV A,40H
MOV B,41H
DIV AB
MOV 42H,A
MOV A,B
MOV 43H,A
END
Output

Questions
1. What are the addressing modes used for these instructions?
2. What will be status of the flags after operation of those instructions
EXP NO 7. Develop and execute Assembly language program for Block transfer from and to
Internal/External memory using directives and demonstrate outcome for a given input data.

Problem Statement
Write an assembly language program to transfer data between specified memory location.
Consider block of 5 data has been placed in the memory location 40H the program needs to transfer
the block of data to the memory location starting from 50H

Program

ORG 0000H
MOV R0,#40H
MOV R1,#50H
MOV R2,#05H
LABEL: MOV A,@R0
MOV @R1,A
INC R0
INC R1
DJNZ R2,LABEL
END

Output

Questions
1. Can R2 be used as a memory pointer for the above instruction?
2. How to transfer data for external data memory?
Experiment No- 6. Develop and execute Assembly language program for addition/subtraction
of 16 bit no/multibyte nos. and demonstrate outcome for a given input data.

Problem Statement
Write an assembly language program to find 16 bit addition from internal and external
memory

PROGRAM:
ORG 0000H
MOV DPTR,#4300H
MOVX A,@DPTR
MOV R0,A
INC DPTR
MOVX A,@DPTR
MOV R1,A
INC DPTR
MOVX A,@DPTR
MOV R2,A
INC DPTR
MOVX A,@DPTR
MOV R3,A
MOV A,R0
ADDC A,R2
MOV DPTR,#4500H
MOVX @DPTR,A
MOV A,R1
ADDC A,R3
MOV DPTR,#4501H
MOVX @DPTR,A
END

Output

You might also like