- Information
- AI Chat
IARE CSE MPI LAB Manual - Lab
computer science Diploma (22414)
Recommended for you
Preview text
LAB MANUAL
MICROPROCESSORS AND INTERFACING
LAB MANUAL
Subject Code :
Regulations :
Class :
AEC
IARE-R
V Semester (CSE)
Prepared By
Mr. Mohd
Assistant Professor, ECE
Department of Computer Science and Engineering
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
Dundigal – 500 043, Hyderabad
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
Dundigal, Hyderabad - 500 043
MICROPROCESSORS AND INTERFACING
LAB WORK BOOK
Name of the Student
Roll No.
Branch
Class Section
INSTITUTE OF AERONAUTICAL ENGINEERING
(Autonomous)
Dundigal - 500 043, Hyderabad
C Ceerrttiiffiiccaattee
This is to Certify that it is a bonafied record of Practical work done by
Sri/Kum. bearing the Roll No.
_ _ of ___ _ Class
_ _ Branch in the
_ _laboratory during the Academic year
_ _under our supervision.
Head of the Department Lecture In-Charge
External Examiner Internal Examiner
INSTITUTE OF AERONAUTICAL ENGINEERING
####### (Autonomous)
Dundigal - 500 043, Hyderabad COMPUTER SCIENCE AND ENGINEERING COURSE OBJECTIVE: I. Understand the assembly level programming. II. Identify the assembly level programming in given problem. III. Compare different implementations and designing with interfacing circuits. IV. Understand the basic programming knowledge on processor and controller. V. Understand and develop assembly language programming with various applications. COURSE OUTCOMES: Upon the completion of Microprocessor & Microcontrollers practical course, the student will be able to: A. Familiarize with the assembly level programming using 8086 microprocessor. B. Design circuits for various applications using microprocessor. C. An in-depth knowledge of applying the concepts on real- time applications D. Design and apply interfacing circuits for different applications E. Understand the basic concepts of 8086 microprocessors with their application COURSE LEARNING OUTCOMES (CLOs): The students should enable to:
- Design and develop an Assembly language program using 8086 microprocessor.
- Understand the 16 Bit arithmetic and logical operations using WIN862 software.
- Understand the program to perform multi byte addition, subtraction and 3*3 matrix multiplications.
- Understand the to perform ascending and descending order using 8086
- Understand the programming concepts on strings
- Understand the programming for Code converters.
- Design and interacting stepper motor to 8086.
- Analyze and interfacing to convert analog to digital.
- Analyze and interfacing to convert digital to analog.
- Develop and design a ALP program to interfacing keyboard to 8086.
- Develop and design an Interface traffic light controller and tone generator using 8086.
- Develop and design an ALP program to interfacing Elevator to 8086.
INSTITUTE OF AERONAUTICAL ENGINEERING
####### (Autonomous)
Dundigal, Hyderabad - 500 043 Electronics & Communication Engineering
####### Program Outcomes
PO Engineering Knowledge : Apply the knowledge of mathematics, science, engineering fundamentals, and an engineering specialization to the solution of complex engineering problems PO Problem Analysis : Identify, formulate, review research literature, and analyze complex engineering problems reaching substantiated conclusions using first principles of mathematics, natural sciences, and engineering sciences PO Design/Development of Solutions : Design solutions for complex engineering problems and design system components or processes that meet the specified needs with appropriate consideration for the public health and safety, and the cultural, societal, and environmental considerations PO Conduct Investigations of Complex Problems : Use research-based knowledge and research methods including design of experiments, analysis and interpretation of data, and synthesis of the information to provide valid conclusions PO Modern Tool Usage Create, select, and apply appropriate techniques, resources, and modern engineering and IT tools including prediction and modeling to complex engineering activities with an understanding of the limitations PO The Engineer And Society Apply reasoning informed by the contextual knowledge to assess societal, health, safety, legal and cultural issues and the consequent responsibilities relevant to the professional engineering practice PO Environment and sustainability Understand the impact of the professional engineering solutions in societal and environmental contexts, and demonstrate the knowledge of, and need for sustainable development PO Ethics Apply ethical principles and commit to professional ethics and responsibilities and norms of the engineering practice PO Individual and Team Work Function effectively as an individual, and as a member or leader in diverse teams, and in multidisciplinary settings PO Communication Communicate effectively on complex engineering activities with the engineering community and with society at large, such as, being able to comprehend and write effective reports and design documentation, make effective presentations, and give and receive clear instructions PO Project management and finance Demonstrate knowledge and understanding of the engineering and management principles and apply these to one‟s own work, as a member and leader in a team, to manage projects and in multidisciplinary environments PO Life-long learning Recognize the need for, and have the preparation and ability to engage in independent and life- long learning in the broadest context of technological change
Program Specific Outcomes PSO1 Professional Skills: The ability to understand, analyze and develop computer programs in the areas related to algorithms, system software, multimedia, web design, big data analytics, and networking for efficient design of computer-based systems of varying complexity. PSO Problem-Solving Skills: The ability to apply standard practices and strategies in software project development using open-ended programming environments to deliver a quality product for business success. PSO Successful Career and Entrepreneurship: The ability to employ modern computer languages, environments, and platforms in creating innovative career paths to be an entrepreneur, and a zest for higher studies.
11 Write an ALP program to generate Saw tooth and staircase wave forms. 84 12 a. Write an ALP program to rotate stepper motor in clockwise direction. b. Write an ALP program to rotate stepper motor in anti clockwise direction. 87 13 a. Parallel communication between two microprocessors using 8255. b. Serial communication between two microprocessor kits using 8251. 93 14 a. Write a program to interface traffic light controller. b. Write an ALP program to interface tone generator. 103
####### ATTAINMENT OF PROGRAM
####### OUTCOMES
####### & PROGRAM SPECIFIC OUTCOMES
Exp. No. Experiment Program Outcomes Attained Program Specific Outcomes Attained 1 Design and develop an Assembly language program using 8086 microprocessor and to show the following aspects. a. Programming b. Execution c. Debugging To Demonstrate the Tool Chain for MASM and Hardware for 8086 Microprocessor PO1, PO PSO 2 a. Write an ALP program to perform 8 Bit arithmetic operations using MASM software and 8086. b. Write an ALP program to perform 16 Bit arithmetic operations using MASM software and 8086. PO1, PO2 PSO 3 a. Write an ALP program to perform multi byte addition and subtraction. b. Write an ALP program to perform 3*3 matrix multiplication and addition PO1, PO2 PSO1, PSO 4 a. Write an ALP program to perform ascending order using 8086 b. Write an ALP program to perform descending order using 8086 PO1, PO2 PSO 5 a. Write an ALP program to find the LCM & HCF of given numbers. b. Write an ALP program to find square and cube of a given numbers. PO1, PO2, PO5 PSO1, PSO 6 a. Write an ALP program to insert or delete a byte in the given string. b. Write an ALP program to search a number/character in a given string. PO1, PO2, PO5 PSO
####### ATTAINMENT OF PROGRAM
####### OUTCOMES
####### & PROGRAM SPECIFIC OUTCOMES
Exp. No. Experiment Program Outcomes Attained Program Specific Outcomes Attained 7 a. Write an ALP program to move a block of data from one memory location to the other. b. Write an ALP program for reverse of a given string. PO1, PO2 PSO 8 a. Write an ALP program to find the number of even and odd numbers in the given string. b. Write an ALP program to generate a Fibonacci series. PO1, PO2 PSO 9 a. Write an ALP program to convert packed BCD to Unpacked BCD. b. Write an ALP program to convert packed BCD to ASCII. c. Write an ALP program to convert hexadecimal to ASCII. PO1, PO2, PO5 PSO 10 a. Write an ALP program to convert analog to digital using 8086. b. Write an ALP program to convert digital to analog using 8086. PO1, PO2, PO5 PSO1, PSO 11 Write an ALP program to generate Saw tooth and staircase wave forms. PO1, PO2, PO4, PO5 PSO 12 a. Write an ALP program to rotate stepper motor in clockwise direction. b. Write an ALP program to rotate stepper motor in anti clockwise direction. PO1, PO2, PO5 PSO 13 a. Parallel communication between two microprocessors using 8255. b. Serial communication between two microprocessor kits using 8251. PO1, PO2 PSO 14 a. Write a program to interface traffic light controller. b. Write an ALP program to interface tone generator. PO1, PO2 PSO 15 Write an ALP program to interfacing Elevator to 8086 PO1, PO2 PSO
PIC: Programmable Interrupt controller using 8253A provides interrupts Vectors for 8 jumpers‟ selectable Internal /External sources. KEYBOARD / DISPLAY: Keyboard: keyboard on to the trainer. Display: 8 seven segment displays INTERRUPTS: NIM: Provision for connecting NMI to a key switch INTR: Programmable Interrupt controller using 8259A provides Interrupt vectors for 8 jumpers selectable Internal/ External Sources. INTERFACE BUS SIGNALS: CPU BUS: All address, data & control lines are TTL compatible & are terminated in berg strip header. PARALLEL I/O: All signals are TTL compatible & Terminated in berg strip header For PPI expansion. SERIAL I/O: Serial port signals are terminated in Standard 9-pin „D type connector.
MONITOR SOFTWARE: 128KB of serial / Keyboard monitor with Powerful commands to enter verify and Debug user programs, including onboard Assemble and disassemble commands. COMPUTER INTERFACE: This can be interfaced to host computer System through the main serial port, also Facilitates uploading, downloading of Intel Hex files between computer and the trainer. I/O decoding: IC U30 is used for on card I/O decoding. The following table gives the list of on card I/O devices and their address map. I/O device I/O address I/O register usage 8255 I (U14) FFCO PORT A AVAILABLE TO FFC2 PORT B USER FFC4 PORT C FFC6 CONTROL PORT 8255 II (U15) FFC1 PORT A AVAILABLE TO FFC3 PORT B USER FFC5 PORT C FFC7 CONTROL PORT 8253 A( U28) FFC9 TIMER 0 AVAILABLE TO USER FFCB TIMER 1 USED FOR BAUD RATE FFCD TIMER 2 AVAILABLE TO USER FFCF CONTROL AVAILABLE TO USER 8251A (U13) FFD0 DATA COMMAND FFD2 PORT STATUS INPUT PORT TO DIP SWITCH (SW1) USED AS I/P PORT TO READ SW AND CONFIGURE 86ME 8259A (U12) FFD8 TO FFDE PRIORITY INTERRUPT CONTROLLER POWER REQUIREMENTS: +5V DC with 1300 mA current rating (Max).
Step 2: Click on Assembler and give starting address (Like 0000:4000) then press Enter button. Switch On Power Supply Check if DIP switches board is in serial or keyboard mode (Serial mode = 1 on, Board mode = 4 On) Press Reset Press „EB‟ (Examine Byte) Enter Starting Memory location (Ex: 2000) Press next button, Enter OP-Code value Then press next button Enter 2nd memory location and op code . . . Enter up to nth values Execution: Press Exec. Button Press Go enter starting memory location Press Exec. Press EB give input memory location and input values Press Exec. Press Go Give starting memory location Press Exec. Press Go Now observe the results in memory location
####### WIN862 Software procedure:
####### Registers:
Step 1: Open Win862 icon on desktop (see Fig) and opened Window see fig. 2
Step 3: Then write 1st Instruction then press enter button. Step 4: Then write 2nd Instruction then press enter button. Step 5: Then write up to nth Instruction then press enter button and close the Assembler window. Step 6: Now click on Dis Assembler and give starting address (Like 0000:4000) then press enter button. Step 7: Click on Set PC then give starting address then press Enter button. Step 8: Click on Run (check whether program is executed or not) Step 9: Click on view registers and observe the results in registers. Memory locations: Step 1: Open Win862 icon on desktop. Step 2: Click on Assembler and give starting address (Like 0000:4000) then press Enter button. Step 3: Then write 1 st Instruction then press enter button. Step 4: Then write 2nd Instruction then press enter button. Step 5: Then write up to nth Instruction then press enter button and close the Assembler window. Step 6: Now click on Dis Assembler and give starting address (Like 0000:4000) then press enter button. Step 7: Click on Set PC then give starting address then press Enter button. Step 8: Click on Run (check whether program is executed or not) Step 9: Click on view memory Step 10: Now enter input address Step 11: Click on Modify and Give desired input values Step 12: Click on Set PC. Enter initial address and press Dis-Assembler Step 13: Click on Run (check whether program is executed or not) Step 14: Now observe the result in view memory. Step 15: Click on view memory and enter destination address then press enter button Step 16: Now observe the result.
The monitor program for the SDA 51-MEL is contained in 32kbytes EPROM. The monitor interacts with the user through a CRT terminal host computer system connected through serial I/O interface or through the PC Keyboard (AT) and 16X2 LCD display. SPECIFICTIONS CPU: 8051 operating at 11 MEMORY: EPROM1-one JEDEC compatible 28 pin socket to provide up to 32Kbytememory using 27256 with monitor software. EPROM2-optional-canbe used as program memory, if ram is configured as data only. RAM1-one JEDEC compatible 28 pin socket to provide up to 32Kbytes of Data memory using 62256. RAM2-one JEDEC compatible 28 pin socket to provide up to 32Kbytes Program/data or data memory. I/O PARALLEL: 48 I/O lines using two 8255, terminated in two 26 headers. I/O SERAL: One RS232 compatible interface, using one chip UART lines. The lines Are terminated in a 9-pin D-type female connector UART lines are also terminated in a 10 pin FRC connector. TIMER: Three 16 bit counter/timer using 8253programmable timers terminated in a 20pin berg stick. KEYBOARD: EXTERNAL PC – AT keyboard DISPLAY: Alpha numeric LCD module (2linex 16 CHARS) BUS SIGNALS: All address data and control signals are terminated in a 50 pin header Connector for user expansion. Controller specific lines like port lines T0,T1, INT1 etc are terminated in this connector. MONITOR SOFTWARE: 32Kbytes of user of user friendly monitor software (27256) that allows Program enter, verification, debugging and execution from the system keyboard or a CRT Terminal or a PC functioning as a terminal. File uploading/downloading option is in serial mode THE EXTERNAL PC: AT keyboard allows users to directly assemble /disassemble mnemonics/instructions for 8051 using the alphanumeric LCD display OPERATING CONFIGURATION Two different modes of Operation SDA -51MEL are possible. They are
serial operation This configuration requires an RS232 compatible terminal as the display and command entry device. DISPLAY TERMINAL RS 232 C CABLE SDA-51-MEL A computer system is interfaced to SDA51-MEL, a driver program must be resident in the computer system. Driver program (b30drv for DOS,TALK setup for windows) for interfacing SDA-51 MEL to a PC has been developed by ALS and is available to the user as an optional accessory. Keyboard Operation This mode of operation is achieved through on board KEYBOARD/DISPLAY. In this mode,SDA- MEL interacts with the user through an PC/AT Keyboard and a 16x2 alphanumeric LCD display. This eliminates the need for a terminal / host computer and offers a convenient way for using the SDA- MEL as a “STAND –ALONE” system. SERIAL MODE: SERIAL COMMUNICATION AND SERIAL UTILITIES OPERATING INSTRUCTIONS To invoke this mode press < RES> and then the < ESLR> key on the KEYBOARD to transfer control to the CRT terminal/HOST computer the prompt “SERIAL MODE” will be appears on LCD DISPLAY > ALS 8051/31 MONITER V1 is displayed on the terminal to indicate that the system interrogation mode and ready to accept the command. All command that be entered through interrogation modes. SYSTEM MONITER The SDA-51-MEL operation is controlled by monitor program stored in 32kbytes of EPROM (U5, 27256), located at SDA-51 MEL memory map (0000-7FFF).The system executes the monitor program when ever power is turn ON or when RESET is pressed. In serial mode, the monitor program allows the user to perform following operations, Communicate with the SDA-51-MEL through the CRT terminal/HOST computer, using the on board serial I/O interface.
IARE CSE MPI LAB Manual - Lab
Course: computer science Diploma (22414)
University: Institute of Management and Research, Pune
- Discover more from: