01 EE6612 MPMC Lab Manual
01 EE6612 MPMC Lab Manual
01 EE6612 MPMC Lab Manual
Will strive continuously in pursuit of creativity, innovations and ethics in the field of Electrical and Electronics
Engineering to blossom into Centre of Excellence.
Mission
• To impart total quality education through broader exposure, value additions and effective teaching
learning process.
• To mould students to meet professional challenges and to become outstanding Engineers and
Technocrats.
• To pursue research in the field of Electrical and Electronics Engineering to serve the needs of the
industry, scientific community and society.
The Program Educational Objectives (PEOs) of Electrical and Electronics Engineering (EEE) represent major
accomplishments that the graduates are expected to achieve after three to five years of graduation.
The Graduates of Electrical and Electronics Engineering will
PEO1: Impart strong foundation in electrical engineering concepts and encourage application of
academic learning to solve real time engineering problems.
PEO2: Inculcate professional ethics & effective communication skills and create an ability to
address societal issues by leveraging one’s engineering knowledge.
PEO3: Develop technical skills through hands on experience and provide exposure to industrial
practices.
PEO4: Provide an academic environment to cultivate multidisciplinary approach, encourage
continuous learning for effective leadership to flourish.
PSO1: Create awareness & provide solution for Energy Security and Environmental Concern in the
area of Renewable Energy to meet out the Country’s Energy demand.
PSO2: Apply the knowledge of academic learning’s to solve real life Engineering problems and find
solutions for contemporary issues faced by society at large.
PROGRAM OUTCOMES(POs)
1. Engineering knowledge: Apply the knowledge of mathematics, science, engineering fundamentals, and an
engineering specialization to the solution of complex engineering problems.
2. Problem analysis: Identify, formulate, review research literature, and analyze complex engineering
problems reaching substantiated conclusions using first principles of mathematics, natural sciences, and
engineering sciences.
3. Design/development of solutions: Design solutions for complex engineering problems and design system
components or processes that meet the specified needs with appropriate consideration for the public health and
safety, and the cultural, societal, and environmental considerations.
4. Conduct investigations of complex problems: Use research-based knowledge and research methods
including design of experiments, analysis and interpretation of data, and synthesis of the information to
provide valid conclusions.
5. Modern tool usage: Create, select, and apply appropriate techniques, resources, and modern engineering
and IT tools including prediction and modeling to complex engineering activities with an understanding of the
limitations.
6. The engineer and society: Apply reasoning informed by the contextual knowledge to assess societal,
health, safety, legal and cultural issues and the consequent responsibilities relevant to the professional
engineering practice.
7. Environment and sustainability: Understand the impact of the professional engineering solutions in
societal and environmental contexts, and demonstrate the knowledge of, and need for sustainable development.
8. Ethics: Apply ethical principles and commit to professional ethics and responsibilities and norms of the
engineering practice.
9. Individual and team work: Function effectively as an individual, and as a member or leader in diverse
teams, and in multidisciplinary settings.
10. Communication: Communicate effectively on complex engineering activities with the engineering
community and with society at large, such as, being able to comprehend and write effective reports and design
documentation, make effective presentations, and give and receive clear instructions.
11. Project management and finance: Demonstrate knowledge and understanding of the engineering and
management principles and apply these to one’s own work, as a member and leader in a team, to manage
projects and in multidisciplinary environments.
12. Life-long learning: Recognize the need for, and have the preparation and ability to engage in independent
and life-long learning in the broadest context of technological change.
Program Specific Outcomes(PSOs)
1. Comprehend and demonstrate the principles and concepts of Semiconductor theory, Signal
Processing & Embedded systems in the fields of Consumer Electronics, Medical Electronics and
Defense Electronics.
2. Analyze and design modules and systems for applications including Signal Processing,
Communication, Networking and RF & Microwave Engineering.
SYLLABUS
LIST OF EXPERIMENTS:
1. Simple arithmetic operations: addition / subtraction / multiplication / division.
2. Programming with control instructions:
(i) Ascending / Descending order, Maximum / Minimum of numbers
(ii) Programs using Rotate instructions
(iii) Hex / ASCII / BCD code conversions.
3. Interface Experiments: with 8085
(i) A/D Interfacing. & D/A Interfacing.
4. Traffic light controller.
5. I/O Port / Serial communication
6. Programming Practices with Simulators/Emulators/open source
7. Read a key ,interface display
8. Demonstration of basic instructions with 8051 Micro controller execution, including:
(i) Conditional jumps, looping
(ii) Calling Subroutines
9.Programming I/O Port 8051
(i) Study on interface with A/D & D/A
(ii) Study on interface with DC & AC motor .
10. Mini project development with processors.
TOTAL: 45 PERIODS
COURSE OUTCOMES
CO-PO mapping
C317-EE6612:MICROPROCESSOR AND MICROCONTROLLER LABORATORY
COs PO PO PO PO PO PO PO PO PO PO PO PO PSO PSO
1 2 3 4 5 6 7 8 9 10 11 12 1 2
C317.1 3 2 2 2 2 1 - 2 2 2 2 2 2 2
C317.2 3 2 2 2 2 1 - 2 2 2 2 2 2 2
C317.3 2 2 2 2 2 1 - 2 2 2 2 2 2 2
C317.4 3 2 2 2 2 1 - 2 2 2 2 2 2 2
C317.5 3 2 2 2 2 1 - 2 2 2 2 2 2 2
C317.6 3 2 2 2 2 1 - 2 2 2 2 2 2 2
INDEX
S.NO DATE EXPERIMENT NAME PAGE MARK SIGN
PROGRAMMNING WITH 8085
8 BIT ARITHMETIC OPERATION
a) ADDITION
b) SUBTRACTION
c) MULTIPLICATION
d) DIVISION
16 BIT ARITHMETIC OPERATION
a) ADDITION
b) SUBTRACTION
c) MULTIPLICATION
d) DIVISION
SORTING AND SEARCHING OPERATION USING 8085
a) ASCENDING /DESCENDING ORDER
b) MAXIMUM AND MINIMUM OF AN ARRAY
CODE CONVERSION
a) HEX TO ASCII
b) ASCII TO HEX
c) BCD TO HEX
d) HEX TO BCD
AIM:
To write an assembly language program for adding two 8 bit numbers by using 8085
microprocessor kit.
APPARATUS REQUIRED:
8085 microprocessor kit
Power Supply
ALGORITHM:
1) Start
6) A conditional jump instruction is used. If no carry occurs, the result is stored in any address.
8) Stop.
FLOWCHART:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
8 BIT ADDITION
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
EX NO: SUBTRACTION OF TWO 8-BIT NUMBERS
AIM:
To write a assembly language program for subtracting two 8 bit numbers by using- 8085
microprocessor kit.
APPARATUS REQUIRED:
1) Start
6) A conditional jump instruction is used. If no carry occurs, the result is stored in any address.
8) Stop.
FLOWCHART:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
8 BIT SUBTRACTION
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
EXNO: MULTIPLICATION OF TWO 8-BIT NUMBERS
:
AIM:
To write an assembly language program for multiplication of two 8 bit numbers by using-
8085 microprocessor kit.
APPARATUS REQUIRED:
1) Start
6) Decrement D register content & check for zero flag. If no zero occurs, go to step 4.
locations.
8) Stop
FLOWCHART
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
8 BIT MULTIPLICATION USING 8085
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
EX NO: DIVISION OF TWO 8-BIT NUMBERS
AIM:
To write an assembly language program for division of two 8 bit numbers by using- 8085
microprocessor kit.
APPARATUS REQUIRED:
7. GO to step 3.
locations.
9. Stop.
FLOW CHART:
8 BIT DIVISION
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
Result:
16 BIT ARITHMETIC OPERATION
AIM:
To write an assembly language program for addition of two 16 bit numbers by using- 8085
microprocessor kit.
APPARATUS REQUIRED:
4) Add the content of DE and HL register pair and the result will be in HL register pair
5) If the result has the carry, increment the carry register by one else store the content of HL
6) Move the content of carry register to accumulator content is stored in next memory
location
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
16 BIT ADDITION
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
EX NO: SUBTRACTION OF TWO 16-BIT NUMBERS
AIM:
To write an assembly language program for subtraction of two 16 bit numbers by using- 8085
microprocessor kit.
APPARATUS REQUIRED:
4) Subtract the content of two lower order registers and then the higher order
registers
5) Check for borrow, if there is a borrow, increment the content of borrow register
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
I6 BIT SUBTRACTION
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
EX NO: MULTIPLICATION OF TWO 16-BIT NUMBERS
AIM:
To write an assembly language program for multiplication of two 16 bit numbers by using-
8085 microprocessor kit.
APPARATUS REQUIRED:
5) Otherwise, decrement BC register pair value & check for zero flag.
7) If zero occurs, store the HL & DE register pair value in separate memory locations.
8) Stop.
FLOW CHART:
16 BIT MULTIPLICATION
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
16 BIT MULTIPLICATION
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
EX NO: DIVISION OF TWO 16-BIT NUMBERS
AIM:
To write an assembly language program for division of two 16 bit numbers by using- 8085
microprocessor kit.
APPARATUS REQUIRED:
3) Check whether division is possible. Compare the two data, if there is no carry
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
I6 BIT DIVISION
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
Result:
SORTING AND SEARCHING OPERATION USING 8085
AIM:
To write an assembly language program to sort an array of data in ascending order and
descending order
APPARATUS REQUIRED:
ASCENDING ORDER
1. Get the desired number of data using HL register pair
2. Initialize number of interactions and number of computations.
3. Compare the first two values in HL.
4. If carry exists, go to decrement the number of computations.
5. Move the value in A to M and decrement H.
6. .Move the value in B to M and decrement H.
7. Perform this operation until the number of data becomes zero.
DESCENDING ORDER
ORDER
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
ASCENDING ORDER
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
FLOWCHART:
DESCENDING ORDER:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
EX NO: MAXIMUM AND MINIMUM NUMBER IN AN ARRAY
AIM
To write an assembly language program to search the smallest and largest data in an
array
APPARATUS REQUIRED
8085 microprocessor kit
+5 v power supply
ALGORITHM:
SMALLEST NUMBER IN AN ARRAY
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION
PROGRAM
MINIMUM OF AN ARRAY
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
FLOWCHART: MAXIMUM NUMBER IN AN ARRAY
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
MAXIMUM OF AN ARRAY
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
RESULT:
EXNO: CODE CONVERSION
DATE:
AIM:
To write an assembly language program to perform following convert HEX code to ASCII
code
APPARATUS REQUIRED:
BCD TO HEX
1) Get BCD number as input
2) Get unit place, tens place of BCD to perform AND ing with 0F and F0 respectively
3) Rotate tens place digit 4 times using RRC
4) Multiply rotate data with 0A
5) Add unit place data with product
6) Store result
HEX TO BCD
1) Get data in accumulator, initialize register to store number in tens and hundreds
2) Compare accumulator with 64 H ; If no carry , subtract 64 H and increment hundred register
repeat step 2
3) Compare ACC with 0A H; if no carry subtract 0A H from acc and increment tens register
repeat step 3
4) Store the result
5) stop
FLOW CHART:
HEX TO ASCII
NPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
HEX TO ASCII
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
FLOW CHART: ASCII TO HEX
NPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
Program
ASCII TO HEX
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
FLOW CHART: BCD TO HEX
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
BCD TO HEX
LABEL OPCODE
ADDRESS MNEMONICS COMMENTS
B1 B2 B3
FLOW CHART: HEX TO BCD
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
HEX TO BCD
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
RESULT:
Ex. No: INTERFACING 8255 WITH 8085
DATE:
AIM:
APPARATUS REQUIRED:
FLOW CHART:
I/O MODE PORT A AS INPUT – MODE 0
COMMAND WORD:
PORT A AS INPUT PORT – MODE 0
INPUT:
OUTPUT:
PROGRAM:
8255 – PORT ‘A’ AS INPUT PORT – I/O MODE
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
FLOW CHART:
BSR MODE: PC5 SHOULD ON AND AFTER SOMETIME IT SHOULD TURN OFF
0 X X X 1 0 1 1
RESET PC5
RESULT:
EXNO: INTERFACING 8279 WITH 8085
DATE:
AIM:
APPARATUS REQUIRED:
FLOW CHART:
7 SEGMENT DISPLAY
Letter d c b a dp g f e data
H 0 1 1 0 0 1 1 1 67 H
A 0 1 1 1 0 1 1 1 77 H
1 0 1 1 0 0 0 0 0 60 H
C 1 0 0 1 0 0 1 1 93 H
E 1 0 0 1 0 1 1 1 97 H
COMMAND WORD KEY BOARD
DISPLAY
0 0 0 D D K K K
00 H 0 0 0 0 0 0 0 0
DD - DISPLAY MODE
00 8 8 BIT CHARACTER DISPLAY – LEFT ENTRY
01 16 8 BIT CHARACTER DISPLAY – LEFT ENTRY
10 8 8 BIT CHARACTER DISPLAY – RIGHT ENTRY
11 16 8 BIT CHARACTER DISPLAY – RIGHT ENTRY
KKK – KEYBOARD MODE
1 – ENCODED SCAN KEYBOARD – 2 KEY LOCKOUT
2 – DECODED SCAN KEYBOARD – 2 KEY LOCK OUT
10 – ENCODED SCAN KEYBOARD – N KEY ROLL OVER
11 – DECODED SCAN KEYBOARD – N KEY ROLL OVER
100 – ENCODED SCAN SENSOR MATRIX
101 – DECODED SCAN SENSOR MATRIX
110 – STROBED INPUT. ENCODED DISPLAY SCAN
111 – STROBED INPUT. DECODED DISPLAY SCAN
READ FIFO
40 H
0 1 0 A1 X A A A
X – DON’T CARE
A1 – AUTO INCREMENT FLAG AAA – RAM
90 H
1 0 0 1 0 0 0 0
READ A KEY AND DISPLAY IT
CMD_PORT EQU 81 H
DATA_PORT EQU 80 H
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
RESULT:
INTERFACING DAC- WAVEFORM GENERATION WITH 8085
EX NO:
DATE:
AIM:
To write an assembly language program to generate saw tooth wave, triangular wave, and
square wave using 8085 microprocessor
APPARATUS REQUIRED:
Model Graph
PROGRAM
Square waveform generation
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
Triangular
Model Graph
PROGRAM
Model Graph
PROGRAM
RESULT:
Ex no: Traffic light Controller
Date:
AIM:
To write an ALP to interface traffic light controller with 8085 microprocessor.
APPARATUS REQUIRED:
8085 microprocessor kit, power supply, interfacing cord
FLOWCHART:
PROGRAM
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
Address Data
RESULT
Ex no: Interfacing8251 with 8085
Date:
AIM:
To write an assembly language program to interface 8251 (serial communication) using 8085
microprocessor.
APPARATUS REQUIRED:
RESULT:
Ex No: Programming using 8085 simulator
Date:
Aim:
To have introduction in programming skills using 8085 simulator
Apparatus required:
PC, 8085 simulator
Procedure:
1. Click on the 8085 simulator icon
2. In the editor window , type the assembler program .
3. Then press the ASSEMBLE button. Simulator assembles the program and opcode along with
addresses are generated.
4. Then press RUN ALL AT A TIME button to perform complete execution of program
5. Else press STEP BY STEP and FORWARD to perform single step execution .
6. The outputs can be viewed in memory space. If I/O ports are used view the outputs in IO
space.
7. Then save the file in .asm format
SNAP SHOT of 8085 simulator workspace
Result :
ARITHMETIC & LOGICAL OPERATION USING 8051 MICROCONTROLLER
Ex. No:
Date:
AIM
To perform arithmetic & Logical operations using 8051 microcontroller
APPARATUS REQUIRED
8051 microcontroller Kit, RS-232 cable, power supply, PC FLOWCHART:
Addition:
Start
No
If CY==1
Yes
Stop
INPUT OUTPUT
Reg/address Data Address Data
ADDITION
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
Subtraction :
Start
Clear carry bit ,Initialize a register for Carry and get the
two 8 bit numbers as input
No
If CY==1
Yes
Stop
INPUT OUTPUT
Reg/address Data Address Data
SUBTRACTION
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
Multiplication/Division:
Start
Stop
INPUT OUTPUT
Reg/address Data Address Data
INPUT OUTPUT
Reg/address Data Address Data
MULTIPLICATION / DIVISION
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
Logical operations:
Start
Stop
INPUT OR OUTPUT
Reg/Address DATA Address DATA
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
RESULT
INTERFACING DAC - WAVEFORM GENERATION WITH 8051
Microcontroller
Ex. No:
Date:
AIM:
To write an assembly language program to generate saw tooth wave, triangular wave using
8051 microcontroller
APPARATUS REQUIRED:
MODEL GRAPH:
PROGRAM
TRIANGULAR WAVEFORM
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
SAW TOOTH
MODEL GRAPH:
SAW TOOTH WAVEFORM
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
RESULT:
INTERFACING STEPPER MOTOR WITH 8051 MICROCONTROLLER
Ex. No:
Date:
AIM:
APPARATUS REQUIRED:
FLOWCHART:
SAW TOOTH WAVEFORM
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
Result
CONTENT BEYOND SYLLABUS
FIBONACCI SERIES USING 8085
DATE:
AIM:
To write an assembly language program to generate Fibonacci series for a given limit using
8085
APPARATUS REQUIRED:
INPUT OUTPUT
ADDRESS DATA ADDRESS DATA
MANUAL CALCULATION:
PROGRAM
FIBONACCI SERIES
OPCODE
LABEL ADDRESS MNEMONICS COMMENTS
B1 B2 B3
RESULT: