SlideShare a Scribd company logo
1
LABORATORY MANUAL OF EEC456 & EEE454
Prepared at Ashoka Institute of Technology & Management, Aktha, Sarnath, Varanasi, U.P.
With
Participation & Valuable Contributions from
Er. Anupam Kumar, ECE, HOD & Assistant Professor, AITM
(anupamkumarmtec@gmail.com)
Department of Electronics & Communication Engineering
1 To study 8085 microprocessor System
2 To study 8086 microprocessor System
3 To develop and run a program for finding out the largest/smallest number from a given set of
numbers.
4 To develop and run a program for arranging in ascending/descending order of a set of numbers
5 To develop and run a programme to compute square root of a given number
6 To perform multiplication/division of given numbers
7 To perform floating point mathematical operations (addition, subtraction, multiplication and
division)
8 To obtain interfacing of keyboard controller
9 To perform interfacing of DMA controller
10 To obtain interfacing of RAM chip to 8085/8086 based system
Textbook: Lab Manual EEC456
Additional Readings:
1. Ramesh Gaonkar,”Microprocessor Architecture, Programming, and Applications with the
8051, 5th
Edition, Penram International Publication (India) Pvt. Ltd.
2. Douglas V. Hail,” Microprocessor and Interfacing,”2nd
Edition,TMH,2006
3. User’s Guide (XPO 85/SW), ANSHUMAN Tech Pvt. Ltd.
Course Code: E E C 4 5 6
Course
Title: Microprocessors Laboratory
FACULTY NAME MR. ANUPAM KUMAR
Attendance
Weightages
CA MTE ETE
0 0 0
2
3
 QUICK STEPS TO LEARN OPERATION WITH KIT
Step I:-Procedure to operate kit using assembly language program.
Do connections as per your figure
Switch ON power supply (i.e. SMPS (Switched mode power supply)
ANSHUMAN will be display on display board.
Press ENTER key
Go to command mode
COMMAND=
Press E
EXPAND=
Press A
2 PASS ASSEMBLER?
Press ENTER key 3 times
Files EXIST?
Press ‘N’ (No)
ARE YOU SURE?
Press ENTER KEY
C=
Press ‘W’
0001 ORG 6000H (Write your program here)
0002 MVI A, 22H
0003 MVI B, 33H
0004 ADD B
0005 RST 1
Press Ctrl key+ C
C=
4
Press ‘A’ Key
Will show message save code at DSTN? Y/N
Press ‘Y’ (Yes)
C=
Press ‘ESC’ two times
COMMAND= (Go to command mode)
Execution of the program
Press ‘G’
Go to?
Press ENTER key 2 times
BURST ADDR
GIVE 6000H
Press ENTER Key
COMMAND= (Go to command mode)
Checking contents of registers
Press ‘S’
SUBSTUT?
Press ENTER key
MEMORY
Press ‘any key’ other than ‘Enter Key’ 2 times
IO REGISTER (GIVE THE NAME)
Press ENTER key
NAME
5
A=55(Result i.e. 22+33=55)
 NOTE: - On Pressing Enter subsequently all registers contents will display.
 PROCEDURE TO OPERATE KIT USING DISASSEMBLER
Press E
EXPAND
Press U
Press ENTER key 3 times
STRT
Give 6000
Press ENTER
END
Give 6009
Press ENTER
DSTN
Give 6000
Press ENTER
PRINTER?
Press ‘’CTR+C’’ step by step
ABBREVIATIONS & DESCRIPTIONS:-
 S (SUBSTUT)-Use substitute command to enter program.
 Ctr+U- You can check data previously entered by pressing Ctrl-U key.
 ESC (Display COMMAND) - Come to command mode.
 CR (MEMORY) - Display first mode: Memory.
 BURST- Use to BURST Mode.
 ADDR- Asks the program address.
 COMMAND- Comes back to command mode.
 REGISTER- Display next mode: Register.
 Any key IO- Displays next mode: Input/output port.
6
APPARATUS
8085 TRAINER KIT & 8085 SIMULATOR SOFTWARE
7
INTERFACING STUDY CARDS
8
OTHERS EXPERIMENTS
AIM: Interfacing and control of stepper motor using 8085 microprocessor.
Apparatus required: stepper motor (12 volts)
SAMPLE PROGRAM: Interface a Stepper Motor to the 8085 microprocessor system and
write an 8085 assembly language program to control the Stepper Motor.
Block Diagram:-
SOFTWARE FOR STEPPER MOTOR CONTROL:
As port A is used as an output port, control word for 8255 is 80H. Stepper Motor Control
Program: 6000H Excite code DB 03H, 06H, 09H, and OCH: This is the code sequence for
clockwise rotation Subroutine to rotate a stepper motor clockwise by 360° - Set the counts:
MVI C, 32H: Set repetition count to 50ıο
START: MVI B, 04H: Counts excitation sequence
LXI H, 6000H: Initialize pointer
BACK1: MOV A, M: Get the Excite code
OUT PORTA: Send Excite code
CALL DELAY: Wait
INX H: Increment pointer
DCR B: Repeat 4 times JNZ BACK l
9
Delay subroutine:
Delay: LXI D, Count
Back: DCX D
MOV A, D
ORA E
JNZ Back RET
FLOWCHARTS: Stepper motor subroutine
Conclusion: - A stepper motor is a digital motor. It can be driven by digital signal. Fig.
shows the typical 2 phase motor rated 12V /0.67 A/ph interfaced with the 8085
microprocessor system using 8255. Motor shown in the circuit has two phases, with center-
tap winding. The center taps of these windings are connected to the 12V supply. Due to this,
motor can be excited by grounding four terminals of the two windings. Motor can be rotated
in steps by giving proper excitation sequence to these windings. The lower nibble of port A
of the 8255 is used to generate excitation signals in the proper sequence. These excitation
signals are buffered using driver transistors. The transistors are selected such that they can
source rated current for the windings. Motor is rotated by 1.80 per excitation.
EXPERIMENT
AIM Generation of delay in binary counting using 8085 microprocessor.
SAMPLE PROGRAM Write a program for displaying binary up counter. Counter should
count numbers from 00 to FFH and it should increment after every 0.5 sec.
10
Source Program:
LXI SP, 27FFH: Initialize stack pointer
MVI C, OOH: Initialize counter
BACK: CALL Display: Call display subroutine
CALL Delay: Call delay subroutine
INR C: Increment counter
MOV A, C
CPI OOH: Check counter is > FFH
JNZ BACK: If not, repeat
HLT: Stop
Delay Subroutine: Delay: LXI B, count: Initialize count
BACK: DCX D: Decrement count
MOV A, E
ORA D: Logically OR D and E
JNZ BACK: If result is not 0 repeat
RET: Return to main program
Conclusion: Assume operating frequency of 8085 equal to 2MHz. Display routine is
available.
11
PHOTO GALLARY: STUDENTS PERFORM EXPERIMENTS ON KIT & SIMULATOR
12
13
LAB ASSIGNMENT
1. (A) Addition of two nos. is stored in location 20C0 & 20C1 respective & result is
stored in 20C2. (B) Subtraction of two no.
2. Write a program using 8085 microprocessor for Decimal, Hexadecimal addition and
subtraction of two numbers.
3. To perform multiplication and division of two 8 bit numbers using 8085.
4. To find the largest and smallest number in an array of data using 8085 instruction
set.
5. To write a program to arrange an array of data in ascending & descending order.
6. To convert given Hexadecimal number into its equivalent ASCII number & vice
versa using 8085.

More Related Content

What's hot

Signal descriptors of 8086
Signal descriptors of 8086Signal descriptors of 8086
Signal descriptors of 8086aviban
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
mahalakshmimalini
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
Vinit Raut
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
Siddique Ibrahim
 
Shifters
ShiftersShifters
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
Shubham Singh
 
MPMC Microprocessor
MPMC MicroprocessorMPMC Microprocessor
MPMC Microprocessor
A.S. Krishna
 
8086 MICROPROCESSOR
8086 MICROPROCESSOR8086 MICROPROCESSOR
8086 MICROPROCESSOR
Akhila Rahul
 
8086-microprocessor
8086-microprocessor8086-microprocessor
8086-microprocessor
jhcid
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
Zubair Khalid
 
Memory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OMemory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/O
Bharat Kharbanda
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
Abhilash Nair
 
Effects of poles and zeroes
Effects of poles and zeroesEffects of poles and zeroes
Effects of poles and zeroesAkanksha Diwadi
 
Compiler design lab programs
Compiler design lab programs Compiler design lab programs
Compiler design lab programs
Guru Janbheshver University, Hisar
 
Infix to Prefix (Conversion, Evaluation, Code)
Infix to Prefix (Conversion, Evaluation, Code)Infix to Prefix (Conversion, Evaluation, Code)
Infix to Prefix (Conversion, Evaluation, Code)Ahmed Khateeb
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Kurmendra Singh
 
PIC Microcontroller | ADC Interfacing
PIC Microcontroller | ADC InterfacingPIC Microcontroller | ADC Interfacing
PIC Microcontroller | ADC Interfacing
International Institute of Information Technology (I²IT)
 

What's hot (20)

Signal descriptors of 8086
Signal descriptors of 8086Signal descriptors of 8086
Signal descriptors of 8086
 
8086 memory segmentation
8086 memory segmentation8086 memory segmentation
8086 memory segmentation
 
Control Unit Design
Control Unit DesignControl Unit Design
Control Unit Design
 
Hardwired control
Hardwired controlHardwired control
Hardwired control
 
Shifters
ShiftersShifters
Shifters
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
MPMC Microprocessor
MPMC MicroprocessorMPMC Microprocessor
MPMC Microprocessor
 
8086 MICROPROCESSOR
8086 MICROPROCESSOR8086 MICROPROCESSOR
8086 MICROPROCESSOR
 
8086-microprocessor
8086-microprocessor8086-microprocessor
8086-microprocessor
 
Direct memory access (dma)
Direct memory access (dma)Direct memory access (dma)
Direct memory access (dma)
 
Memory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/OMemory mapped I/O and Isolated I/O
Memory mapped I/O and Isolated I/O
 
Shift Registers
Shift RegistersShift Registers
Shift Registers
 
Assembly Language
Assembly LanguageAssembly Language
Assembly Language
 
Effects of poles and zeroes
Effects of poles and zeroesEffects of poles and zeroes
Effects of poles and zeroes
 
Compiler design lab programs
Compiler design lab programs Compiler design lab programs
Compiler design lab programs
 
MicroProcessors
MicroProcessors MicroProcessors
MicroProcessors
 
Theory of computation Lec1
Theory of computation Lec1Theory of computation Lec1
Theory of computation Lec1
 
Infix to Prefix (Conversion, Evaluation, Code)
Infix to Prefix (Conversion, Evaluation, Code)Infix to Prefix (Conversion, Evaluation, Code)
Infix to Prefix (Conversion, Evaluation, Code)
 
Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013Dsp lab _eec-652__vi_sem_18012013
Dsp lab _eec-652__vi_sem_18012013
 
PIC Microcontroller | ADC Interfacing
PIC Microcontroller | ADC InterfacingPIC Microcontroller | ADC Interfacing
PIC Microcontroller | ADC Interfacing
 

Viewers also liked

8085 microprocessor lab manual
8085 microprocessor lab manual8085 microprocessor lab manual
8085 microprocessor lab manualNithin Mohan
 
Microprocessor lab
Microprocessor labMicroprocessor lab
Microprocessor labkpaulraj
 
8080 8085 assembly language_programming manual programando
8080 8085 assembly  language_programming manual programando 8080 8085 assembly  language_programming manual programando
8080 8085 assembly language_programming manual programando Universidad de Tarapaca
 
Microprocessor and Interfacing Lab Notes - Akshansh
Microprocessor and Interfacing Lab Notes - AkshanshMicroprocessor and Interfacing Lab Notes - Akshansh
Microprocessor and Interfacing Lab Notes - Akshansh
Akshansh Chaudhary
 
Anshuman Tech Private Limited, Pune, Training Equipment
Anshuman Tech Private Limited, Pune, Training EquipmentAnshuman Tech Private Limited, Pune, Training Equipment
Anshuman Tech Private Limited, Pune, Training Equipment
IndiaMART InterMESH Limited
 
Micro Processor Lab Manual!
Micro Processor Lab Manual!Micro Processor Lab Manual!
Micro Processor Lab Manual!
PRABHAHARAN429
 
4 5 marks importnt question dcn
4 5 marks importnt question dcn4 5 marks importnt question dcn
Microprocessor lab manual
Microprocessor lab manualMicroprocessor lab manual
Microprocessor lab manual
Dhaval Shukla
 
Micro prointronprog
Micro prointronprogMicro prointronprog
Micro prointronprog
Shehrevar Davierwala
 
8085 manual NCIT SAROZ BISTA SIR
8085 manual NCIT SAROZ BISTA SIR8085 manual NCIT SAROZ BISTA SIR
8085 manual NCIT SAROZ BISTA SIR
THEE CAVE
 
computer architecture lab manual
computer architecture lab manualcomputer architecture lab manual
computer architecture lab manual
Neelamani Samal
 
Mp &mc programs
Mp &mc programsMp &mc programs
Mp &mc programs
Haritha Hary
 
Micro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableMicro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz Table
Subhashini Sundaram
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Swati Watve-Phadke
 
8085 instruction-set new
8085 instruction-set new8085 instruction-set new
8085 instruction-set new
Diptarka Bhattacharya
 

Viewers also liked (20)

List of 8085 programs
List of 8085 programsList of 8085 programs
List of 8085 programs
 
Mp lab manual
Mp lab manualMp lab manual
Mp lab manual
 
8085 microprocessor lab manual
8085 microprocessor lab manual8085 microprocessor lab manual
8085 microprocessor lab manual
 
Microprocessor lab
Microprocessor labMicroprocessor lab
Microprocessor lab
 
8080 8085 assembly language_programming manual programando
8080 8085 assembly  language_programming manual programando 8080 8085 assembly  language_programming manual programando
8080 8085 assembly language_programming manual programando
 
8086 microprocessor lab manual
8086 microprocessor lab manual8086 microprocessor lab manual
8086 microprocessor lab manual
 
Microprocessor and Interfacing Lab Notes - Akshansh
Microprocessor and Interfacing Lab Notes - AkshanshMicroprocessor and Interfacing Lab Notes - Akshansh
Microprocessor and Interfacing Lab Notes - Akshansh
 
Anshuman Tech Private Limited, Pune, Training Equipment
Anshuman Tech Private Limited, Pune, Training EquipmentAnshuman Tech Private Limited, Pune, Training Equipment
Anshuman Tech Private Limited, Pune, Training Equipment
 
Micro Processor Lab Manual!
Micro Processor Lab Manual!Micro Processor Lab Manual!
Micro Processor Lab Manual!
 
4 5 marks importnt question dcn
4 5 marks importnt question dcn4 5 marks importnt question dcn
4 5 marks importnt question dcn
 
Microprocessor lab manual
Microprocessor lab manualMicroprocessor lab manual
Microprocessor lab manual
 
Micro prointronprog
Micro prointronprogMicro prointronprog
Micro prointronprog
 
8085 manual NCIT SAROZ BISTA SIR
8085 manual NCIT SAROZ BISTA SIR8085 manual NCIT SAROZ BISTA SIR
8085 manual NCIT SAROZ BISTA SIR
 
computer architecture lab manual
computer architecture lab manualcomputer architecture lab manual
computer architecture lab manual
 
Mp &mc programs
Mp &mc programsMp &mc programs
Mp &mc programs
 
Microprocessor lab
Microprocessor labMicroprocessor lab
Microprocessor lab
 
Micro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz TableMicro Processor Mini Project,Electronic Quiz Table
Micro Processor Mini Project,Electronic Quiz Table
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02
 
8085 lab
8085 lab8085 lab
8085 lab
 
8085 instruction-set new
8085 instruction-set new8085 instruction-set new
8085 instruction-set new
 

Similar to Microprocessor lab manual

Lab manual mp
Lab manual mpLab manual mp
Lab manual mp
HarshitParkar6677
 
Real Time Embedded System
Real Time Embedded SystemReal Time Embedded System
Real Time Embedded System
Vrushali Lanjewar
 
Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!
PRABHAHARAN429
 
Switch Control and Time Delay - Keypad
Switch Control and Time Delay - KeypadSwitch Control and Time Delay - Keypad
Switch Control and Time Delay - Keypad
Ariel Tonatiuh Espindola
 
Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)
Basil John
 
EE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab ManuelEE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab Manuel
Velalar College of Engineering and Technology
 
Microprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. KawareMicroprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. Kaware
Prof. Swapnil V. Kaware
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital Converter
Ariel Tonatiuh Espindola
 
Temperature Controlled Fan Report
Temperature Controlled Fan ReportTemperature Controlled Fan Report
Temperature Controlled Fan ReportPeeyush Pashine
 
Mpi lab manual eee
Mpi lab manual eeeMpi lab manual eee
Mpi lab manual eee
Vivek Kumar Sinha
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085
techbed
 
Mechatronics Manual.docx
Mechatronics   Manual.docxMechatronics   Manual.docx
Mechatronics Manual.docx
Ravichandran R
 
Pf700 energy savings_lab
Pf700 energy savings_labPf700 energy savings_lab
Pf700 energy savings_lab
confidencial
 
Lec03
Lec03Lec03
Diljit.pdf
Diljit.pdfDiljit.pdf
Diljit.pdf
diljitnayak1
 
Malp edusat
Malp edusatMalp edusat
Malp edusat
karthikrelax
 
Arduino Interfacing with different sensors and motor
Arduino Interfacing with different sensors and motorArduino Interfacing with different sensors and motor
Arduino Interfacing with different sensors and motor
Amarjeetsingh Thakur
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310
Hari Prakash
 
180410227 ae2406-lab-manual-doc
180410227 ae2406-lab-manual-doc180410227 ae2406-lab-manual-doc
180410227 ae2406-lab-manual-doc
homeworkping10
 
CH06 (1).PPT
CH06 (1).PPTCH06 (1).PPT
CH06 (1).PPT
RaghadAbuJelban
 

Similar to Microprocessor lab manual (20)

Lab manual mp
Lab manual mpLab manual mp
Lab manual mp
 
Real Time Embedded System
Real Time Embedded SystemReal Time Embedded System
Real Time Embedded System
 
Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!
 
Switch Control and Time Delay - Keypad
Switch Control and Time Delay - KeypadSwitch Control and Time Delay - Keypad
Switch Control and Time Delay - Keypad
 
Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)Introduction to 8085 & it's description(includes basic lab experiments)
Introduction to 8085 & it's description(includes basic lab experiments)
 
EE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab ManuelEE2356 Microprocessor and Microcontroller Lab Manuel
EE2356 Microprocessor and Microcontroller Lab Manuel
 
Microprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. KawareMicroprocessor Lab Manual by Er. Swapnil V. Kaware
Microprocessor Lab Manual by Er. Swapnil V. Kaware
 
Analog to Digital Converter
Analog to Digital ConverterAnalog to Digital Converter
Analog to Digital Converter
 
Temperature Controlled Fan Report
Temperature Controlled Fan ReportTemperature Controlled Fan Report
Temperature Controlled Fan Report
 
Mpi lab manual eee
Mpi lab manual eeeMpi lab manual eee
Mpi lab manual eee
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085
 
Mechatronics Manual.docx
Mechatronics   Manual.docxMechatronics   Manual.docx
Mechatronics Manual.docx
 
Pf700 energy savings_lab
Pf700 energy savings_labPf700 energy savings_lab
Pf700 energy savings_lab
 
Lec03
Lec03Lec03
Lec03
 
Diljit.pdf
Diljit.pdfDiljit.pdf
Diljit.pdf
 
Malp edusat
Malp edusatMalp edusat
Malp edusat
 
Arduino Interfacing with different sensors and motor
Arduino Interfacing with different sensors and motorArduino Interfacing with different sensors and motor
Arduino Interfacing with different sensors and motor
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310
 
180410227 ae2406-lab-manual-doc
180410227 ae2406-lab-manual-doc180410227 ae2406-lab-manual-doc
180410227 ae2406-lab-manual-doc
 
CH06 (1).PPT
CH06 (1).PPTCH06 (1).PPT
CH06 (1).PPT
 

More from ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT,VARANASI,U.P.

More from ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT,VARANASI,U.P. (20)

Anupam kumar re2106 a55
Anupam kumar re2106 a55Anupam kumar re2106 a55
Anupam kumar re2106 a55
 
Electronika de fiesta 2014
Electronika de fiesta 2014Electronika de fiesta 2014
Electronika de fiesta 2014
 
Departmental notice,ece
Departmental notice,eceDepartmental notice,ece
Departmental notice,ece
 
Departmental notice,ece
Departmental notice,eceDepartmental notice,ece
Departmental notice,ece
 
Electronics switching-eec-802
Electronics switching-eec-802Electronics switching-eec-802
Electronics switching-eec-802
 
Some advanced instructions of the 8085 microprocessors
Some advanced instructions of the 8085 microprocessorsSome advanced instructions of the 8085 microprocessors
Some advanced instructions of the 8085 microprocessors
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
8254 presentation
8254 presentation8254 presentation
8254 presentation
 
Cyptography ece 702
Cyptography ece 702Cyptography ece 702
Cyptography ece 702
 
Connecting devices ece 702
Connecting devices ece 702Connecting devices ece 702
Connecting devices ece 702
 
Connecting devices ece 702
Connecting devices ece 702Connecting devices ece 702
Connecting devices ece 702
 
Introduction to-microprocessors-unit-1
Introduction to-microprocessors-unit-1Introduction to-microprocessors-unit-1
Introduction to-microprocessors-unit-1
 
Eec503, mp 30 questions
Eec503, mp 30 questionsEec503, mp 30 questions
Eec503, mp 30 questions
 
Dcn previous que4 with solutions
Dcn previous que4 with solutionsDcn previous que4 with solutions
Dcn previous que4 with solutions
 
Dcn previous que3 with solutions
Dcn previous que3 with solutionsDcn previous que3 with solutions
Dcn previous que3 with solutions
 
Dcn previous que2 with solutions
Dcn previous que2 with solutionsDcn previous que2 with solutions
Dcn previous que2 with solutions
 
Dcn previous que1 with solutions
Dcn previous que1 with solutionsDcn previous que1 with solutions
Dcn previous que1 with solutions
 
Microprocessor paper 4 with solutions
Microprocessor paper 4 with solutionsMicroprocessor paper 4 with solutions
Microprocessor paper 4 with solutions
 
Microprocessor paper 3 with solutions
Microprocessor paper 3 with solutionsMicroprocessor paper 3 with solutions
Microprocessor paper 3 with solutions
 

Recently uploaded

Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Sreedhar Chowdam
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
seandesed
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
JoytuBarua2
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
obonagu
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation & Control
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
Pratik Pawar
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Dr.Costas Sachpazis
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
ongomchris
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
karthi keyan
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
AhmedHussein950959
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
BrazilAccount1
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
R&R Consult
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
ViniHema
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
Robbie Edward Sayers
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
Kamal Acharya
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
Jayaprasanna4
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
MLILAB
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
AmarGB2
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
Osamah Alsalih
 

Recently uploaded (20)

Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&BDesign and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
Design and Analysis of Algorithms-DP,Backtracking,Graphs,B&B
 
Architectural Portfolio Sean Lockwood
Architectural Portfolio Sean LockwoodArchitectural Portfolio Sean Lockwood
Architectural Portfolio Sean Lockwood
 
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
H.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdfH.Seo,  ICLR 2024, MLILAB,  KAIST AI.pdf
H.Seo, ICLR 2024, MLILAB, KAIST AI.pdf
 
Planning Of Procurement o different goods and services
Planning Of Procurement o different goods and servicesPlanning Of Procurement o different goods and services
Planning Of Procurement o different goods and services
 
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
在线办理(ANU毕业证书)澳洲国立大学毕业证录取通知书一模一样
 
Water Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdfWater Industry Process Automation and Control Monthly - May 2024.pdf
Water Industry Process Automation and Control Monthly - May 2024.pdf
 
weather web application report.pdf
weather web application report.pdfweather web application report.pdf
weather web application report.pdf
 
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
Sachpazis:Terzaghi Bearing Capacity Estimation in simple terms with Calculati...
 
space technology lecture notes on satellite
space technology lecture notes on satellitespace technology lecture notes on satellite
space technology lecture notes on satellite
 
CME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional ElectiveCME397 Surface Engineering- Professional Elective
CME397 Surface Engineering- Professional Elective
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
English lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdfEnglish lab ppt no titlespecENG PPTt.pdf
English lab ppt no titlespecENG PPTt.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
power quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptxpower quality voltage fluctuation UNIT - I.pptx
power quality voltage fluctuation UNIT - I.pptx
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Student information management system project report ii.pdf
Student information management system project report ii.pdfStudent information management system project report ii.pdf
Student information management system project report ii.pdf
 
ethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.pptethical hacking in wireless-hacking1.ppt
ethical hacking in wireless-hacking1.ppt
 
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang,  ICLR 2024, MLILAB, KAIST AI.pdfJ.Yang,  ICLR 2024, MLILAB, KAIST AI.pdf
J.Yang, ICLR 2024, MLILAB, KAIST AI.pdf
 
Investor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptxInvestor-Presentation-Q1FY2024 investor presentation document.pptx
Investor-Presentation-Q1FY2024 investor presentation document.pptx
 
MCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdfMCQ Soil mechanics questions (Soil shear strength).pdf
MCQ Soil mechanics questions (Soil shear strength).pdf
 

Microprocessor lab manual

  • 1. 1 LABORATORY MANUAL OF EEC456 & EEE454 Prepared at Ashoka Institute of Technology & Management, Aktha, Sarnath, Varanasi, U.P. With Participation & Valuable Contributions from Er. Anupam Kumar, ECE, HOD & Assistant Professor, AITM (anupamkumarmtec@gmail.com) Department of Electronics & Communication Engineering 1 To study 8085 microprocessor System 2 To study 8086 microprocessor System 3 To develop and run a program for finding out the largest/smallest number from a given set of numbers. 4 To develop and run a program for arranging in ascending/descending order of a set of numbers 5 To develop and run a programme to compute square root of a given number 6 To perform multiplication/division of given numbers 7 To perform floating point mathematical operations (addition, subtraction, multiplication and division) 8 To obtain interfacing of keyboard controller 9 To perform interfacing of DMA controller 10 To obtain interfacing of RAM chip to 8085/8086 based system Textbook: Lab Manual EEC456 Additional Readings: 1. Ramesh Gaonkar,”Microprocessor Architecture, Programming, and Applications with the 8051, 5th Edition, Penram International Publication (India) Pvt. Ltd. 2. Douglas V. Hail,” Microprocessor and Interfacing,”2nd Edition,TMH,2006 3. User’s Guide (XPO 85/SW), ANSHUMAN Tech Pvt. Ltd. Course Code: E E C 4 5 6 Course Title: Microprocessors Laboratory FACULTY NAME MR. ANUPAM KUMAR Attendance Weightages CA MTE ETE 0 0 0
  • 2. 2
  • 3. 3  QUICK STEPS TO LEARN OPERATION WITH KIT Step I:-Procedure to operate kit using assembly language program. Do connections as per your figure Switch ON power supply (i.e. SMPS (Switched mode power supply) ANSHUMAN will be display on display board. Press ENTER key Go to command mode COMMAND= Press E EXPAND= Press A 2 PASS ASSEMBLER? Press ENTER key 3 times Files EXIST? Press ‘N’ (No) ARE YOU SURE? Press ENTER KEY C= Press ‘W’ 0001 ORG 6000H (Write your program here) 0002 MVI A, 22H 0003 MVI B, 33H 0004 ADD B 0005 RST 1 Press Ctrl key+ C C=
  • 4. 4 Press ‘A’ Key Will show message save code at DSTN? Y/N Press ‘Y’ (Yes) C= Press ‘ESC’ two times COMMAND= (Go to command mode) Execution of the program Press ‘G’ Go to? Press ENTER key 2 times BURST ADDR GIVE 6000H Press ENTER Key COMMAND= (Go to command mode) Checking contents of registers Press ‘S’ SUBSTUT? Press ENTER key MEMORY Press ‘any key’ other than ‘Enter Key’ 2 times IO REGISTER (GIVE THE NAME) Press ENTER key NAME
  • 5. 5 A=55(Result i.e. 22+33=55)  NOTE: - On Pressing Enter subsequently all registers contents will display.  PROCEDURE TO OPERATE KIT USING DISASSEMBLER Press E EXPAND Press U Press ENTER key 3 times STRT Give 6000 Press ENTER END Give 6009 Press ENTER DSTN Give 6000 Press ENTER PRINTER? Press ‘’CTR+C’’ step by step ABBREVIATIONS & DESCRIPTIONS:-  S (SUBSTUT)-Use substitute command to enter program.  Ctr+U- You can check data previously entered by pressing Ctrl-U key.  ESC (Display COMMAND) - Come to command mode.  CR (MEMORY) - Display first mode: Memory.  BURST- Use to BURST Mode.  ADDR- Asks the program address.  COMMAND- Comes back to command mode.  REGISTER- Display next mode: Register.  Any key IO- Displays next mode: Input/output port.
  • 6. 6 APPARATUS 8085 TRAINER KIT & 8085 SIMULATOR SOFTWARE
  • 8. 8 OTHERS EXPERIMENTS AIM: Interfacing and control of stepper motor using 8085 microprocessor. Apparatus required: stepper motor (12 volts) SAMPLE PROGRAM: Interface a Stepper Motor to the 8085 microprocessor system and write an 8085 assembly language program to control the Stepper Motor. Block Diagram:- SOFTWARE FOR STEPPER MOTOR CONTROL: As port A is used as an output port, control word for 8255 is 80H. Stepper Motor Control Program: 6000H Excite code DB 03H, 06H, 09H, and OCH: This is the code sequence for clockwise rotation Subroutine to rotate a stepper motor clockwise by 360° - Set the counts: MVI C, 32H: Set repetition count to 50ıο START: MVI B, 04H: Counts excitation sequence LXI H, 6000H: Initialize pointer BACK1: MOV A, M: Get the Excite code OUT PORTA: Send Excite code CALL DELAY: Wait INX H: Increment pointer DCR B: Repeat 4 times JNZ BACK l
  • 9. 9 Delay subroutine: Delay: LXI D, Count Back: DCX D MOV A, D ORA E JNZ Back RET FLOWCHARTS: Stepper motor subroutine Conclusion: - A stepper motor is a digital motor. It can be driven by digital signal. Fig. shows the typical 2 phase motor rated 12V /0.67 A/ph interfaced with the 8085 microprocessor system using 8255. Motor shown in the circuit has two phases, with center- tap winding. The center taps of these windings are connected to the 12V supply. Due to this, motor can be excited by grounding four terminals of the two windings. Motor can be rotated in steps by giving proper excitation sequence to these windings. The lower nibble of port A of the 8255 is used to generate excitation signals in the proper sequence. These excitation signals are buffered using driver transistors. The transistors are selected such that they can source rated current for the windings. Motor is rotated by 1.80 per excitation. EXPERIMENT AIM Generation of delay in binary counting using 8085 microprocessor. SAMPLE PROGRAM Write a program for displaying binary up counter. Counter should count numbers from 00 to FFH and it should increment after every 0.5 sec.
  • 10. 10 Source Program: LXI SP, 27FFH: Initialize stack pointer MVI C, OOH: Initialize counter BACK: CALL Display: Call display subroutine CALL Delay: Call delay subroutine INR C: Increment counter MOV A, C CPI OOH: Check counter is > FFH JNZ BACK: If not, repeat HLT: Stop Delay Subroutine: Delay: LXI B, count: Initialize count BACK: DCX D: Decrement count MOV A, E ORA D: Logically OR D and E JNZ BACK: If result is not 0 repeat RET: Return to main program Conclusion: Assume operating frequency of 8085 equal to 2MHz. Display routine is available.
  • 11. 11 PHOTO GALLARY: STUDENTS PERFORM EXPERIMENTS ON KIT & SIMULATOR
  • 12. 12
  • 13. 13 LAB ASSIGNMENT 1. (A) Addition of two nos. is stored in location 20C0 & 20C1 respective & result is stored in 20C2. (B) Subtraction of two no. 2. Write a program using 8085 microprocessor for Decimal, Hexadecimal addition and subtraction of two numbers. 3. To perform multiplication and division of two 8 bit numbers using 8085. 4. To find the largest and smallest number in an array of data using 8085 instruction set. 5. To write a program to arrange an array of data in ascending & descending order. 6. To convert given Hexadecimal number into its equivalent ASCII number & vice versa using 8085.