Docsity

Syntax Errors - Microprocessor Systems - Exam, Exams of Microprocessors

Toggle sidebar
bg1
CORK INSTITUTE OF TECHNOLOGY
INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ
Autumn Examinations 2008/09
Module Title: Microprocessor Systems 1
Module Code: ELTR6016
School: Electrical and Electronic Engineering
Programme Title: Bachelor of Engineering in Electronic Engineering – Stage 2
Programme Code: EELXE_7_Y2
External Examiner(s): Mr D Denieffe
Dr P O’Sullivan
Internal Examiner(s): Mr J O’Sullivan
Instructions: Attempt any three questions. All questions carry equal marks.
Ensure you include the Return Sheet with your answer book.
Duration: Two Hours
Sitting: Autumn 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.
You are expected to present your material in a neat and tidy fashion.
Start each question on a new page.
Remember that there is plenty of time – two hours for three questions.
pf3
pf4

Partial preview of the text

Download Syntax Errors - Microprocessor Systems - Exam and more Exams Microprocessors in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Autumn Examinations 2008/

Module Title: Microprocessor Systems 1

Module Code: ELTR

School: Electrical and Electronic Engineering

Programme Title: Bachelor of Engineering in Electronic Engineering – Stage 2

Programme Code: EELXE_7_Y

External Examiner(s): Mr D Denieffe Dr P O’Sullivan

Internal Examiner(s): Mr J O’Sullivan

Instructions: Attempt any three questions. All questions carry equal marks. Ensure you include the Return Sheet with your answer book.

Duration: Two Hours

Sitting: Autumn 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.

You are expected to present your material in a neat and tidy fashion. Start each question on a new page. Remember that there is plenty of time – two hours for three questions.

Q1 (a) Draw a block diagram of an overall microcomputer and state the function of each block. [5 marks]

(b) Why are two’s complement numbers used in computers? List in ascending order of magnitude the following 8-bit two’s complement numbers: F2 5E 9D 00 1C B2 [5 marks]

(c) What is meant by a flag? Using one sentence in each case explain the action of the X, N, Z, V and C flags in the 68000 MPU. [5 marks]

(d) In your own words, explain how the compare instruction works. [2 marks]

(e) Assuming the value in D0.B is $64, explain if the program will branch to LABEL after the following program segment is executed – give reasons CMP.B #100,D BNE LABEL [3 marks]

Q2 (a) What is meant by a low-level programming language? [3 marks]

(b) Outline any advantages of using low-level languages for programming. [3 marks]

(c) Draw a flowchart to show how you would solve the following programming task: It is required to check the 16-bit unsigned value stored in location $400500 and if it is found to be less than 25,000, double it. [6 marks]

(d) Using the accompanying instruction set, write a program with appropriate comments to carry out this task on a 68000-based computer. [8 marks]

Q3 (a) Figure 1 on the Return Sheet shows an outline block diagram of the MC MPU. Carefully label each block in the diagram and return this diagram with your answer book. [5 marks]

(b) Which part of the MPU is being referred to in each of the following statements? (i) the part of the MPU holding the address of the next instruction (ii) the part of the MPU where opcodes are held (iii) the input to the MPU which controls the timing of all operations (iv) the part that indicates when the signed number range is exceeded

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Semester 1 Examinations 2008/

Module Title: Microprocessor Systems 1

RETURN SHEET

Figure 1

Name: Return this sheet with your answer book

MC68000 MPU