Docsity

Microprocessor Systems 1 Exam 2009-10: Systems & Arithmetic Operations, Exams of Microprocessors

Toggle sidebar
bg1
CORK INSTITUTE OF TECHNOLOGY
INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ
Semester 1 Examinations 2009/10
Module Title: Microprocessor Systems 1
Module Code: ELTR6016
School: Electrical and Electronic Engineering
Programme Title: Bachelor of Engineering in Electronic Engineering
Programme Code: EELXE_7_Y2
External Examiner(s): Dr A Donnellan
Dr P O’Sullivan
Internal Examiner(s): Mr J O’Sullivan
Instructions: Attempt any three questions. All questions carry equal marks.
Duration: Two hours
Sitting: Winter 2009
Requirements for this examination: N/A
Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received
the correct examination paper.
If in doubt please contact an Invigilator.
pf3
pf4
pf5

Partial preview of the text

Download Microprocessor Systems 1 Exam 2009-10: Systems & Arithmetic Operations and more Exams Microprocessors in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Semester 1 Examinations 2009/

Module Title: Microprocessor Systems 1

Module Code: ELTR

School: Electrical and Electronic Engineering

Programme Title: Bachelor of Engineering in Electronic Engineering

Programme Code: EELXE_7_Y

External Examiner(s): Dr A Donnellan Dr P O’Sullivan

Internal Examiner(s): Mr J O’Sullivan

Instructions: Attempt any three questions. All questions carry equal marks.

Duration: Two hours

Sitting: Winter 2009

Requirements for this examination: N/A

Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have received the correct examination paper. If in doubt please contact an Invigilator.

Q1. (a) Explain what you understand by the term microcomputer. List the main parts of a microcomputer and the function performed by each. [5 marks]

(b) Two’s complement numbers are used to represent positive and negative values in a computer – what is the main advantage of using this system? [1 mark]

(c) Assuming 16-bit two’s complement values throughout, perform the following arithmetic operations and in each case explain fully with reasons whether the answer is arithmetically correct or not: (i) 56B8 + 387D (ii) 87D3 – B98E [8 marks]

(d) Why is the compare instruction often preferred over the subtract instruction? It is required to skip to a division routine in a program indicated by the label DIVIDE if the 16-bit unsigned value, X, held in D0 is greater than 50,000. Write a compare and branch segment to implement this task [6 marks]

Q2. (a) In your own words briefly describe the main features of assembly language. [4 marks]

(b) Outline any advantages of using assembly language for programming. [2 marks]

(c) Your are required to solve the following programming task: two 16-bit two’s complement values from locations $400500 and $400502 are to be added together with the result to be placed in D0 in the MPU. If the result is arithmetically correct a value of $AAAA should be placed in D1 but if the result is incorrect, $EEEE should be placed in D1 instead. Draw a flowchart for the above program. [6 marks]

(d) Write a program in assembly language with appropriate comments to carry out this task on a 68000-based computer. [8 marks]

Q3. (a) Draw a block diagram of the 68000 MPU and state the function of each block. [10 marks]

(b) The following is a line of code from a 68000 program listing: 00400400 4402 NEG.B D Identify and explain the significance of each item of data shown. [4 marks]

(c) Describe how this instruction would be fetched and executed by the MPU, making reference to the relevant MPU blocks in (a) above. [6 marks]