SlideShare ist ein Scribd-Unternehmen logo
1 von 13
Downloaden Sie, um offline zu lesen
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.

Weitere ähnliche Inhalte

Was ist angesagt?

8255:ppi & 8259:pic
8255:ppi & 8259:pic 8255:ppi & 8259:pic
8255:ppi & 8259:pic Adarsh Patel
 
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086COMSATS Abbottabad
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 completeShubham Singh
 
vlsi projects using verilog code 2014-2015
vlsi projects using verilog code 2014-2015vlsi projects using verilog code 2014-2015
vlsi projects using verilog code 2014-2015E2MATRIX
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085yedles
 
ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IVineethMP2
 
Ppt on interfacing led and 7 segment with 8951
Ppt on interfacing led and 7 segment with 8951 Ppt on interfacing led and 7 segment with 8951
Ppt on interfacing led and 7 segment with 8951 pooja jaiswal
 
Sensor interfacing in 8051
Sensor interfacing in 8051Sensor interfacing in 8051
Sensor interfacing in 8051Irfan Ahmad
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 MicrocontrollerASHISH RANJAN
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdfSrikrishna Thota
 
Pentium (80586) Microprocessor By Er. Swapnil Kaware
Pentium (80586) Microprocessor By Er. Swapnil KawarePentium (80586) Microprocessor By Er. Swapnil Kaware
Pentium (80586) Microprocessor By Er. Swapnil KawareProf. Swapnil V. Kaware
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkarSAQUIB AHMAD
 

Was ist angesagt? (20)

80486
8048680486
80486
 
8255:ppi & 8259:pic
8255:ppi & 8259:pic 8255:ppi & 8259:pic
8255:ppi & 8259:pic
 
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
 
Microprocessor 8085 complete
Microprocessor 8085 completeMicroprocessor 8085 complete
Microprocessor 8085 complete
 
vlsi projects using verilog code 2014-2015
vlsi projects using verilog code 2014-2015vlsi projects using verilog code 2014-2015
vlsi projects using verilog code 2014-2015
 
The 80386 80486
The 80386 80486The 80386 80486
The 80386 80486
 
T-states in microprocessor 8085
T-states in microprocessor 8085T-states in microprocessor 8085
T-states in microprocessor 8085
 
ATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part IATmega32-AVR microcontrollers-Part I
ATmega32-AVR microcontrollers-Part I
 
List of 8085 programs
List of 8085 programsList of 8085 programs
List of 8085 programs
 
Ppt on interfacing led and 7 segment with 8951
Ppt on interfacing led and 7 segment with 8951 Ppt on interfacing led and 7 segment with 8951
Ppt on interfacing led and 7 segment with 8951
 
Programming with 8085
Programming with 8085Programming with 8085
Programming with 8085
 
Sensor interfacing in 8051
Sensor interfacing in 8051Sensor interfacing in 8051
Sensor interfacing in 8051
 
PIC-18 Microcontroller
PIC-18 MicrocontrollerPIC-18 Microcontroller
PIC-18 Microcontroller
 
8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf8051 Architecture and PIN Configuration.pdf
8051 Architecture and PIN Configuration.pdf
 
8155 PPI
8155 PPI8155 PPI
8155 PPI
 
8155 GPPI
8155 GPPI8155 GPPI
8155 GPPI
 
Esp8266 basics
Esp8266 basicsEsp8266 basics
Esp8266 basics
 
Pentium (80586) Microprocessor By Er. Swapnil Kaware
Pentium (80586) Microprocessor By Er. Swapnil KawarePentium (80586) Microprocessor By Er. Swapnil Kaware
Pentium (80586) Microprocessor By Er. Swapnil Kaware
 
8085 microprocessor ramesh gaonkar
8085 microprocessor   ramesh gaonkar8085 microprocessor   ramesh gaonkar
8085 microprocessor ramesh gaonkar
 
Tutorials proteus schematic
Tutorials proteus schematicTutorials proteus schematic
Tutorials proteus schematic
 

Andere mochten auch

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 - AkshanshAkshansh 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 EquipmentIndiaMART InterMESH Limited
 
Micro Processor Lab Manual!
Micro Processor Lab Manual!Micro Processor Lab Manual!
Micro Processor Lab Manual!PRABHAHARAN429
 
Microprocessor lab manual
Microprocessor lab manualMicroprocessor lab manual
Microprocessor lab manualDhaval Shukla
 
8085 manual NCIT SAROZ BISTA SIR
8085 manual NCIT SAROZ BISTA SIR8085 manual NCIT SAROZ BISTA SIR
8085 manual NCIT SAROZ BISTA SIRTHEE CAVE
 
computer architecture lab manual
computer architecture lab manualcomputer architecture lab manual
computer architecture lab manualNeelamani Samal
 
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 TableSubhashini Sundaram
 
Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Assemblylanguageprogrammingof8085 100523023329-phpapp02
Assemblylanguageprogrammingof8085 100523023329-phpapp02Swati Watve-Phadke
 
Unit – 2
Unit – 2Unit – 2
Unit – 2techbed
 

Andere mochten auch (20)

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
 
Unit – 2
Unit – 2Unit – 2
Unit – 2
 

Ähnlich wie Microprocessor lab manual

Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!Microprocessor and Microcontroller Lab Manual!
Microprocessor and Microcontroller Lab Manual!PRABHAHARAN429
 
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
 
Temperature Controlled Fan Report
Temperature Controlled Fan ReportTemperature Controlled Fan Report
Temperature Controlled Fan ReportPeeyush Pashine
 
Assembly Language Programming Of 8085
Assembly Language Programming Of 8085Assembly Language Programming Of 8085
Assembly Language Programming Of 8085techbed
 
Mechatronics Manual.docx
Mechatronics   Manual.docxMechatronics   Manual.docx
Mechatronics Manual.docxRavichandran R
 
Pf700 energy savings_lab
Pf700 energy savings_labPf700 energy savings_lab
Pf700 energy savings_labconfidencial
 
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 motorAmarjeetsingh Thakur
 
Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Microprocessorlabmanual ee0310
Microprocessorlabmanual ee0310Hari Prakash
 
180410227 ae2406-lab-manual-doc
180410227 ae2406-lab-manual-doc180410227 ae2406-lab-manual-doc
180410227 ae2406-lab-manual-dochomeworkping10
 

Ähnlich wie 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
 
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
 
Csd01
Csd01Csd01
Csd01
 

Mehr von ASHOKA INSTITUTE OF TECHNOLOGY & MANAGEMENT,VARANASI,U.P.

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

Kürzlich hochgeladen

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Christo Ananth
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingrknatarajan
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...Call Girls in Nagpur High Profile
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxfenichawla
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)simmis5
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdfKamal Acharya
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGSIVASHANKAR N
 

Kürzlich hochgeladen (20)

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...Booking open Available Pune Call Girls Koregaon Park  6297143586 Call Hot Ind...
Booking open Available Pune Call Girls Koregaon Park 6297143586 Call Hot Ind...
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptxBSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
BSides Seattle 2024 - Stopping Ethan Hunt From Taking Your Data.pptx
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)Java Programming :Event Handling(Types of Events)
Java Programming :Event Handling(Types of Events)
 
Online banking management system project.pdf
Online banking management system project.pdfOnline banking management system project.pdf
Online banking management system project.pdf
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 

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.