Docsity

Autumn Examinations 2010 for Microprocessor Systems 2 at Cork Institute of Technology, Exams of Microprocessors

Toggle sidebar
bg1
CORK INSTITUTE OF TECHNOLOGY
INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ
Autumn Examinations 2009/10
Module Title: Microprocessor Systems 2
Module Code: ELTR6017
School: Electrical and Electronic Engineering
Programme Title: Bachelor of Engineering in Electronic Engineering
Programme Code: CR_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: Autumn 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 answers in a neat and tidy fashion
Start each question on a new page
Remember that there is plenty of time – two hours to do three questions
pf3
pf4
pf5

Partial preview of the text

Download Autumn Examinations 2010 for Microprocessor Systems 2 at Cork Institute of Technology and more Exams Microprocessors in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Autumn Examinations 2009/

Module Title: Microprocessor Systems 2

Module Code: ELTR

School: Electrical and Electronic Engineering

Programme Title: Bachelor of Engineering in Electronic Engineering

Programme Code: CR_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: Autumn 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 answers in a neat and tidy fashion Start each question on a new page Remember that there is plenty of time – two hours to do three questions

Q1 (a) In computer programs, briefly explain what is meant by a subroutine. [2 marks]

(b) To facilitate subroutines, a stack is essential. With reference to a 68000-based computer, describe how the stack operates and how it is controlled. Use a diagram to illustrate your answer. [6 marks]

(c) Why is the stack in a 68000-based computer suitable for nested subroutines? [2 marks]

(d) With the help of the accompanying instruction set, write a subroutine that will square any small16-bit value held in a data register and return the 16-bit result in another data register – you may use successive addition for the computation. [6 marks]

(e) Write a segment of main program in conjunction with the above subroutine to get the 16-bit value from memory and print out the result on the VDU using system subroutine PRWRD. [4 marks]

Q2 (a) In a 68000-based computer, state the function of the following control lines

associated with the main memory and identify and explain how one on them is used for asynchronous bus control.

AS UDS LDS R / W DTACK [5 marks]

(b) Draw a detailed circuit diagram to show how two 8 kByte byte-organised chips would be connected in a 68000-based computer to implement a 16 kByte block of slow RAM, paying particular attention to all of the above control lines. [10 marks]

(c) With the aid of an addressing map and decoder circuit, show how the block of RAM could be positioned in memory with a base address of $ABC000. [5 marks]

Q3 (a) With the aid of a simple timing diagram, explain the basic principles of asynchronous serial data communications. [4 marks]

(b) Figure 1 on page 3 shows how an MC68681 DUART could be connected to a MC68000 MPU. Analyse this diagram and answer the following questions: i) identify and state the overall function of the 68681 chip ii) describe briefly the function of all lines on the right hand side of this chip iii) what is the purpose of address lines A1 – A4 connected to this chip? iv) what logic function is performed by the NAND gate in the centre? v) what is the purpose of the component connected to X1 and X2? vi) is the 68681 an 8-bit or 16-bit device? - explain [8 marks]

(c) Figure 2 on page 3 includes a listing of a subroutine, GETCH, and associated technical data, written for the 68681 chip on the Flight68K system. Identify the overall function performed by this subroutine, and in the context of the overall function, explain the purpose of each line of the subroutine. [8 marks]

Q4 (a) Draw a diagram showing the internal structure of a simplified programmable parallel input/output chip capable of supporting a single 8-line parallel port and state the function of each section within the device. [5 marks]

(b) Explain how the port lines of the above device could be configured so that four of them act as inputs and four as outputs – give an example of an instruction that would facilitate this arrangement. [5 marks]

(c) Draw a diagram to show how four switches and four LEDs could be interfaced to the above port to allow for the input and output of binary data. [5 marks]

(d) Assuming the above port is located at address $800001 in a 68000-based computer, write a program segment with full comments that will light all four LEDs and leave them on until any one of the switches is pressed, at which point they are all switched off – omit any configuration instructions. [5 marks]