Docsity

Winter 2010 Exam: Microprocessor Systems & Two's Complement, Exams of Microprocessors

Toggle sidebar
bg1
CORK INSTITUTE OF TECHNOLOGY
INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ
Semester 1 Examinations 2010/11
Module Title: Microprocessor Systems 1
Module Code: ELTR6016
School: Electrical and Electronic Engineering
Programme Title: Bachelor of Engineering in Electronic Engineering
Programme Code: CR_EELXE_7_Y2 CR_EELES_Y2
External Examiner(s): Dr A Donnellan
Mr I Kennedy
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: Winter 2010
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
pf5

Partial preview of the text

Download Winter 2010 Exam: Microprocessor Systems & Two's Complement and more Exams Microprocessors in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Semester 1 Examinations 2010/

Module Title: Microprocessor Systems 1

Module Code: ELTR

School: Electrical and Electronic Engineering

Programme Title: Bachelor of Engineering in Electronic Engineering

Programme Code: CR_EELXE_7_Y2 CR_EELES_Y

External Examiner(s): Dr A Donnellan

Mr I Kennedy

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: Winter 2010

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. What is meant by the system bus and state the function it performs in a microcomputer? [5 marks]

(b) Explain what is meant by the two’s complement of a binary number. Rank in order of magnitude the following 16-bit two’s complement values: F2C4 5ED8 9D10 0000 1C4F B2A Express the smallest of these values as a 24-bit hex number. [5 marks]

(c) Using one sentence in each case state the function of the N, Z, V and C flags in the 68000 MPU. Which of these flags are used to process unsigned numbers – briefly explain your answer. [5 marks]

(d) In your own words, explain how the CMP instruction works and the advantage of using this instruction in programs. [2 marks]

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

Q2 (a) What is the difference between a high-level and 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 $400A00 and if it is found to be less than 35,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 2010/

Module Title: Microprocessor Systems 1

RETURN SHEET

Figure 1

Name: Return this sheet with your answer book

MC68000 MPU