CME341 Dec. 9, 2013 Final Exam
|
|
- Miranda Griffith
- 5 years ago
- Views:
Transcription
1 1 CME341 Dec. 9, 2013 Final Exam Time: 3.0 hours, Text Books, Notes and Computer Files Only NO CELL PHONES or LAPTOPS All questions are independent. microprocessor. Each assumes you are starting with the original Parts within a question are dependent upon each other. The modications in one part build upon the modications made in previous parts. Before starting the exam download all the les in the folder les_for_2013_nal on the class website to a folder on your H drive. The path to this folder is Exam Files -> CME341_Exam_Files -> exams_2013_2014.
2 2 (1) 1. This question asks you to modify the final_exam_student_scrambler in the folder les_for_2013_n This student scrambler is dierent than the one given as part of the preamble!!!!!!!! The modied final_exam_student_scrambler will be used for all questions in the exam. For this question you are to use the Quartus and modelsim projects set up in the preamble. (a) Modify student_scrambler as per the instructions on the back of the answer sheet. (b) For this question, the program memory is to be initialized with the same.hex le used in the preamble, i.e. final_program_preamble.hex. (c) Compile the Quatus project final_exam_quartus to generate a new final_exam_quartus.vo le. (d) Open the Modelsim-Altera project final_exam_testbench, open final_exam_testbench.v and make sure the seed is set to 8'HFF and exam_number is set to 8'H00. Compile, load the simulation, format the wave window with the preamble_wave.do le provided and then run the simulation. If you have done things correctly for exam number 8'H00, the value for accumulator_output at the time counter_full_bar is low will be that given on the answer sheet. (e) Change exam_number in final_exam_testbench.v to the number on your answer sheet. Recompile the Modelsim-Altera project, re-load the simulation, re-format the wave window and re-run the simulation. If you have done things correctly for your exam number, the value for accumulator_output at the time counter_full_bar is low will be that given on the answer sheet. (f) Change the seed to 8'HAA and exam_number to 8'H00. Recompile, etcetera and report accumulator_output on the answer sheet. (g) Change exam_number to the number on your exam and repeat. 2. NB: Use hex le final_program_2013_q2.hex to initialize your program memory for all parts of this question. (1) (a) Modify your microprocessor to make NOPC8, i.e. the instruction with machine code C8, clear the r register. Compile etcetera and report your answer on the answer sheet. Make sure you use the seed given on the answer sheet. (1) (b) Further modify your microprocessor to make the r register an accumulator. That is the r register is to get the sum of the ALU output and itself on every ALU instruction. The NOPC8 instruction must still clear the r register. Compile etcetera and report your answer on the answer sheet.
3 3 (1) 3. Modify your microprocessor to change the way the conditional jump operates (but do not change the unconditional jump). The same rules apply for when to jump and when not to jump, i.e. if the zero_flag is zero then jump. The dierence is the jump address is computed relative to the address of the jnz instruction. The modied instruction jumps back from the current instruction by the amount in the least signicant nibble of the instruction register. Such jumps are called relative jumps. For example, if the jnz instruction in the instruction register has machine code 8'HF3 and it is located in program memory at address 8'H29, then the jump would be to program memory address (8'H29 - {4'H0,4'H3}) which is 8'H26. If the jnz in the instruction register was machine code 8'HF0, then the jump would be to program memory address (8'H29 - {4'H0,4'H0}) which is 8'H29. NB: Use hex le final_program_2013_q3.hex to initialize your program memory. (1) 4. Modify the microprocessor to make a load y1 a relative conditional jump. That is make the load y1 for this question behave exactly as the jnz in the question 3. The amount of the relative jump is the value in the data eld of the load y1 instruction. The load y1 instruction should also load the y1 register. The jump and jnz instructions should functions as usual. NB: Use hex le final_program_2013_q4.hex to initialize your program memory. 5. NB: Use hex le final_program_2013_q5.hex to initialize your program memory for all parts of this question. (1) (a) Modify the microprocessor to make o_reg a timer. o_reg is to be decremented by 4'H1 on every clock edge subsequent to the clock edge that writes it. o_reg is written when it is the destination of a move or load instruction. It is decremented until it reaches 4'H0, then it is no longer decremented. That is to say, when o_reg == 4'H0 it is not to be decremented. Compile etcetera and report your answer on the answer sheet. (1) (b) Modify the microprocessor to make it jump to 8'HF8 on the positive clock after the clock edge that has o_reg changing to 4'H0 from a previous value of 4'H1. If the previous value was anything except 4'H1 then the jump to 8'HF8 is not done. That is to say pm_address is made equal to 8'HF8 as soon as o_reg becomes 4'H0 immediately after it was 4'H1. This will force a jump to 8'HF8 on the next clock edge. The instruction that is in the instruction register at the time pm_address is 8'F8 is to be executed if and only if that instruction is not a successful jump.
4 4 For example, if o_reg was loaded with 4'H8 and then counted down to say 4'H3 at which time a load o_reg, #4'H0 was encountered, then the transition would be 4'H3 to 4'H0 and no action would be taken. Compile etcetera and report your answer on the answer sheet. (1) (c) Modify your microprocessor so that the jump to 8'HF8 becomes a interrupt with interrupt vector 8'HF8 and NOPC8 becomes a return from interruption. Note 1: The program for this question has no load o_reg or move to o_reg instructions is the ISR so the ISR will not be interrupted. Note 2: There are no disable and enable interrupt instructions. Compile etcetera and report your answer on the answer sheet. (1) 6. Modify your microprocessor to change the jump instruction to a Jump to SubRoutine (JSR) instruction. Use NOPC8 as the Return From Subroutine (RFS) instruction. Allow for 7 levels of nesting (i.e. 7 JSR instructions can be encountered before a RFS is encountered). You may design this feature under the assumption that an RFS instruction does not immediately follow either a JSR or a RFS instruction. NB: Use hex le final_program_2013_q6.hex to initialize your program memory for this question. (1) 7. Modify your microprocessor to extend the size of program memory to 512 words. Of course the memory will have 9 address bits. The most signicant of the 9 bits is controlled by a 1-bit base register. The base register is to be synchronously cleared with the synchronous reset signal constructed in the program sequencer. It is to be set with NOPC8 and cleared with NOPD8. That is to say the clock edge that executes NOPC8 sets the base register and the clock edge that executes NOPD8 clears the base register. For all instructions except the special case listed below the most signicant address bit of the program memory is connected to the the base register. The special case mentioned above is when the instruction to be executed is located at 9'H0FF or 9'H1FF (i.e. the PC is 8'HFF) and that instruction is not a successful jump (The instruction could be a conditional jump instruction with the zero ag being set which mean there is no jump). In that case: (a) The most signicant address bit of program memory is to be the complement of the base register. (b) The base register is to be toggled on the same clock edge that executes the special case instruction instruction.
5 NOTE: There will not be a NOPC8 or NOPD8 instruction in memory locations 9'H0FF or 9'H1FF so do not worry about these cases. NB: Use hex le final_program_2013_q7.hex to initialize your program memory for this question. (1) 8. Modify your microprocessor to implement a zero-overhead loop. The x1 and y1 registers will become loop_count and loop_length respectively. The assembler program used to test this program will not use x1 in any ALU operations so you are free to decrement it in any way you see t while implementing the zero-overhead loop. The loop begins on the instruction after loop_count is written, which is a load or move instruction where x1 is the destination register. The number of times the loop will be executed is the number in loop_count upon entering the loop plus one. That is to say the value in loop_count upon entering the loop is the number of times the execution of the loop will be repeated. The length of the loop is one more than the value in the loop_length register. For example, if loop_length had a value of zero upon entering the loop then there would be one instruction in the loop and the last instruction would have the same address as the rst instruction. NOTE: Neither loop_count or loop_length will change (i.e. will be written) in the execution of the loop. HELPFUL HINT: The comments in the comment eld in the listing (i.e. the le final_program_2013_q8.lst) make it very clear how the circuit should operate. advised to look at final_program_2013_q8.lst before making the modications. 5 You are NB: Use hex le final_program_2013_q8.hex to initialize your program memory for this question. (1) 9. Modify your microprocessor to force a one clock-cycle wait, which could be viewed as a nooperation, prior to every data memory read. That is to say, a data memory read instruction should stay in the instruction register for two clock periods and get executed on the second clock edge. The clock edge that would normally execute the read would do nothing. This means neither the PC or pm_address will change on the rst clock edge. The subsequent clock edge will execute the instruction. NB: Use hex le final_program_2013_q9.hex to initialize your program memory for this question.
6 6 Listing for question 2a and 2b A load x0, #4'HA; 0002 C7 com x0; 0003 A4 mov o_reg, r; 0004 C8 NOPC8; clear r 0005 C7 com x0; 0006 C7 com x0; 0007 C7 com x0; 0008 A4 mov o_reg, r; 0009 C8 NOPC8; clear r 000A E0 jump Start; Listing for question load x0, #4'H3; F load y0, #4'Hf; 0003 A0 Loop: mov o_reg, x0; 0004 C2 add x0, y0; mov x0, r; 0006 F3 jnz 8'H30; jnz Loop 0007 E1 jump Next; 0010 align; Next: load x0, #4'H5; 0011 C2 add x0, y0; 0012 FF jnz 8'HF0; jnz Loop Next 10H Loop 03H
7 7 Listing for question load x0, #4'H0; load y0, #4'H1; 0003 C2 Loop1: add x0,y0; 0004 A4 mov o_reg, r; mov x0, r; load y1,#4'h3; jnz Loop E1 jump Loop2; 0010 align 0010 C2 Loop2: add x0,y0; 0011 A4 mov o_reg, r; mov x0, r; 0013 F1 jnz Loop2; 0014 E2 jump Loop3; 0020 align 0020 E2 Loop3: jump Loop3; Loop3 20H Loop2 10H
8 8 Listing for question 5a, 5b and 5c load o_reg, #4'H8; load o_reg, #4'H4; o_reg = 4 upon execution load x0, #4'H1; o_reg = 3 upon execution load x1, #4'H2; o_reg = 2 upon execution load y0, #4'H1; o_reg = 1 upon execution 0006 C2 add x0, y0; o_reg = 0 upon execution load y1, #4'H4; load is excuted ; For parts b) and c) also ; jumps to F E1 jump Loop1; For part c) this is the place ; of the return from interrupt 0010 align Loop1: load o_reg,#4'h3; traps in this loop ; for parts a) and c) load o_reg,#4'h2; 0012 E1 jump Loop1; 00F8 org 8'HF8 00F8 82 ISR: mov x0, y0; 00F9 C8 NOPC8; RFI for part c) 00FA E0 jump Start; only executed for part b) ISR F8H Loop1 10H
9 9 Listing for question E2 jump ISR1; load o_reg, #4'H0; A load x0, #4'HA; 0004 C7 com x0; r=5, zero_flag = 1; 0005 F1 jnz Trap; 0010 align 0010 F1 Trap: jnz Trap; r=5, zero_flag = 1; 0020 align ISR1: load o_reg, #4'H1; 0021 E3 jump ISR2; load o_reg, #4'H1; 0023 C8 NOPC8; RFI 0030 align ISR2: load o_reg, #4'H2; 0031 E4 jump ISR3; load o_reg, #4'H2; 0033 C8 NOPC8; RFI 0040 align ISR3: load o_reg, #4'H3; 0041 E5 jump ISR4; load o_reg, #4'H3; 0043 C8 NOPC8; RFI 0050 align ISR4: load o_reg, #4'H4; 0051 E6 jump ISR5; load o_reg, #4'H4; 0053 C8 NOPC8; RFI 0060 align ISR5: load o_reg, #4'H5; 0061 C8 NOPC8; RFI ISR4 50H Trap 10H ISR3 40H ISR2 30H ISR1 20H ISR5 60H
10 10 Listing for question org 8'H C8 NOPC8; 0002 E0 jump Start; jump to 9'H100 00F0 org 8'HF0; 00F0 40 end: load o_reg, #4'H0; 00F1 41 load o_reg, #4'H1; 00F2 42 load o_reg, #4'H2; 00F3 43 load o_reg, #4'H3; 00F4 44 load o_reg, #4'H4; 00F5 45 load o_reg, #4'H5; 00F6 46 load o_reg, #4'H6; 00F7 47 load o_reg, #4'H7; 00F8 48 load o_reg, #4'H8; 00F9 49 load o_reg, #4'H9; 00FA 4A load o_reg, #4'HA; 00FB 4B load o_reg, #4'HB; 00FC 4C load o_reg, #4'HC; 00FD 4D load o_reg, #4'HD; 00FE 4D load o_reg, #4'HD; 00FF 4F load o_reg, #4'HF; A Page1: load o_reg, #4'HA; 0101 D8 NOPD8; 0102 EF jump 8'HF; jump to 9'H0F0 end 0F0H Start 000H Page1 100H
11 11 Listing for question org 8'H load y1, #4'H2; loop length is load x1, #4'H5; execute loop 5+1=6 times top: load o_reg, #4'H1; should appear 6 times load o_reg, #4'H2; should appear 6 times end: load o_reg, #4'H3; should appear 6 times F load o_reg, #4'HF; should appear once load o_reg, #4'H0; 0008 E1 jump Trap; 0010 align 0010 E1 Trap: jump Trap; Trap 10H end 05H top 03H Listing for question org 8'H load i, #4'H7; load m, #4'H1; load dm, #4'H1; load dm, #4'H2; load dm, #4'H3; load i, #4'H7; 0007 A7 mov o_reg, dm; 0008 A7 mov o_reg, dm; 0009 A7 mov o_reg, dm; 000A 40 load o_reg, #4'H0; 000B E1 jump Trap; 0010 align 0010 E1 Trap: jump Trap; Trap 10H
CME341 Dec. 16, 2014 Final Exam
1 CME341 Dec. 16, 2014 Final Exam Time: 3.0 hours, Text Books, Notes and Computer Files Only NO CELL PHONES or LAPTOPS All questions are independent. Each assumes you are starting with the microprocessor
More informationCME341 Dec. 10, 2016 Final Exam
1 CME341 Dec. 10, 2016 Final Exam Time: 3.0 hours, Text Books, Notes and Computer Files Only NO CELL PHONES or LAPTOPS All questions are independent. Each assumes you are starting with the microprocessor
More informationCME341 Preamble for the Final Exam. About the Final Exam. CME341 Preamble for Final Exam 1
CME341 Preamble for Final Exam 1 About the Final Exam CME341 Preamble for the Final Exam The exam will start in the classroom assigned on the exam schedule. Students will be given the exam booklet at the
More informationEE431 April 6, 2009 Midterm Material on Assignments 6 to 10
EE431 April 6, 2009 midterm 1 EE431 April 6, 2009 Midterm Material on Assignments 6 to 10 Date: Monday April 6, 2009 Time = 2 hours Text Books, Notes and Computer Files Only NO CELL PHONES or LAPTOPS Preamble
More informationControl Transfer Instructions Jump, Loop, and Call. ECE473/573 Microprocessor System Design, Dr. Shiue
Control Transfer Instructions Jump, Loop, and Call 1 Jump Instructions JZ label ; Jump if A=0 JNZ label ; Jump if A!=0 DJNZ reg, label ; Decrement and Jump if A (or reg.)!=0 CJNE A, byte ; Compare and
More informationPin Description, Status & Control Signals of 8085 Microprocessor
Pin Description, Status & Control Signals of 8085 Microprocessor 1 Intel 8085 CPU Block Diagram 2 The 8085 Block Diagram Registers hold temporary data. Instruction register (IR) holds the currently executing
More information8085 Microprocessor Architecture and Memory Interfacing. Microprocessor and Microcontroller Interfacing
8085 Microprocessor Architecture and Memory 1 Points to be Discussed 8085 Microprocessor 8085 Microprocessor (CPU) Block Diagram Control & Status Signals Interrupt Signals 8085 Microprocessor Signal Flow
More informationAssembly Language Programming of 8085
Assembly Language Programming of 8085 1. Introduction A microprocessor executes instructions given by the user Instructions should be in a language known to the microprocessor Microprocessor understands
More informationAssembly Language Programming of 8085
Assembly Language Programming of 8085 Topics 1. Introduction 2. Programming model of 8085 3. Instruction set of 8085 4. Example Programs 5. Addressing modes of 8085 6. Instruction & Data Formats of 8085
More informationEECE 340 Introduction to Microprocessors w/lab Section A. Term Project Parking Visitor Counter
Section A Term Project Parking Visitor Counter Group Members: Instructor: Dr. Jinane Biri Due date: Sunday, Dec. 16, 2012 1 Table of Contents 1. Objective... 2 2. Introduction and Problem Description...
More informationJUMP, LOOP AND CALL INSTRUCTIONS
JUMP, LOOP AND CALL INSTRUCTIONS After you have understood the tutorial on Introduction to assembly language which includes simple instruction sets like input/output operations, now it s time to learn
More informationSOLUTIONS!! DO NOT DISTRIBUTE!!
THE UNIVERSITY OF THE WEST INDIES EXAMINATIONS OF FEBRUARY MID-TERM 2005 Code and Name of Course: EE25M Introduction to Microprocessors Paper: Date and Time: Duration: One Hour INSTRUCTIONS TO CANDIDATES:
More informationGetting Started with the HCS12 IDE
Getting Started with the HCS12 IDE B. Ackland June 2015 This document provides basic instructions for installing and using the MiniIDE Integrated Development Environment and the Java based HCS12 simulator.
More informationEKT222 Miroprocessor Systems Lab 5
LAB 5: Interrupts Objectives: 1) Ability to define interrupt in 8085 microprocessor 2) Ability to understanding the interrupt structure in the 8085 microprocessor 3) Ability to create programs using the
More informationAssembly Language programming (3)
EEE3410 Microcontroller Applications LABORATORY Experiment 3 Assembly Language programming (3) Name Class Date Class No. Marks Conditional Program Branching and Subroutine Call in 8051 Objectives To learn
More informationCounters & Time Delays. Microprocessors & Interfacing 1
Counters & Time Delays Microprocessors & Interfacing 1 Counters A loop counter is set up by loading a register with a certain value Then using the DCR (to decrement) and INR (to increment) the contents
More informationContents 8051 Instruction Set BY D. BALAKRISHNA, Research Assistant, IIIT-H Chapter I : Control Transfer Instructions Lesson (a): Loop Lesson (b): Jump (i) Conditional Lesson (c): Lesson (d): Lesson (e):
More informationExample Programs for 6502 Microprocessor Kit
Example Programs for 6502 Microprocessor Kit 0001 0000 0002 0000 GPIO1.EQU $8000 0003 0000 0004 0000 0005 0200.ORG $200 0006 0200 0007 0200 A5 00 LDA $0 0008 0202 8D 00 80 STA $GPIO1 0009 0205 00 BRK 0010
More informationEC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I
EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers 1. Define microprocessors? UNIT-I A semiconductor device(integrated circuit) manufactured by using the LSI technique. It includes
More informationEXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER
OBJECT: EXPERIMENT NO. 1 THE MKT 8085 MICROPROCESSOR TRAINER To understand the structure and operating instruction of the microprocessor trainer. INTRODUCTION: The MKT 8085 is a single-board microcomputer,
More informationQ. P. Code : b. Draw and explain the block dig of a computer with microprocessor as CPU.
Q. P. Code : 08235 (2½ Hours) [Total Marks: 75] N. B.: (1) All questions are compulsory. (2) Make suitable assumptions wherever necessary and state the assumptions made. (3) Answers to the same question
More informationMICROCONTROLLER AND PLC LAB-436 SEMESTER-5
MICROCONTROLLER AND PLC LAB-436 SEMESTER-5 Exp:1 STUDY OF MICROCONTROLLER 8051 To study the microcontroller and familiarize the 8051microcontroller kit Theory:- A Microcontroller consists of a powerful
More informationLIST OF PROGRAMS. Prg. Name of the Program. 1 Study of Pin Diagram of Study of Architecture of Study of 8085 Kit.
LIST OF PROGRAMS Prg. Name of the Program No. 1 Study of Pin Diagram of 8085 2 Study of Architecture of 8085 3 Study of 8085 Kit 4 Reverse Order 5 Exchange of memory blocks 6 Absolute Difference 7 Even
More informationELEG3924 Microprocessor
Department of Electrical Engineering University of Arkansas ELEG3924 Microprocessor Ch.3 Jump, Loop, and Call Dr. Jing Yang jingyang@uark.edu 1 OUTLINE Loop and Jump instructions Call instructions Time
More informationChapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics
Chapter 4 Objectives Learn the components common to every modern computer system. Chapter 4 MARIE: An Introduction to a Simple Computer Be able to explain how each component contributes to program execution.
More informationDelhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:
Serial : 01. ND_EE_NW_Microprocessors_150718 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: 011-45124612 CLASS TEST 2018-19 ELECTRICAL
More informationSN8F5000 Family Instruction Set
SONiX Technology Co., Ltd. 8051-based Microcontroller 1 Overview SN8F5000 is 8051 Flash Type microcontroller supports comprehensive assembly instructions and which are fully compatible with standard 8051.
More informationELEG3923 Microprocessor Ch.3 Jump, Loop, and Call
Department of Electrical Engineering University of Arkansas ELEG3923 Microprocessor Ch.3 Jump, Loop, and Call Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Loop and Jump instructions Call instructions Time delay
More informationET2640 Microprocessors
ET2640 Microprocessors Unit -2 Processor Programming Concepts Basic Control Instructor : Stan Kong Email : skong@itt-tech.edu Figure 2 4 Bits of the PSW Register 8051 REGISTER BANKS AND STACK 80 BYTES
More informationInterrupt is a process where an external device can get the attention of the microprocessor. Interrupts can be classified into two types:
8085 INTERRUPTS 1 INTERRUPTS Interrupt is a process where an external device can get the attention of the microprocessor. The process starts from the I/O device The process is asynchronous. Classification
More information8051 Microcontroller Assembly Programming
8051 Microcontroller Assembly Programming EE4380 Fall 2002 Class 3 Pari vallal Kannan Center for Integrated Circuits and Systems University of Texas at Dallas Topics Machine code 8051 Addressing Modes
More informationS.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING
S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING QUESTION BANK Subject Code : EC307 Subject Name : Microprocessor and Interfacing Year & Sem : III Year, V Sem
More informationProgramming Book for 6809 Microprocessor Kit
Programming Book for 6809 Microprocessor Kit Wichit Sirichote, wichit.sirichote@gmail.com Image By Konstantin Lanzet - CPU collection Konstantin Lanzet, CC BY-SA 3.0, Rev1.2 March 2018 1 Contents Lab 1
More information538 Lecture Notes Week 1
538 Clowes Lecture Notes Week 1 (Sept. 6, 2017) 1/10 538 Lecture Notes Week 1 Announcements No labs this week. Labs begin the week of September 11, 2017. My email: kclowes@ryerson.ca Counselling hours:
More informationIntroduction to Microcontrollers III
Introduction to Microcontrollers III Timing Functions Delay5u.a11, Delay1m.a11 µp Laboratory #3 Data Entry : µp Laboratory #2 Hints Use the pushbutton routine from count.a11 or count_br.a11 (WAIT0 and
More informationIntroduction to Assembly Language Programming (Instruction Set) 1/18/2011 1
Introduction to Assembly Language Programming (Instruction Set) 1/18/2011 1 High Level Language Compiler Assembly Language Assembler Machine Code Microprocessor Hardware 1/18/2011 2 8085A Instruction Set
More informationECE 3120 Fall 2013 Lab 1 Code Entry, Assembly, and Execution
ASSEMBLY PROGRAMMING WITH CODE WARRIOR The purpose of this lab is to introduce you to the layout and structure of assembly language programs and their format, as well as to the use of the Code Warrior
More information8085 Interrupts. Lecturer, CSE, AUST
8085 Interrupts CSE 307 - Microprocessors Mohd. Moinul Hoque, 1 Interrupts Interrupt is a process where an external device can get the attention of the microprocessor. The process starts from the I/O device
More informationExam I Review February 2017
Exam I Review February 2017 Binary Number Representations Conversion of binary to hexadecimal and decimal. Convert binary number 1000 1101 to hexadecimal: Make groups of 4 bits to convert to hexadecimal,
More informationCPU. Fall 2003 CSE 207 Digital Design Project #4 R0 R1 R2 R3 R4 R5 R6 R7 PC STATUS IR. Control Logic RAM MAR MDR. Internal Processor Bus
http://www.engr.uconn.edu/~barry/cse207/fa03/project4.pdf Page 1 of 16 Fall 2003 CSE 207 Digital Design Project #4 Background Microprocessors are increasingly common in every day devices. Desktop computers
More informationUNIT 1 REFERENCE 1 PREPARED BY S.RAVINDRAKUMAR, LECT/ECE, CHETTINAD COLLEGE OF ENGG AND TECH, KARUR
UNIT 1 REFERENCE 1 PROGRAMMING THE 8085 DEVELOPMENT OF PROGRAM A program is a sequence of instructions written to tell a computer to perform a specific function. The instructions are selected from the
More information4 Categories Of 8085 Instructions That Manipulate Data
4 Categories Of 8085 Instructions That Manipulate Data 4 I OW of 8257 isconnected to the MEMR of system bus. A4 A15 lines to List categories of8085 instructions that manipulate data. Ans. 8085instruction,
More informationIntroduction to Microcontrollers III
Introduction to Microcontrollers III Timing Functions Delay5u.a11, Delay1m.a11 µp Laboratory #3 Data Entry : µp Laboratory #2 Hints Use the pushbutton routine from count.a11 or count_br.a11 (WAIT0 and
More informationMicro computer Organization
Micro computer Organization I Base Basic Components CPU SYSTEM BUSES VDD CLK RESET 1 MPU vs MCU Microprocessor Unit (MPU) CPU (called Microprocessor) is a die All components external to die Basically on
More informationCONCORDIA UNIVERSITY Department of Computer Science and Software Engineering COMP 228/4 Section PP Midterm Exam
1 CONCORDIA UNIVERSITY Department of Computer Science and Software Engineering COMP 228/4 Section PP Midterm Exam Instructor: Tadeusz S. Obuchowicz Date: Tuesday, February 28, 2012 Time Allowed: 1 hour
More informationPractical Course File For
Practical Course File For Microprocessor (IT 473) B.Tech (IT) IV-SEM Department of IT University Institute of Engineering & Technology Panjab University, Chandigarh Page 1 INTRODUCTION... 4 EXPERIMENT-1:
More informationMicroprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur
Microprocessors and Microcontrollers Prof. Santanu Chattopadhyay Department of E & EC Engineering Indian Institute of Technology, Kharagpur Lecture - 09 8085 Microprocessors (Contd.) (Refer Slide Time:
More informationDelhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: Ph:
Serial :. PT_EE-EC_A_Microprocessor_968 Delhi Noida Bhopal Hyderabad Jaipur Lucknow Indore Pune Bhubaneswar Kolkata Patna Web: E-mail: info@madeeasy.in Ph: -452462 CLASS TEST 28-9 Subject : Microprocessors
More informationLaboratory Exercise 7
Laboratory Exercise 7 Finite State Machines This is an exercise in using finite state machines. Part I We wish to implement a finite state machine (FSM) that recognizes two specific sequences of applied
More informationChapter 4. MARIE: An Introduction to a Simple Computer
Chapter 4 MARIE: An Introduction to a Simple Computer Chapter 4 Objectives Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution.
More informationDepartment of EIE / Pondicherry Engineering College. Timer/Counters. Department of EIE / Pondicherry Engineering College 1
Timer/Counters Department of EIE / Pondicherry Engineering College 1 The 8051 has two internal sixteen bit hardware Timer/Counters. Each Timer/Counter can be configured in various modes, typically based
More information1 MALP ( ) Unit-1. (1) Draw and explain the internal architecture of 8085.
(1) Draw and explain the internal architecture of 8085. The architecture of 8085 Microprocessor is shown in figure given below. The internal architecture of 8085 includes following section ALU-Arithmetic
More informationIts Assembly language programming
8085 Architecture & Its Assembly language programming Dr A Sahu Dept of Computer Science & Engineering IIT Guwahati 8085 Era and Features 8085 Outline Block diagram (Data Path) Bus Structure Register Structure
More informationCHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY
CHAPTER 5 : Introduction to Intel 8085 Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY The 8085A(commonly known as the 8085) : Was first introduced in March 1976 is an 8-bit microprocessor with 16-bit address
More informationMARIE: An Introduction to a Simple Computer
MARIE: An Introduction to a Simple Computer Outline Learn the components common to every modern computer system. Be able to explain how each component contributes to program execution. Understand a simple
More information8051 Overview and Instruction Set
8051 Overview and Instruction Set Curtis A. Nelson Engr 355 1 Microprocessors vs. Microcontrollers Microprocessors are single-chip CPUs used in microcomputers Microcontrollers and microprocessors are different
More informationMICROPROCESSOR BASICS AND RELATED TERMS
MICROPROCESSOR BASICS AND RELATED TERMS Microprocessor: Programmable integrated device that has computing ability and decision making capacity. It is the CPU of computer. A multipurpose, programmable,
More informationGATE Exercises on Microprocessors
1 GATE Exercises on Microprocessors Abstract This problem set has questions taken from GATE papers over the last twenty years. Teachers can use the problem set for courses tutorials. 1) The clock frequency
More informationMicrocontroller Intel [Instruction Set]
Microcontroller Intel 8051 [Instruction Set] Structure of Assembly Language [ label: ] mnemonic [operands] [ ;comment ] Example: MOV R1, #25H ; load data 25H into R1 2 8051 Assembly Language Registers
More informationECE332, Week 8. Topics. October 15, Exceptions. Hardware Interrupts Software exceptions
ECE332, Week 8 October 15, 2007 1 Topics Exceptions Hardware Interrupts Software exceptions Unimplemented instructions Software traps Other exceptions 2 1 Exception An exception is a transfer of control
More informationAN1742. Programming the 68HC705J1A In-Circuit By Chris Falk CSG Product Engineering Austin, Texas. Introduction. Overview
Order this document by /D Programming the 68HC705J1A In-Circuit By Chris Falk CSG Product Engineering Austin, Texas Introduction Overview This application note describes how a user can program the 68HC705J1A
More informationMicroprocessors 1. The 8051 Instruction Set. Microprocessors 1 1. Msc. Ivan A. Escobar Broitman
Microprocessors 1 The 8051 Instruction Set Microprocessors 1 1 Instruction Groups The 8051 has 255 instructions Every 8-bit opcode from 00 to FF is used except for A5. The instructions are grouped into
More informationModule Contents of the Module Hours COs
Microcontrollers (EE45): Syllabus: Module Contents of the Module Hours COs 1 8051 MICROCONTROLLER ARCHITECTURE: Introduction to Microprocessors and Microcontrollers, the 8051 Architecture, 08 1 and pin
More informationInterrupt Driven Programming in MSP430 Assembly (ESCAPE) *
OpenStax-CNX module: m45965 1 Interrupt Driven Programming in MSP430 Assembly (ESCAPE) * Matthew Johnson Based on Interrupt Driven Programming in MSP430 Assembly by Matthew Johnson This work is produced
More informationEE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1. Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University
EE 5340/7340 Motorola 68HC11 Microcontroler Lecture 1 Carlos E. Davila, Electrical Engineering Dept. Southern Methodist University What is Assembly Language? Assembly language is a programming language
More informationLab 9: On-Board Time Generation and Interrupts
Lab 9: On-Board Time Generation and Interrupts Summary: Develop a program and hardware interface that will utilize externally triggered interrupts and the onboard timer functions of the 68HC12. Learning
More informationCPU: SOFTWARE ARCHITECTURE INSTRUCTION SET (PART
General Introduction CPU: SOFTWARE ARCHITECTURE INSTRUCTION SET (PART 1) General Introduction (1/5): On Instructions Instruction operate with data or with the flow of the program The following information
More informationinstruction 1 Fri Oct 13 13:05:
instruction Fri Oct :0:0. Introduction SECTION INSTRUCTION SET This section describes the aressing modes and instruction types.. Aressing Modes The CPU uses eight aressing modes for flexibility in accessing
More informationCMPEN 472 Sample EXAM II
CMPEN 472 Sample EXAM II Name: Student ID number (last 4 digit): Please write your name on every page. Write your solutions clearly. You may use backside of each page for scratch but the solutions must
More informationProgramming Book Microcontroller Kit. Rev 3.0 January, Wichit Sirichote
Programming Book1 8051 Microcontroller Kit Rev 3.0 January, 016 016 Wichit Sirichote 1 Contents Overview...3 SAFTY INFORMATION...3 Tools...3 Experiment 1 Blinking LED...4 Experiment Binary number counting...9
More information4. Specifications and Additional Information
4. Specifications and Additional Information AGX52004-1.0 8B/10B Code This section provides information about the data and control codes for Arria GX devices. Code Notation The 8B/10B data and control
More informationThe advantages of registers over memory locations are as follows:
Q.2 a. In a microprocessor, what is the use of a register? What are the advantages & disadvantages of using registers over a memory location? What is the speciality of register A (accumulator) over other
More informationPROBLEMS. 7.1 Why is the Wait-for-Memory-Function-Completed step needed when reading from or writing to the main memory?
446 CHAPTER 7 BASIC PROCESSING UNIT (Corrisponde al cap. 10 - Struttura del processore) PROBLEMS 7.1 Why is the Wait-for-Memory-Function-Completed step needed when reading from or writing to the main memory?
More informationINSTRUCTION SET AND EXECUTION
SECTION 6 INSTRUCTION SET AND EXECUTION Fetch F1 F2 F3 F3e F4 F5 F6 Decode D1 D2 D3 D3e D4 D5 Execute E1 E2 E3 E3e E4 Instruction Cycle: 1 2 3 4 5 6 7 MOTOROLA INSTRUCTION SET AND EXECUTION 6-1 SECTION
More informationMay the Schwartz be with you!
Department of Electrical & Computer Engineering Tuesday 27 June 17 29-Sep-17 3:54 PM Page 1/13 Exam 1 Instructions: Turn off cell phones beepers and other noise making devices. Show all work on the front
More information6.1 Combinational Circuits. George Boole ( ) Claude Shannon ( )
6. Combinational Circuits George Boole (85 864) Claude Shannon (96 2) Signals and Wires Digital signals Binary (or logical ) values: or, on or off, high or low voltage Wires. Propagate digital signals
More informationORG ; TWO. Assembly Language Programming
Dec 2 Hex 2 Bin 00000010 ORG ; TWO Assembly Language Programming OBJECTIVES this chapter enables the student to: Explain the difference between Assembly language instructions and pseudo-instructions. Identify
More informationMicro Processor & Micro Controllers
Micro Processor & Micro Controllers 1. What is microprocessor? It is a program controlled semi conductor device (IC), which fetches, decodes and execute instructions. 2. What are the basic units of microprocessor?
More informationAN427 Timer I in non-i 2 C applications of the 83/87C751/752 microcontrollers
MICROCONTROLLER PRODUCTS Timer I in non-i 2 C applications of the 83/87C751/752 microcontrollers Author: Greg Goodhue December 1990 Philips Semiconductors The small package 83/87C748, 83/87C749, 83/87C751
More informationMCS-51 Serial Port A T 8 9 C 5 2 1
MCS-51 Serial Port AT89C52 1 Introduction to Serial Communications Serial vs. Parallel transfer of data Simplex, Duplex and half-duplex modes Synchronous, Asynchronous UART Universal Asynchronous Receiver/Transmitter.
More informationLynX-10 Legacy Protocol Specification Version 1.01
LynX-10 Legacy Protocol Specification Version 1.01 Marrick Limited LynX-10 TM Legacy Protocol Specification Manual revision 1.01 Marrick Limited, Incorporated P.O. Box 950940 Lake Mary, FL 32795 (407)
More informationArchitecture of 8085 microprocessor
Architecture of 8085 microprocessor 8085 consists of various units and each unit performs its own functions. The various units of a microprocessor are listed below Accumulator Arithmetic and logic Unit
More informationExamination Design of Embedded DSP Processors, TSEA26
Examination Design of Embedded DSP Processors, TSEA26 Date 2011-01-12 Room TER4 Time 14:00-18:00 Course code TSEA26 Exam code TEN 1 Course name Design of Embedded DSP Processors Department ISY, Department
More informationGrundlagen Microcontroller Processor Core. Günther Gridling Bettina Weiss
Grundlagen Microcontroller Processor Core Günther Gridling Bettina Weiss 1 Processor Core Architecture Instruction Set Lecture Overview 2 Processor Core Architecture Computes things > ALU (Arithmetic Logic
More informationthe SAP-2 I. Intro cmpt-150-arc Sections 8-8, 8-9, 9-4, 9-5, 9.6, We ll do this in bits and pieces, doing the beginning of each section first.
I. Intro the SAP-2 cmpt-150-arc Sections 8-8, 8-9, 9-4, 9-5, 9.6, 9.8 1. We ll do this in bits and pieces, doing the beginning of each section first. 1. The SAP-2 adds a lot of functionality to the SAP-1
More informationb. List different system buses of 8085 microprocessor and give function of each bus. (8) Answer:
Q.2 a. Discuss and differentiate between a Microprocessor and a Microcontroller. Microprocessor is an IC which has only the CPU inside them i.e. only the processing powers such as Intel s Pentium 1,2,3,4,
More informationSIR C.R.REDDY COLLEGE OF ENGINEERING ELURU DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER
SIR C.R.REDDY COLLEGE OF ENGINEERING ELURU 534007 DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING DIGITAL ELECTRONICS & MICROPROCESSOR LAB MANUAL 2/4 CSE: II- SEMESTER Faculty: B.Homer Benny (Section- A
More informationChapter 3. Bit Addressable Area. By DeccanRobots
Chapter 3 Bit Addressable Area By DeccanRobots What is Bit Addressable Area? FFh 2Fh 20h 00h Data Memory General purpose Memory Area Bit Addressable Memory Registers Memory Area from 20H to 2FH is Bit
More informationLAB 3: Programming in Assembly Language
INTERNATIONAL ISLAMIC UNIVERSITY OF MALAYSIA Kulliyyah Of Engineering Department Of Electrical Engineering ELECTRICAL AND COMPUTER ENGINEERING LAB II (ECE 2202) Name: Matric Number: Group: Section: Date:
More informationMARIE: An Introduction to a Simple Computer
MARIE: An Introduction to a Simple Computer 4.2 CPU Basics The computer s CPU fetches, decodes, and executes program instructions. The two principal parts of the CPU are the datapath and the control unit.
More informationIntroduction to Microprocessor
Introduction to Microprocessor The microprocessor is a general purpose programmable logic device. It is the brain of the computer and it performs all the computational tasks, calculations data processing
More informationEast Tennessee State University Department of Computer and Information Sciences CSCI 4717 Computer Architecture TEST 3 for Fall Semester, 2005
Points missed: Student's Name: Total score: /100 points East Tennessee State University Department of Computer and Information Sciences CSCI 4717 Computer Architecture TEST 3 for Fall Semester, 2005 Section
More information1. Internal Architecture of 8085 Microprocessor
Practical 1 Date : AIM : Introduction Of Microprocessor 8085. 1. Internal Architecture of 8085 Microprocessor Control Unit Generates signals within µp to carry out the instruction, which has been decoded.
More informationFinal Exam Solution Sunday, December 15, 10:05-12:05 PM
Last (family) name: First (given) name: Student I.D. #: Circle section: Kim Hu Department of Electrical and Computer Engineering University of Wisconsin - Madison ECE/CS 352 Digital System Fundamentals
More informationFACULTY OF ENGINEERING LAB SHEET
FACULTY OF ENGINEERING LAB SHEET MICROCONTROLLER AND MICROPROCESSOR SYSTEMS ECE2216 TRIMESTER 1 (2017/2018) MP2: Construction and programming of a basic electronic piano *Note: On-the-spot evaluation may
More informationComputer Organization I. Lecture 28: Architecture of M68HC11
Computer Organization I Lecture 28: Architecture of M68HC11 Overview Architecture of HC11 Microprocessor Format of HC11 Assembly Code Objectives To understand the simplified architecture of HC11 To know
More informationsignature i-1 signature i instruction j j+1 branch adjustment value "if - path" initial value signature i signature j instruction exit signature j+1
CONTROL FLOW MONITORING FOR A TIME-TRIGGERED COMMUNICATION CONTROLLER Thomas M. Galla 1, Michael Sprachmann 2, Andreas Steininger 1 and Christopher Temple 1 Abstract A novel control ow monitoring scheme
More informationCOSC 243. Assembly Language Techniques. Lecture 9. COSC 243 (Computer Architecture)
COSC 243 Assembly Language Techniques 1 Overview This Lecture Source Handouts Next Lectures Memory and Storage Systems 2 Parameter Passing In a high level language we don t worry about the number of parameters
More informationCS 151 Midterm. Instructions: Student ID. (Last Name) (First Name) Signature
CS 151 Midterm Name Student ID Signature :, (Last Name) (First Name) : : Instructions: 1. Please verify that your paper contains 11 pages including this cover. 2. Write down your Student-Id on the top
More informationDarshan Institute of Engineering & Technology for Diploma Studies Unit - 1
Darshan Institute of Engineering & Technology for Diploma Studies Unit - 1 1. Draw and explain 4 bit binary arithmetic or adder circuit diagram. A binary parallel adder is digital function that produces
More information