Diploma in Electrical Engineering: Laboratory Manual
Diploma in Electrical Engineering: Laboratory Manual
Electrical Engineering
Laboratory Manual
Microprocessor and Controller
Applications (4360902)
SEMESTER-6TH
Enrollment No
Name
Branch
Academic Term
Institute
● To facilitate quality technical and professional education having relevance for both
industry and society, with moral and ethical values.
● Giving equal opportunity and access.
● Aiming to prepare globally competent technocrats.
DTE’s Mission:
1.Quality technical and professional education with continuous improvement of all the
resources and personnel
2.To promote conducive ecosystem for Academic, Industry, Research, Innovations and
Start-ups.
3.To provide affordable quality professional education with moral values, equal
opportunities, accessibility and accountability
4.To allocate competent and dedicated human resources and infrastructure to the
institutions for providing world-class professional education to become a Global Leader
(“Vishwa Guru”)
Institute’s Vision:
Institute’s Mission:
Department’s Vision:
Department’s Mission:
pg. 2
Certificate
Place:…………………..
Date: …………………..
pg. 3
Preface
The primary aim of any laboratory/Practical/field work is enhancement of required skills
as well as creative ability amongst students to solve real time problems by developing relevant
competencies in psychomotor domain. Keeping in view, GTU has designed competency focused
outcome-based curriculum -2021 (COGC-2021) for Diploma engineering programmes. In this
more time is allotted to practical work than theory. It shows importance of enhancement of skills
amongst students and it pays attention to utilize every second of time allotted for practical
amongst Students, Instructors and Lecturers to achieve relevant outcomes by performing rather
than writing practice in study type. It is essential for effective implementation of competency
focused outcome- based Green curriculum-2021. Every practical has been keenly designed to
serve as a tool to develop & enhance relevant industry needed competency in each and every
student. These psychomotor skills are very difficult to develop through traditional chalk and
board content delivery method in the classroom. Accordingly, this lab manual has been designed
to focus on the industry defined relevant outcomes, rather than old practice of conducting
practical to prove concept and theory.
By using this lab manual, students can read procedure one day in advance to actual
performance day of practical experiment which generates interest and also, they can have idea of
judgement of magnitude prior to performance. This in turn enhances predetermined outcomes
amongst students. Each and every Experiment /Practical in this manual begins by competency,
industry relevant skills, course outcomes as well as practical outcomes which serve as a key role
for doing the practical. The students will also have a clear idea of safety and necessary
precautions to be taken while performing experiment.
Microcontroller is used in almost all the domestic, industrial, consumer goods and
otherhigh end products. Automation is used in every field of engineering and microcontroller
isinbuilt element of these systems and devices. Diploma engineers have to deal with various
microprocessor and microcontroller based systems and maintain them. This course is intended to
develop the skills tomaintain and solve the application problems related to microprocessor and
microcontrollers.
Although we try our level best to design this lab manual, but always there are
chances of improvement. We welcome any suggestions for improvement.
pg. 4
Programme Outcomes (POs) :
pg. 5
Practical Outcome - Course Outcome Matrix
CO1 CO2 CO3 CO4
SR. Practical Outcome/Title of experiment
No.
Explore various blocks of Microprocessor
1 √
System.
Demonstrate the architecture of 8085
2 √
microprocessor.
3 Test and verify the features of 8085 Trainer Kit. √
Identify various pin of Microprocessor chip
4 √
8085.
5 Learn architecture of Microcontroller chip 8051. √
Use 8085 Simulation tool / Trainer kit for
6 √
running ASM programs.
Identify various pin of Microcontroller chip
7 √
8051.
Develop assembly language program for
8 arithmetic addition of two 8-bit numbers using √
µP 8085 kit/8085 Simulator.
Develop assembly language program for
9 arithmetic subtraction of two numbers using µP √
8085 kit/8085 Simulator.
Develop assembly language program for
10 arithmetic multiplication of two numbers using √
μP 8085 kit/8085 Simulator.
Implement a program to exchange the content of
11 √
two memory locations.
Develop assembly language program to find
12 √
One’s Complement of an 8-bit Number.
Develop assembly language program to find
13 √
Two’s Complement of an 8-bit Number.
Design 1-kilobyte Memory Interface with 8085
14 √
microprocessor.
Develop an application of PLC using Up-Down
15 √
Counter.
Study hardware and software associated with
16 √
PLC.
pg. 6
Industry Relevant Skills
The following industry relevant skills are expected to be developed in the
students by performance of experiments of this course.
a. Identify the relevant microcontroller.
b. Interface various I/O devices with microcontroller.
c. Interpret the program.
pg. 7
RUBRIC FOR PROGRESSIVE ASSESMENT OF PRACTICAL (WITHOUT
PERFORMANCE)
Explanation Student was able Student was able Student was able Student was able
of conclusion to reach to 30% of to reach to 50% to reach to 70% to reach to 85%
correct of correct of correct of correct
conclusion conclusion conclusion conclusion
TOTAL
OBTAINED
pg. 8
RUBRIC FOR PROGRESSIVE ASSESMENT OF PRACTICAL PERFORMANCE
Student was able Student was able Student was Student was able
to make circuit to make circuit able to make to make circuit
connection and connection and circuit connection and
Skill for performance of performance of connection and performance of
practical practical after practical after performance of practical without
performance assistance major assistance practical after any assistance
with safety minor assistance
Student needed Student needed Student followed
practises many reminders few reminders to Student needed all safety
to follow safety follow safety reminders only practices without
practices practices once to follow any reminder
safety practices
Student was able Student was able Student was Student was able
to take readings, to take readings, able to take to take readings,
plot graphs, do plot graphs, do readings, plot plot graphs, do
calculations, calculations, graphs, do calculations,
Interpretation of
derive conclusion derive conclusion calculations, derive conclusion
result
etc. after etc. after major derive etc. without any
complete assistance conclusion etc. assistance
assistance after minor
assistance
TOTAL
OBTAINED
pg. 9
Continuous Assessment Sheet
Enrolment No: Name: Term:
pg. 10
Date: ……………
Practical No.1: Explore various blocks of Microprocessor System.
A. Objective:
Microprocessor is the heart of the computer system. It is a small
computation unit that is fabricated on a single chip. The components used in
building up the chip are transistors, registers, diodes, etc. which work together
to perform the assigned operation.It accepts the input in binary form, processes
them as per the instruction stored in the memory, and performs the arithmetic
logic and sequential digital logic operation. From this practical students are
able to understand functioning of different blocks in microprocessor.
B. Expected Program Outcomes (POs):
1. PO1: Basic and Discipline specific knowledge
2. PO2: Problem Analysis
3. PO3: Design/ development of solution
4. PO4: Engineering Tools, Experimentation& Testing
E. Practical Outcome(PRo)
Explore various blocks of Microprocessor System.
G. Prerequisite Theory:
Microprocessor is a kind of integrated circuit (IC) unit which combines
all the basic functions of a central processing unit (CPU) of the computer.It is a
programmable unit that is fabricated on the silicon chip and it consists of an
ALU unit, clock, control unit, and register array which accepts the input in
binary form (0’s and 1’s) and delivers the output after processing the input data
as per the instructions fetched into the memory unit.
The basic building blocks of this processor are an ALU, register array,
and the main control processing unit. The function of the arithmetic logical
unit (ALU) is to perform mathematical and logical operations based on the data
fetched from the input units or the memory device.The register array is a
pg. 11
combination of register and accumulator. The control unit handles the overall
processing and flow of data in the computer.
I. Resources/Equipment Required
Sr. Instrument/Equipment Specification Quantity
No. /Components/Trainer kit
1. Chart Block diagram of As per resources
Microprocessor system available
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
…………………………………………………………………………………
……………………………………………
2. List types of buses in microprocessor system.
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
…………………………………………………………………………………
……………………………………………
3. Write the function of Register.
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
…………………………………………………………………………………
……………………………………………
M. References:
https://www.tutorialspoint.com/microprocessor/index.htm
pg. 13
N. Assessment-Rubrics
pg. 14
Date: ……………
Practical No.2: Demonstrate the architecture of 8085 microprocessor.
A. Objective:
Microprocessors are applicable to wide range of information processing tasks,
ranging from general computing to real time monitoring systems. From this
practical student are able to understand different blocks in 8085 architecture
and their functions.
B. Expected Program Outcomes (POs):
1. PO1: Basic and Discipline specific knowledge
2. PO2: Problem Analysis
3. PO3: Design/ development of solution
4. PO4: Engineering Tools, Experimentation& Testing
G. Prerequisite Theory:
8085 Architecture
Architecture of 8085 microprocessor is as shown in Fig. 1. In addition to the
arithmetic & logic circuits, the ALU includes the accumulator, which is part of
every arithmetic & logic operation. General purpose 8 bit registers B, C, D, E,
H & L can be used singly or can be used as 16 bit register pairs BC, DE, HL.
8085 has 8 bit flag register which contains S (sign flag),Z (zero flag),
AC(auxiliary carry flag), P (parity flag) & CY (carry flag). The Program
Counter is a 16 bit register that is used to control the sequencing of the
execution of instructions. This register always holds the address of the next
instruction. The Stack Pointer (SP) is also a 16-bit register that is used to point
into memory.
pg. 15
Figure 1 8085 Microprocessor Architecture
Address bus (A15-A8):It carries the most significant 8-bits of memory or I/O
address.
Data bus (AD7-AD0):It carries the least significant 8-bit address and data bus.
Control and status signals: These signals are used to identify the nature of
operation. There are 3 control signal and 3 status signals. Three control signals
are RD, WR & ALE.RD signal indicates that the selected I/O or memory
device is to be read and is ready for accepting data available on the data bus.
WR signal indicates that the data on the data bus is to be written into a selected
memory or I/Olocation.ALE is a positive going pulse generated when a new
operation is started by the microprocessor. When the pulse goes high, it
indicates address. When the pulse goes down it indicates data. Three status
signals are IO/M, S0 & S1.IO/M signal is used to differentiate between I/O and
Memory operations, i.e. when it is high indicates I/O operation and when it is
low then it indicatesmemoryoperation.S1 & S0signals are used to identify the
type of current operation.
Power Supply: There are 2 power supply signals − VCC & VSS. VCC
indicates +5v power supply and VSS indicates ground signal.
pg. 16
Clock Signals:There are 3 clock signals, i.e. X1, X2, CLK OUT.A crystal is
connected at X1 and X2 pins and is used to set frequency of the internal clock
generator. This frequency is internally divided by 2.CLK OUTis used as the
system clock for devices connected with the microprocessor.
Interrupts & externally initiated signals:Interrupts are the signals generated by
external devices to request the microprocessor to perform a task. There are 5
interrupt signals, i.e. TRAP, RST 7.5, RST 6.5, RST 5.5, and INTR.INTAis an
interrupt acknowledgment signal.RESET IN is used to reset the microprocessor
by setting the program counter to zero.RESET OUT is used to reset all the
connected devices when the microprocessor is reset.READY signal indicates
that the device is ready to send or receive data. If READY is low, then the
CPU has to wait for READY to go high.HOLD signal indicates that another
master is requesting the use of the address and data buses.HLDA (HOLD
Acknowledge) indicates that the CPU has received the HOLD request and it
will relinquish the bus in the next clock cycle. HLDA is set to low after the
HOLD signal is removed.
Serial I/O signals:There are 2 serial signals, i.e. SID and SOD used for serial
communication.The output SOD (Serial output data line) is set/reset as
specified by the SIM instruction.The data on SID (Serial input data line) is
loaded into accumulator whenever a RIM instruction is executed.
H. Experimental set up/ Program Logic-Flow chart:
I. Resources/Equipment Required
Sr. Instrument/Equipment Specification Quantity
No. /Components/Trainer kit
1. Chart 8085 Microprocessor As per resources
Block diagram available
K. Conclusion:
…………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………
…………………………………………………………………………………………………………………………
………………
pg. 17
L. Practical related Quiz.
1. List general purpose registers of 8085 microprocessor.
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
2. 8085 microprocessor had ……… data lines and ………. Address lines.
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
M. References:
https://www.tutorialspoint.com/microprocessor/index.htm
N. Assessment-Rubrics
Sr. Criteria Maximum Marks
No. Marks obtained
1. Understanding of concept 5
2. Explanation of conclusion 5
3. Participation 5
4. Student behaviour 5
5. Quality of term work 5
Total marks 25
pg. 18
Date: __________
Practical No.3: Test and verify the features of 8085 Trainer Kit.
G. Prerequisite Theory:
8085 Microprocessor Trainer
8085microprocessors as a Central Processing Unit and clock frequency for the
system is 3.0MHz and is generated from a crystal of 6.14MHz. 8085 has got 8-
bit data lines and 16-bit address lines. The lower 8 address lines and 8-bit data
lines are multiplexed. Since the lower 8 address bits appear on the bus during
the first clock cycle of a machine cycle and the 8 bit data appears on the bus
during the 2nd and 3rd clock cycle, it becomes necessary to latch the lower 8
address bits during the first clock cycle so that the 16 bit address remains
available in subsequent cycles. This is achieved using a latch 74LS373.
The training kit which we are going to use in this lab is VMC-8501(Vynitics
make) which communicates with the outside world through a general-purpose
HEX keyboard and six digits seven segment display.
pg. 19
The on-board resident system monitor software is very powerful and provides
various software utilities. The kit provides support for powerful software
commands like INSERT, DELETE, BLOCK MOVE, RELOCATE, STRING,
FILL and MEMORY COMPARE etc. The kit is configured around the
internationally adopted standard STD bus which is most popular bus for
process control and real time applications. All the address, data and control
lines are available at the edge connector. The kit is fully expandable for any
kind of application.
Fig. 3.2 View of 8085 Trainer kit _VMC8501 when entering the program
MEMORY:
8085 kit provides 8/32K bytes of RAM using 6264/62256 chip and 8K bytes
of EPROM for monitor. There is one memory space provided on kit. This one
space can be defined any address slots from 8000 - DFFF depending upon the
size of the memory chip to be used. Total onboard memory can be extended to
64K bytes.
pg. 20
Memory Map of kit:
0000H TO OFFFH = EPROM(2732)
1000H TO 17FFH = RAM#1(6 1/6)
1800H TO 1FFFH = RAM#2(6 1/6)
2000H TO 27FFH = RAM#3(6 1/6)
2800H TO 2FFMH = RAM#4(6 1/6)
309FH TO 300FH = 256bytes of user stop
30AOH TO 3FFFH = fold back memory
4000H TO FFFFH = expendable memory
I/O DEVICES
The various I/O chips used in STUDENT-85AD microprocessor kit are 8255,
8253 & 8155.
The functional role of all these chips is given below:
pg. 23
In Enter Program into Trainer Kit :
To Enter Program into Trainer Kit follow steps
1. Press “RESET” kit will display “UP 8085”.
2. EXMEM (key processor
represent address field)
3. Enter the Program Starting
address (16 bit) and digit in
hex
4. Press ‘NEXT’ key
5. Enter the opcode /data
6. Press “NEXT”, address is
incremented automatically
7. Enters program opcode and
data
till last HLT/ RST-5
instruction Hex code
8. Press “NEXT”&RESET’ key
pg. 24
EXAMINE / MODIFY
8.
REGISTER (EXREG)
H. Experimental set up
I. Resources/Equipment Required
Sr. Instrument/Equipment Specification Quantity
No.
/Components/Trainer kit
As mentioned in prerequisite theory As per resources
1 8085 based trainer kit
section available
O. ASSESMENT RUBRICS
Sr. No. Criteria Maximum Marks
Marks obtained
1. Understanding of concept 5
2. Skill for practical performance with safety
5
practises
3. Participation 5
4. Interpretation of result 5
5. Ethical conduct & team work 5
Total marks 25
pg. 26
Date: ……………
E. Practical Outcome(PrO)
Learn pin diagram of Microprocessor chip 8085
pg. 27
status signals are IO/M, S0 & S1.IO/Msignal is used to differentiate between
I/O and Memory operations, i.e. when it is high indicates I/O operation and
when it is low then it indicates memoryoperation.S1 & S0signals are used to
identify the type of current operation.
Power Supply: There are 2 power supply signals − VCC & VSS. VCC
indicates +5v power supply and VSS indicates ground signal.
Clock Signals:There are 3 clock signals, i.e. X1, X2, CLK OUT.A crystal is connected
at X1 and X2 pins and is used to set frequency of the internal clock generator.
This frequency is internally divided by 2.CLK OUTis used as the system clock
for devices connected with the microprocessor.
Interrupts & externally initiated signals:Interrupts are the signals generated by
external devices to request the microprocessor to perform a task. There are 5
interrupt signals, i.e. TRAP, RST 7.5, RST 6.5, RST 5.5, and INTR.INTAis an
interrupt acknowledgment signal.RESET IN is used to reset the microprocessor
by setting the program counter to zero.RESET OUT is used to reset all the
connected devices when the microprocessor is reset.READY signal indicates that
the device is ready to send or receive data. If READY is low, then the CPU has to
wait for READY to go high.HOLD signal indicates that another master is
requesting the use of the address and data buses.HLDA (HOLD Acknowledge)
pg. 28
indicates that the CPU has received the HOLD request and it will relinquish the
bus in the next clock cycle. HLDA is set to low after the HOLD signal is
removed.
Serial I/O signals: There are 2 serial signals, i.e. SID and SOD used for serial
communication. The output SOD (Serial output data line) is set/reset as specified
by the SIM instruction. The data on SID (Serial input data line) is loaded into
accumulator whenever a RIM instruction is executed.
H. Experimental set up/ Program Logic-Flow chart:
Faculty will demonstrate the use and function of pins of 8085 using chart or
presentations.
I. Resources/Equipment Required
Sr. Instrument/Equipment Specification Quantity
No. /Components/Trainer kit
1. Chart 8085 Microprocessor As per resource
pin diagram. available.
J. Conclusion:
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
……………………………………………………
K. Practical related Quiz.
1. Explain ALE signal.
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
2. 8085 is ___ bit microprocessor and it can have an access upto ____KB of
memory with 16 bit address bus.
3. What is TRAP?
…………………………………………………………………………………
…………………………………………………………………………………
………………………………………………………………………………...
pg. 29
L. References:
https://www.tutorialspoint.com/microprocessor/index.htm
M. Assessment-Rubrics
pg. 30
Date: ……………
Practical No.5: Learn architecture of Microcontroller chip 8051.
A. Objective:
Microcontroller had wide range of applications in electronic system needing
real time processing/control, starting from domestic applications such as
washing machine, TV and air conditioners. Microcontrollers are also used in
automobiles, process control industries, cell phones, robotics and in space
applications.From this practical students are able to understand different blocks
in 8051 architecture.
B. Expected Program Outcomes (POs):
1. PO1: Basic and Discipline specific knowledge
2. PO4: Engineering Tools, Experimentation and Testing.
E. Practical Outcome(PrOs)
Learn architecture of Microcontroller chip 8051.
G. Prerequisite Theory:
8051 Architecture
8051 is an 8-bit microcontroller. It is built with 40 pins DIP (dual inline
package) having 4KB of ROM storage and 128 bytes of RAM storage, two 16-
bit timers. It consists of four parallel 8-bit ports, which are programmable as
well as addressable as per the requirement. An on-chip crystal oscillator is
integrated in the microcontroller.In the 8051 microcontroller architecture, the
system bus plays a key role to connect all the devices to the central processing
unit. This bus includes an 8-bit data bus, a 16-bit address bus & bus control
signals. Other devices can also be interfaced throughout the system bus like
ports, memory, interrupt control, serial interface, the CPU, timers.
pg. 31
Figure 1 8051 Microcontroller Architecture
I. Resources/Equipment Required
Sr. Instrument/Equipment
Specification Quantity
No. /Components/Trainer kit
1. Chart 8051 Microcontroller As per resource
Block diagram available.
K. Conclusion:
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
……………………………………………………
pg. 32
L. Practical related Quiz.
1. List special function registers of 8051 Microcontroller.
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
…………………………………………………………………………………
……………………………………………
2. Internal RAM ………….. bytes and Internal ROM …………. bytes in
8051.
3. How many address lines need to interface 512 byte memory with 8051?
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
…………………………………………………………………………………
……………………………………………
M. References:
https://www.tutorialspoint.com/microprocessor/index.htm
N. Assessment-Rubrics
Sr. Criteria Maximum Marks
No. Marks obtained
1. Understanding of concept 5
2. Explanation of conclusion 5
3. Participation 5
4. Student behaviour 5
5. Quality of term work 5
Total marks 25
pg. 33
Date: ……………
Practical No.6: Use 8051 Simulation tool / Trainer kit for running ASM programs.
A. Objective:
Simulator is software which will execute the program and show the results
exactly to the program running on the hardware, if the programmer found any
errors in the program at the time of simulation, he can change the program and
re-simulate the code and get the expected result, before going to the hardware
testing. Students are able to build and validate their program very easily and in
an interactive way using simulators.
E. Practical Outcome(PRo)
Use 8051 Simulation tool / Trainer kit for running ASM programs.
G. Prerequisite Theory:
MCU 8051 is an 8051 simulator which is very simple to use and have an
interactive IDE (Integrated Development Environment). It is developed by
Martin Osmera. There are many features for this IDE they are:It supports both
C and assembly language for compilation and simulation.
It has in-built source code editor, graphical note pad, ASCII charts, Assembly
symbol viewer etc. Also supports number of 8051 IC’s like at89c51, A89S52,
8051, 8052, etc.
pg. 34
It will support the certain electronic simulation like LED, 7segment display,
LCD display etc. which will help in giving the output when you interface these
things to the hardware directly.
It has tools like hex decimal editors, base converters, special calculator, file
converter, inbuilt hardware programmer etc.
It has syntax validation, pop base auto completion etc.
I. Resources/Equipment Required
Sr. Instrument/Equipment
Specification Quantity
No. /Components/Trainer
kit
1. Hardware Computer System with basic As per
configuration Batch
2. Software Open Source MCU 8051 Size
Simulator
pg. 35
K. Conclusion:
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
……………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
…………………………………………………………………………………
……………………………………………
…………………………………………………………………………………
……………………………………………
M. References:
http://sourceforge.net/projects/mcu8051ide/files/
N. Assessment-Rubrics
Sr. No. Criteria Maximum Marks
Marks obtained
1. Understanding of concept 5
2. Skill for practical performance with safety
5
practises
3. Participation 5
4. Interpretation of result 5
5. Ethical conduct & team work 5
Total marks 25
pg. 36
Date: ……………
Practical No.7: Identify various pin of Microcontroller chip 8051.
A. Objective:
Microcontroller had wide range of applications in electronic system
needing real time processing/control, starting from domestic applications such
as washing machine, TV and air conditioners. Microcontrollers are also used in
automobiles, process control industries, cell phones, robotics and in space
applications. From this practical students are able to identify various pins of
8051 microcontroller and their functions.
E. Practical Outcome(PRo)
Learn pin diagram of Microcontroller chip 8051.
G. Prerequisite Theory:
8051 Architecture
8051 is an 8-bit microcontroller. It is built with 40 pins DIP (dual
inline package) having 4KB of ROM storage and 128 bytes of RAM storage,
two 16-bit timers. It consists of four parallel 8-bit ports, which are
programmable as well as addressable as per the requirement. An on-chip
crystal oscillator is integrated in the microcontroller.In the 8051
microcontroller architecture, the system bus plays a key role to connect all the
devices to the central processing unit. This bus includes an 8-bit data bus, a 16-
bit address bus & bus control signals. Other devices can also be interfaced
throughout the system bus like ports, memory, interrupt control, serial
interface, the CPU, timers.
Pins 1 to 8(Port 1): The Pins 1.0 to 1.7 are 8 Pins of port 1. Each of them can
be configured as input or output pin.
pg. 37
Pin 9: It is used to Reset Microcontroller 8051. A positive pulse is given on
this Pin to reset Microcontroller.
Pin 10 to 17(Port 3): These Pins are similar to Pins of Port 1. These Pins can be
used as universal Input or output. These are dual function Pins. Function of
each Pin is given as
Pin 10 It is Serial Data Receive.
Pin 11 It is Serial Data Transmit.
Pin 12 Interrupt 0 input.
Pin 13 Interrupt 1 input.
Pin 14 Counter 0 clock input.
Pin 15 Counter 1 clock input.
pg. 38
Pin 18 and 19: These are input output PINS for oscillator. An internal oscillator
is connected to Micro controller through these PINS.
Pin 20: Pin 20 is grounded.
Pin 21 to 28 (Port 2): These Pins can be configured as Input Output Pins. But
this is only possible in case when we don't use any external memory. If we use
external memory then these pins will work as high order address bus (A8 to
A15).
Pin 29: If we use an external ROM then it should has a logic 0 which indicates
Micro controller to read data from memory.
Pin 30: This Pin is used for ALE that is Address Latch Enable. If we use
multiple memory chips then this pin is used to distinguish between them. This
Pin also gives program pulse input during programming of EPROM.
Pin 31: If we have to use multiple memories then by applying logic 1 to this
pin instructs Micro controller to read data from both memories first internal
and afterwards external.
Pin 32 to 39(Port 0): Similar to port 2 and 3, these pins can be used as input
output pins when we don't use any external memory. When ALE or Pin 30 is at
1 then this port is used as data bus, when ALE pin at 0, then this port is used as
lower order address bus(A0 to A7).
Pin 40: VCC +5V power supply.
I. Resources/Equipment Required
Sr. Instrument/Equipment/ Specification Quantity
No. Components/Trainer
kit
1. Chart 8051 Microcontroller As per resources
pindiagram. available
J. Conclusion:
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
……………………………………………………
pg. 39
K. Practical related Quiz.
a. Higher order address bus is connected to port ……….. and Lower order
address bus is connected to port …………. for external memory
interfacing.
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
L. References:
https://www.tutorialspoint.com/microprocessor/index.htm
M. Assessment-Rubrics
pg. 40
Date: ……………
Practical No.8: Develop assembly language program for arithmetic addition of two
8-bit Numbers using µP 8085 kit/8085 Simulator.
A. Objective:
8085 microprocessor contain an Arithmetic Logic Unit, which is
responsible for performing mathematical operations at lightning-fast speeds. A
set of registers input data into the ALU on which the ALU performs operations
based on the instructions it receives. This practical will help the students to
develop programming skills in assembly language using basic instruction for
arithmetic operations.
The two numbers are stored at memory address 2000 and 2001. After addition
store the answer in the memory address 2002
E. Practical Outcome(PRo)
Write and execute assembly language programs based on Arithmetic
Instruction.
pg. 41
Initially, H-L pair is loaded with the address of first memory location.
The first operand is moved to accumulator from memory location 2000H
and H-L pair is incremented to point to next memory location.
The two operands are added and the result is stored in accumulator.
H-L pair is again incremented and the result is moved from accumulator to
memory location 2002H.
Programs given below are sample programs faculty can assign similar programs with
different logic to students)
pg. 42
H. OBSERVATION AND RESULT:
Table I: Register/Memory Status
Reg/Mem 2000 2001 2002
Address
Data before XX XX XX
execution
Data After 14 89 9D
Execution
J. Procedure:
To develop assembly language program we need to follow the following step
1. Divide the problem into small parts.
2. Write assembly language program.
3. Convert assembly language program in to machine language program.
4. Load the machine language program in to 8085 trainer kit and execute it.
5. Observe the result.
6. Note the values of the result in the observation table.
K. Resources/Equipment Required
Sr. Instrument/Equipment Specification Quantity
No. /Components/Trainer kit
1. Hardware 8085 Microprocessor Trainer kit As per
Batch
2. Software Open Source 8085 Simulator Size
M. Conclusion:
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
……………………………………………………
pg. 43
N. Practical related Quiz.
1. If content of A is FF h, then after execution of INR A content of A is
………..
2. Data of A=15H , B=02H after execution of ADD B, data of A= ……….. H
& B= …………… H.
3. Data of A=09H , B=02H after ADC B data of A= ……….. H & B=
…………… H.
4. ………………………………… flag will get set, when carry is generated
from D3 to D4.
O. References:
https://nptel.ac.in/courses/108105102
http://what-when-how.com/8051-microcontroller/arithmetic-instructions/
P. Assessment-Rubrics
Sr. Criteria Maximum Marks
No. Marks obtained
1. Understanding of concept 5
2. Skill for practical performance with safety
5
practises
3. Participation 5
4. Interpretation of result 5
5. Ethical conduct & team work 5
Total marks 25
pg. 44
Date: ……………
Practical No.9: Develop assembly language program for arithmetic subtraction of two
numbers using µP 8085 kit.
A. Objective:
8085 microprocessor contain an Arithmetic Logic Unit, which is responsible
for performing mathematical operations at lightning-fast speeds. A set of
registers input data into the ALU on which the ALU performs operations based
on the instructions it receives. This practical will help the students to develop
programming skills in assembly language using basic instruction for
arithmetic operations.
The two numbers are stored at memory address 2000 and 2001. After
subtraction store the answer in the memory address 2002
B. Expected Program Outcomes (POs):
1. PO1: Basic & Discipline specific knowledge
2. PO2: Problem Analysis
3. PO3: Design/ Development of Solution
4. PO4: Engineering Tools, Experimentation and Testing
E. Practical Outcome(PRo)
G. Prerequisite Theory:
The two numbers are stored at memory address 2000 and 2001. After
subtraction store the answer in the memory address 2002.
pg. 45
This program subtracts two operands stored in memory location 2000H and
2001H, along with considering the borrow taken (if any).
Let us assume that the operands stored at memory location 2000H is 05H
and 2001H is 02H.
Initially, H-L pair is loaded with the address of first memory location.
The first operand is moved to accumulator from memory location 2000H
and H-L pair is incremented to point to next memory location.
The two operands are subtracted and the result is stored in accumulator.
H-L pair is incremented and the result is moved from accumulator to
memory location 2002H.
Programs given below are sample programs faculty can assign similar programs with
different logic to students)
pg. 46
H. OBSERVATION AND RESULT:
Result: 05H–02H=03H
J. Procedure:
To develop assembly language program we need to follow the following step
1. Divide the problem into small parts.
2. Write assembly language program.
3. Convert assembly language program in to machine language program.
4. Load the machine language program in to 8085 trainer kit and execute it.
5. Observe the result.
6. Note the values of the result in the observation table.
K. Resources/Equipment Required
Sr. Instrument/Equipment Specification Quantity
No. /Components/Trainer kit
1 Hardware 8085 Microprocessor Trainer kit As per
Batch
2 Software Open Source 8085 Simulator Size
. Android Cell: 8085 Simulator
Ultimate.
M. Conclusion:
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
……………………………………………………
pg. 47
N. Practical related Quiz.
O. References:
https://nptel.ac.in/courses/108105102
https://www.sim8085.com/
https://archive.nptel.ac.in/courses/108/105/108105102/
P. Assessment-Rubrics
pg. 48
Date: ……………
A. Objective:
8085 microprocessor contains an Arithmetic Logic Unit, which is
responsible for performing mathematical operations at lightning-fast speeds. A
set of registers input data into the ALU on which the ALU performs operations
based on the instructions it receives. This practical will help the students to
develop programming skills in assembly language using basic instruction for
arithmetic operations.
The two numbers are stored at memory address D000H and D001H. After
multiplication store the answer in the memory address D002H
E. Practical Outcome(PRo)
Write and execute assembly language programs based on Arithmetic
Instruction.
F. Expected Affective domain Outcome(ADos)
1. Operate Computer system(simulator)/trainer kit carefully with safety and
necessary precaution.
2. Follow precautionary measures.
3. Demonstrate working as a leader/ a team member.
4. Follow ethical practices
G. Prerequisite Theory:
1. Start the program by loading accumulator with 00.
2. Move the data into B register.
3. Move the second data in C register.
4. Add contents of register B with contents of accumulator.
pg. 49
5. Decrement the value of C register.
6. Make a loop with condition “JUMP IF NOT ZERO”.
7. Store the result in memory location.
8. Terminate to program.
Programs given below are sample programs faculty can assign similar programs with
different logic to students)
Data After FF 01 FF
Execution
pg. 50
I. Other Special Remarks for Results:
DATA:
First Number: (D000H) = FFH
Second Number:(D001H) = 01H
M. Conclusion:
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
pg. 51
N. Practical related Quiz.
1. If content of A is FF h, then after execution of DCR A content of A is
………..
O. References:
https://nptel.ac.in/courses/108105102
http://what-when-how.com/8051-microcontroller/arithmetic-instructions/
P. Assessment-Rubrics
Sr. Criteria Maximum Marks
No. Marks obtained
1. Understanding of concept 5
2. Skill for practical performance with safety
5
practises
3. Participation 5
4. Interpretation of result 5
5. Ethical conduct & team work 5
25
pg. 52
Date: ……………
Practical No.11: Implement a program to exchange the content of two memory locations.
A. Objective:
8085 microprocessor contain an Arithmetic Logic Unit, which is
responsible for performing mathematical operations at lightning-fast speeds. A
set of registers input data into the ALU on which the ALU performs operations
based on the instructions it receives. This practical will help the students to
develop programming skills in assembly language using data transfer
instructions.
The two numbers are stored at memory address 3000H and 4000H. After
program exchange the contents of memory location 3000H and 4000H.
E. Practical Outcome(PRo)
Develop programming skills in assembly language using basic data transfer
instructions.
pg. 53
G. Prerequisite Theory:
Load content of memory location 3000h in to accumulator
Now move this content in to register B(In register B -3000H content)
Memory location 4000h content move in to accumulator.
Accumulator (4000h memory location) content store in to 3000h memory
location.
Move register B content(3000H memory location data) in to accumulator.
Accumulator (3000h memory location) content store in to 4000h memory
location.
Programs given below are sample programs faculty can assign similar programs with
different logic to students)
pg. 54
H. OBSERVATION AND RESULT:
Data After 14 16
Execution
Data:
Content of memory location 3000H=16H
Content of memory location 3000H=14H
Result:
Content of memory location 3000H=14H
Content of memory location 3000H=16H
J. Procedure:
To develop assembly language program we need to follow the following step
1. Divide the problem into small parts.
2. Write assembly language program.
3. Convert assembly language program in to machine language program.
4. Load the machine language program in to 8085 trainer kit and execute it.
5. Observe the result.
6. Note the values of the result in the observation table.
K. Resources/Equipment Required
Sr. Instrument/Equipment Specification Quantity
No. /Components/Trainer
kit
1. Hardware 8085 Microprocessor Trainer kit As per
Batch
2. Software Open Source 8085 Simulator Size
Android Cell: 8085 Simulator
Ultimate.
pg. 55
M. References:
https://nptel.ac.in/courses/108105102
https://www.sim8085.com/
https://archive.nptel.ac.in/courses/108/105/108105102/
N. Assessment-Rubrics
Sr. No. Criteria Maximum Marks
Marks obtained
1. Understanding of concept 5
2. Skill for practical performance with safety 5
practises
3. Participation 5
4. Interpretation of result 5
5. Ethical conduct & team work 5
Total marks 25
pg. 56
Date: ……………
Practical No.12: Develop assembly language program to find One’s Complement of an 8-bit
Number.
A. Objective:
8085 microprocessor contain an Arithmetic Logic Unit, which is
responsible for performing mathematical operations at lightning-fast speeds. A
set of registers input data into the ALU on which the ALU performs operations
based on the instructions it receives. This practical will help the students to
develop programming skills in assembly language using data transfer
instructions and logical instructions.
The 8-bit data is placed in memory address 2501H. The result is stored in
memory location 2502H.
B. Expected Program Outcomes (POs):
1. PO1: Basic & Discipline specific knowledge
2. PO2: Problem Analysis
3. PO3: Design/ Development of Solution
4. PO4:Engineering Tools, Experimentation and Testing
E. Practical Outcome(PRo)
Develop programming skills in assembly language using basic data transfer
instructions.
H. RESULT:
Table I: Register/Memory Status
Reg/Mem Address 2501 H 2502H
Data before XX H XX
execution
Data After 96 H 69H
Execution
J. Procedure:
To develop assembly language program we need to follow the following step
a. Divide the problem into small parts.
b. Write assembly language program.
c. Convert assembly language program in to machine language program.
d. Load the machine language program in to 8085 trainer kit and execute it.
e. Observe the result.
f. Note the values of the result in the observation table.
pg. 58
K. Resources/Equipment Required
M. Conclusion:
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
……………………………………………………
O. References:
https://nptel.ac.in/courses/108105102
https://www.sim8085.com/
https://archive.nptel.ac.in/courses/108/105/108105102/
pg. 59
P. Assessment-Rubrics
pg. 60
Date: ……………
Practical No.13: Develop assembly language program to find Two’s Complement of an 8-bit
Number.
A. Objective:
8085 microprocessor contain an Arithmetic Logic Unit, which is
responsible for performing mathematical operations at lightning-fast speeds. A
set of registers input data into the ALU on which the ALU performs operations
based on the instructions it receives. This practical will help the students to
develop programming skills in assembly language using data transfer
instructions and logical instructions.
The 8-bit data is placed in memory address 2501H. The result is stored in
memory location 2502H.
B. Expected Program Outcomes (POs):
1. PO1: Basic & Discipline specific knowledge
2. PO2: Problem Analysis
3. PO3: Design/ Development of Solution
4. PO4:Engineering Tools, Experimentation and Testing
E. Practical Outcome(PRo)
Develop programming skills in assembly language using basic data transfer
instructions.
pg. 61
G. Prerequisite Theory:
The instruction LDA 2501H transfers the number from memory location
2501 H to the accumulator.
CMA takes complement of the number.
INR A takes 2’s complement.
STA 2502 H stores the result in the memory location 2502H.
RST 5 Set break point.
Programs given below are sample programs faculty can assign similar
programs with different logic to students)
Data:
Content of memory location 2501H=96H
Result:
Content of memory location 2502H=6AH
pg. 62
J. Procedure:
To develop assembly language program we need to follow the following step
1.Divide the problem into small parts.
2.Write assembly language program.
3.Convert assembly language program in to machine language program.
4.Load the machine language program in to 8085 trainer kit and execute it.
5.Observe the result.
6.Note the values of the result in the observation table.
K. Resources/Equipment Required
Sr. Instrument/Equipment Specification Quantity
No. /Components/Trainer kit
1. Hardware 8085 Microprocessor Trainer kit As per
Batch
2. Software Open Source 8085 Simulator Size
Android Cell: 8085 Simulator
Ultimate.
M. Conclusion:
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
……………………………………………………
N. Practical related Quiz.
a. Two’s complement of 8-bit data E4 H is ________.
b. Function of Instruction INR A is
__________________________________________
O. References:
https://nptel.ac.in/courses/108105102
https://www.sim8085.com/
https://archive.nptel.ac.in/courses/108/105/108105102/
pg. 63
P. Assessment-Rubrics
Sr. No. Criteria Maximum Marks
Marks obtained
1. Understanding of concept 5
2. Skill for practical performance with safety 5
practises
3. Participation 5
4. Interpretation of result 5
5. Ethical conduct & team work 5
Total marks 25
pg. 64
Date: ……………
Practical No.14: Design 1-kilobyte Memory Interface with 8085 microprocessor.
pg. 65
Data pins: Since each memory location stores eight bits, there are eight
data lines D0-D7 connected to the memory chip.
Address pins: The number of address pins depends on the size of the
memory. In this case, a memory of size 1 kB x 8 will have 210 different
memory locations. Hence, it will have ten address lines A0 to A9.
Similarly, the 2 kB RAM will have 211 different memory locations. So,
there are 11 address lines A0-A10.
CS pin: When this pin is enabled, the memory chip knows that the
microprocessor is talking to it and responds to it accordingly. We need to
generate this signal for each of the chips according to the range of addresses
assigned to them. Basically, we select a chip only when it is needed. The
Chip Select (CS) pin is used for this.
OE pin: When this active-low output enable pin is enabled, the memory
chip can output the data into the data bus.
WR pin: Upon activation of this active-low memory write pin, data on the
data bus is written on the memory chip at the location specified by the
address bus.
VCC and GND pins: These pins serve the purpose of powering the ICs.
For simplicity, we will not show these pins in the diagram.
There are three types of buses in 8085 – Address bus, data bus, and control
bus. Each of these buses will be connected to the memory chip.
Four control signals are generated when we input the WR, RD and IO/M
signals from the 8085 to the 3:8 decoder – IOR, IOW, MEMR and MEMW.
pg. 66
Since we are dealing with memory, we will just need MEMR and MEMW
signals.
While reading from a memory chip, it’s output should be enabled. So,
MEMR will be connected to the OE pin. Similarly, for writing to a memory
chip, MEMW will be connected to the WR pin of the RAM. After completing
these two connections, we are done with the control signals except CS. We
will deal with that in a bit.
There are eight lines comprising the data bus of both 8085 and the memory
chips. The interfacing of the data bus is the simplest part. We just connect
corresponding lines (D0-D7 from 8085) to the corresponding pins (D0-D7 of
the memory chip).
We have a 2kB RAM with 11 address lines. So, the first 11 lines of the
address bus of 8085 will be connected to the corresponding address lines of
the 2kB RAM. Similarly, the first 10 lines of the address bus of 8085 will be
connected to the corresponding lines of 1kB EPROM. The remaining address
lines will be used to generate the chip select (CS) signal.
This is a little tricky, but it’s the most important part of solving the problem.
Let us proceed step by step and build up an intuition of how to generate the
chip select signal for a memory of given size and given address range.
Let us tabulate the starting and ending address of the 1kB EPROM.
A15 is most significant, and A0 is the least significant bit. The address range
for placing the EPROM is from 2000H to 23FFH (as given in the question.)
Translating these to binary:
From the above table, we can observe that ten bits from A0 to A9 are
changing. These ten bits are directly connected to the address lines of the
memory chip.
pg. 67
These ten bits take the value of either 0 or 1 to form addresses. The first
address is 00 0000 0000, and the second address is 00 0000 0001, the third is
00 0000 0010 and so on. The last address will be 11 1111 1111.
Meanwhile, bits A11 to A15 do not change and don’t have any effect on the
addressing process inside the memory chip. So, we can conclude that the
values of bits A15-A11 (0011 00) given in the above table are in a unique,
unchanging configuration for this memory chip. If even one of these bits
changes, the address won’t belong to this memory chip. So, we can use these
values of A15-A11 to uniquely identify this memory chip, which is exactly
what the CS signal is supposed to do.
We can say that when A15 = A14 = A11 = A10 = 0 and A13 = A12 = 1, then
our memory chip should be selected. Now, we need to design the logic to
generate the CS signal. The resulting Boolean equation of CS will be:
This equation can be implemented using NAND Gate. The final chip select
logic for 1kB EPROM is illustrated below.
Since we now have the chip select logic and have decided all the connections,
it’s time to finalize the circuit. The entire external memory interfacing circuit
can be broken up into five different parts:
8085 microprocessor
DE multiplexing of address/data bus
Generation of control signals
Generation of chip select signals
Memory chips
The images below show the final circuit with all the five parts listed above
integrated into a single circuit. Just the connections are shown in the first
diagram. In the diagram following it, different subsections of the circuit are
labelled.
pg. 68
The above diagram summarizes the entire process of interfacing the external
memory with the 8085 microprocessor
Sr.No. Instrument/Equipment
Specification Quantity
/Components/Trainer kit
1. Chart 1KB Memory interfacing 1 No.
with 8085 microprocessor.
K. Conclusion:
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
……………………………………………………
pg. 69
L. Practical related Quiz.
…………………………………………………………………………………
…………………………………………………………………………………
…………………………………………………………………………………
………
M. References:
https://onlinecourses.nptel.ac.in/noc20_ee42/preview
N. Assessment-Rubrics
pg. 70
Date: ……………
Practical No.15: Develop an application of PLC using Up-Down Counter.
A. Objective:
1. Study Counter timing diagram
2. Develop an application specific ladder program using counters
E. Practical Outcome(PRo)
Develop an application of PLC using Up-Down
Counter.
G. Prerequisite Theory:
Counters are used to count number of objects or to count cycles of a typical
process. Consider an example of bottle filling plant, in that counter is used to
count number of bottles filled in a particular batch.
In counter instruction the accumulated value will increase only when it
completes the transition from open to close or vice versa. It doesn’t check how
long contact stay closed, it only looks for the transition. There are two basic
types of counter
1. Up-Counter (CTU)
2. Down-Counter (CTD)
In Up counter when contact change over takes place accumulator value
increments by one. While in down counter when changeover takes place
accumulator value decrements by one.
The instruction blocks of up counter and down counter are as shown below.
pg. 71
Count Up (CU) Bit: - The Count Up enable bit indicates the CTU instruction
is enabled. The data type used is Boolean indicated as BOOL.
Count Down (CD) Bit: -The Count Up enable bit indicates the CTD
instruction is enabled.
Done (DN) Bit: -The done bit changes state whenever the accumulated value
reaches the preset value. The data type used is Boolean indicated as BOOL.
Overflow (OV) Bit: -The overflow bit indicates the counter exceeded the
upper limit of 2, 147, 483, 647. The counter then roles over to -2, 147, 483,
648 and begins counting up again. The data type used is Boolean indicated as
BOOL.
Underflow (UN) Bit: -The underflow bit indicates that the counter exceeded
the lower limit of -2, 147, 483, 647. The counter then roles over to 2, 147, 483,
647 and begins counting down again. The data type used is Boolean indicated
as BOOL.
Preset (PRE) Bit: -It specifies the value which the accumulated value must
reach before the instruction sets the done bit. The data type used is Double
integer indicated as DINT.
Accumulator (ACC) Bit: -It specifies the number of transitions the instruction
has counted.
The following example, will illustrate the function of each bit of Up Counter
after downloading the ladder and putting the PLC in run mode
Here for every transition of start bit, counter accumulator value will be
increased by one and for every count lamp 1 will glow on. When accumulator
value becomes 5, lamp3 will glow on. To reset the counter and make
accumulator value zero, reset bit is used
pg. 72
.
pg. 73
The following example can illustrate the function of each bit for Down
Counter.Here accumulator value of CTD is 9. For each transition of start bit
this value will be decremented by one. Whenever start bit becomes on, lamp1
will glow on. Lamp3 will remain on till accumulator Value becomes greater
than or equal to presetvalue.When it becomes less than preset then lamp3 will
glow off.
The Function Block Diagram, Timing diagrams, and ladder diagram solutions
are as per the available PLC(Rockwell Automation) .
In case of down counter the entire procedure will remain same. Only the number of
counts are to be entered in the accumulator tab. The preset value is zero. When the input
pg. 74
contact closes, the accumulator will go on decrementing, will reach to zero '0' value and
the status of done bit will change.
To reset the DN counter use “Reset” command so that the counter can be configured for
new counts without reloading the page. Please note the tag of the reset bit must be the
tag of counter.
I. Resources/Equipment Required
pg. 75
L. Conclusion:
…..................................................................................................................
.............................….....................................................................................
..........................................................
M. Practical related Quiz.
1. The term ‘PLC’ stands for:
a. Programmable logic controller
b. Programmable logic Centre
c. Process logic control
d. None of these
1. For an electromagnetic relay two types of contacts available are:
a. Nominal close and Nominal open
b. Nominal close and Partial open
c. Normally close and Normally open
d. All of these
N. References / Suggestions
1. https://plc-coep.vlabs.ac.in/exp/hardware-software-plc/simulation.html
pg. 76
O. Assessment-Rubrics
pg. 77
Date: ……………
Practical No.16: Study hardware and software associated with PLC.
A. Objective:
1. Learn the basics and hardware components of PLC
2. Understand configuration of PLC system
3. Study various building blocks of PLC
E. Practical Outcome(PRo)
Study hardware and software associated with PLC.
G. Prerequisite Theory:
Controllers may consist of logical components and connections among them.
Depending on the current logical value of input, output is produced to change
the status of the system. PLC may realize such controllers. Today, the
command and feedback control systems of industrial automation systems are
realized by programmable logic controllers (PLCs). In order for PLCs to work
as controllers, they must be able to realize some functions. These functions are
basic and combinational logic operations such as AND, OR, AND-NOT, OR-
NOT, timer and counter operations. In addition to these, PLCs may have the
ability to realize several transfer, mathematical, and PID operations. PLC
consists of three main parts: CPU, memory and I/O units. CPU is the brain of
PLC. It reads the input values from inputs, runs the program existed in the
program memory and writes the output values to the output register. Memory is
used to store different types of information in the binary structure form. The
memory range of S7-200 is composed of three main parts as program,
parameter, and retentive data fields. I/O units provide communication between
PLC control systems.
pg. 78
The screen shot will appear as shown below.
pg. 79
H. Experimental set up :
The screen shot will appear as shown below.
I. Resources/Equipment Required
Sr. Instrument/Equipment/Com Specification Quantity
No. ponents/Trainer kit
1. Virtual Lab PC with network availability/ As per resources
Android cell available
pg. 80
L. Conclusion:
…..........................................................................................................................
.....................….....................................................................................................
..........................................
M. Practical related Quiz.
1. The term ‘PLC’ stands for:
e. Programmable logic controller
f. Programmable logic Centre
g. Process logic control
h. None of these
2. For an electromagnetic relay two types of contacts available are:
e. Nominal close and Nominal open
f. Nominal close and Partial open
g. Normally close and Normally open
h. All of these
3. Originally PLCs were designed to control:
e. Continuous processes
f. Batch Processes
g. Composite Processes
h. All of these
4. The term ‘analog’ refers to:
e. A signal which is continuously varying w.r.t time
f. A signal which is constant w.r.t time
g. A signal which is not varying w.r.t time
h. All of these
N. References / Suggestions
3. https://plc-coep.vlabs.ac.in/exp/hardware-software-plc/simulation.html
O. Assessment-Rubrics
Sr. No. Criteria Maximum Marks
Marks obtained
1. Understanding of concept 5
2. Skill for practical performance with safety
5
practises
3. Participation 5
4. Interpretation of result 5
5. Ethical conduct & team work 5
Total marks 25
pg. 81
Note:In all above programming experiments Students should write
their own program in below formats.
Program:
pg. 82
OBSERVATION AND RESULT:
Reg/Mem
Address
Databefor
e execution
DataAfter
Execution
DATA:
Result:
Sign of faculty
pg. 83
Diploma Electrical Engineering
Lab Manual
Subject : Microprocessor & Controller
Applications(4360902)
Semester: 6th
Prepared by:
Sr. Name of Expert Contact No. Email_Id Institute Name
No.
1 DIPA J. 6352400310 dipakapupara.ee@gmail.com A. V. Parekh
KAPUPARA Technical Institute,
Lecturer in Rajkot
Electrical Engg
2 DHARA V. 9429215260 dharasodha18@yahoo.com Government
SODHA Polytechnic,
Lecturer in Junagadh
Electrical Engg
3 ASHOKKUMAR 9328522545 parmarashok2002hod@gmail.com B & B Institute of
PARMAR Technology,V V
Head of Nagar
Electrical Engg
4 J M Patel 9825719595 jasminp@gmail.com S.S.GANDHI-
Lecturer SURAT
in Electrical
Engg.
pg. 84
OPCODES TABLE OF INTEL 8085
pg. 85
Sr. No. Mnemonics, Operand Opcode Bytes
43. CP Label F4 3
44. CPE Label EC 3
45. CPI Data FE 2
46. CPO Label E4 3
47. CZ Label CC 3
48. DAA 27 1
49. DAD B 09 1
50. DAD D 19 1
51. DAD H 29 1
52. DAD SP 39 1
53. DCR A 3D 1
54. DCR B 05 1
55. DCR C 0D 1
56. DCR D 15 1
57. DCR E 1D 1
58. DCR H 25 1
59. DCR L 2D 1
60. DCR M 35 1
61. DCX B 0B 1
62. DCX D 1B 1
63. DCX H 2B 1
64. DCX SP 3B 1
65. DI F3 1
66. EI FB 1
67. HLT 76 1
68. IN Port-address DB 2
69. INR A 3C 1
70. INR B 04 1
71. INR C 0C 1
72. INR D 14 1
73. INR E 1C 1
74. INR H 24 1
75. INR L 2C 1
76. INR M 34 1
77. INX B 03 1
78. INX D 13 1
79. INX H 23 1
80. INX SP 33 1
81. JC Label DA 3
82. JM Label FA 3
83. JMP Label C3 3
84. JNC Label D2 3
85. JNZ Label C2 3
86. JP Label F2 3
87. JPE Label EA 3
88. JPO Label E2 3
89. JZ Label CA 3
pg. 86
Sr. No. Mnemonics, Operand Opcode Bytes
90. LDA Address 3A 3
91. LDAX B 0A 1
92. LDAX D 1A 1
93. LHLD Address 2A 3
94. LXI B 01 3
95. LXI D 11 3
96. LXI H 21 3
97. LXI SP 31 3
98. MOV A, A 7F 1
99. MOV A, B 78 1
100. MOV A, C 79 1
101. MOV A, D 7A 1
102. MOV A, E 7B 1
103. MOV A, H 7C 1
104. MOV A, L 7D 1
105. MOV A, M 7E 1
106. MOV B, A 47 1
107. MOV B, B 40 1
108. MOV B, C 41 1
109. MOV B, D 42 1
110. MOV B, E 43 1
111. MOV B, H 44 1
112. MOV B, L 45 1
113. MOV B, M 46 1
114. MOV C, A 4F 1
115. MOV C, B 48 1
116. MOV C, C 49 1
117. MOV C, D 4A 1
118. MOV C, E 4B 1
119. MOV C, H 4C 1
120. MOV C, L 4D 1
121. MOV C, M 4E 1
122. MOV D, A 57 1
123. MOV D, B 50 1
124. MOV D, C 51 1
125. MOV D, D 52 1
126. MOV D, E 53 1
127. MOV D, H 54 1
128. MOV D, L 55 1
129. MOV D, M 56 1
130. MOV E, A 5F 1
131. MOV E, B 58 1
132. MOV E, C 59 1
133. MOV E, D 5A 1
134. MOV E, E 5B 1
135. MOV E, H 5C 1
136. MOV E, L 5D 1
pg. 87
Sr. No. Mnemonics, Operand Opcode Bytes
137. MOV E, M 5E 1
138. MOV H, A 67 1
139. MOV H, B 60 1
140. MOV H, C 61 1
141. MOV H, D 62 1
142. MOV H, E 63 1
143. MOV H, H 64 1
144. MOV H, L 65 1
145. MOV H, M 66 1
146. MOV L, A 6F 1
147. MOV L, B 68 1
148. MOV L, C 69 1
149. MOV L, D 6A 1
150. MOV L, E 6B 1
151. MOV L, H 6C 1
152. MOV L, L 6D 1
153. MOV L, M 6E 1
154. MOV M, A 77 1
155. MOV M, B 70 1
156. MOV M, C 71 1
157. MOV M, D 72 1
158. MOV M, E 73 1
159. MOV M, H 74 1
160. MOV M, L 75 1
161. MVI A, Data 3E 2
162. MVI B, Data 06 2
163. MVI C, Data 0E 2
164. MVI D, Data 16 2
165. MVI E, Data 1E 2
166. MVI H, Data 26 2
167. MVI L, Data 2E 2
168. MVI M, Data 36 2
169. NOP 00 1
170. ORA A B7 1
171. ORA B B0 1
172. ORA C B1 1
173. ORA D B2 1
174. ORA E B3 1
175. ORA H B4 1
176. ORA L B5 1
177. ORA M B6 1
178. ORI Data F6 2
179. OUT Port-Address D3 2
180. PCHL E9 1
181. POP B C1 1
182. POP D D1 1
183. POP H E1 1
pg. 88
Sr. No. Mnemonics, Operand Opcode Bytes
184. POP PSW F1 1
185. PUSH B C5 1
186. PUSH D D5 1
187. PUSH H E5 1
188. PUSH PSW F5 1
189. RAL 17 1
190. RAR 1F 1
191. RC D8 1
192. RET C9 1
193. RIM 20 1
194. RLC 07 1
195. RM F8 1
196. RNC D0 1
197. RNZ C0 1
198. RP F0 1
199. RPE E8 1
200. RPO E0 1
201. RRC 0F 1
202. RST 0 C7 1
203. RST 1 CF 1
204. RST 2 D7 1
205. RST 3 DF 1
206. RST 4 E7 1
207. RST 5 EF 1
208. RST 6 F7 1
209. RST 7 FF 1
210. RZ C8 1
211. SBB A 9F 1
212. SBB B 98 1
213. SBB C 99 1
214. SBB D 9A 1
215. SBB E 9B 1
216. SBB H 9C 1
217. SBB L 9D 1
218. SBB M 9E 1
219. SBI Data DE 2
220. SHLD Address 22 3
221. SIM 30 1
222. SPHL F9 1
223. STA Address 32 3
224. STAX B 02 1
225. STAX D 12 1
226. STC 37 1
227. SUB A 97 1
228. SUB B 90 1
229. SUB C 91 1
230. SUB D 92 1
pg. 89
Sr. No. Mnemonics, Operand Opcode Bytes
231. SUB E 93 1
232. SUB H 94 1
233. SUB L 95 1
234. SUB M 96 1
235. SUI Data D6 2
236. XCHG EB 1
237. XRA A AF 1
238. XRA B A8 1
239. XRA C A9 1
240. XRA D AA 1
241. XRA E AB 1
242. XRA H AC 1
243. XRA L AD 1
244. XRA M AE 1
245. XRI Data EE 2
246. XTHL E3 1
pg. 90