Docsity

Microprocessor Systems 2 Examination Paper - Cork Institute of Technology, 2011/12, Exams of Microprocessors

Toggle sidebar
bg1
CORK INSTITUTE OF TECHNOLOGY
INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ
Semester 2 Examinations 2011/12
Module Title: Microprocessor Systems 2
Module Code: ELTR6017
School: Mechanical, Electrical and Process Engineering
Programme Title: Bachelor of Engineering in Electronic Engineering
Programme Code: EELXE_7_Y2 , EELES_8_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 return the before-and-after sheet with your answer book.
Duration: Two hours
Sitting: Summer 2012
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
pf8

Partial preview of the text

Download Microprocessor Systems 2 Examination Paper - Cork Institute of Technology, 2011/12 and more Exams Microprocessors in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Semester 2 Examinations 2011/

Module Title: Microprocessor Systems 2

Module Code: ELTR

School: Mechanical, Electrical and Process Engineering

Programme Title: Bachelor of Engineering in Electronic Engineering

Programme Code: EELXE_7_Y2 , EELES_8_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 return the before-and-after sheet with your answer book.

Duration: Two hours

Sitting: Summer 2012

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 a 68000-based computer, briefly state the function of the following bus control lines associated with the main memory. One of these lines is used to provide asynchronous bus control - identify and explain its action.

AS UDS LDS R / W DTACK^ [5 marks]

(b) Figure 1 below shows the pinout diagram of the AS7C1026C high-speed SRAM memory chip, © Alliance Memory. Identify and outline the function of all pins or groups of pins on this chip. [4 marks]

(c) What is the storage capacity in bytes of the AS7C1026C chip? Show all calculations. [3 marks]

(d) Draw a schematic diagram to show how the AS7C1026C could be connected in a 68000-based computer paying particular attention to the connections to the control lines in (a) above. [5 marks]

(e) Use a memory map to show how the AS7C1026C could be positioned in memory with a base address of $400000. [3 marks]

I/O2 9 36 I/O

I/O1 8 37 I/O

I/O0 7 38 I/O

CE 6 39 LB

A0 5 40 UB

A1 4 41 NC

A2 3 42 A

A3 2 43 A

A4 1 44 A

I/O5 14

I/O4 13

GND 12

Vcc 11

I/O3 10

31 I/O

32 I/O

33 Vcc

34 GND

35 I/O

NC = No Connection

NC 22 23 NC

A12 21 24 A

A13 20 25 A

A14 19 26 A

A15 18 27 A

WE 17 28 NC

I/O7 16 29 I/O

I/O6 15 30 I/O

AS7C1026C

Figure 1

Q3 (a) Briefly explain what is meant by a subroutine and identify three advantages of using subroutines in a program. Mention one disadvantage associated with subroutines. [4 marks]

(b) Explain the role the stack plays in supporting subroutines. In your answer, refer to where the stack is found in a computer, what addressing modes are associated with the stack, the terms push and pull/pop and the action of the stack pointer. [4 marks]

(c) During the module we used the following subroutine to generate a delay in software on the Flight-68K system. Assuming the Flight-68K operates with a master clock of 8 MHz and the number of MPU cycles for the instructions used are as follows: MOVE.L = 12, SUB.L = 16, BNE = 10, RTS = 20, determine the overall length of the delay generated.

DELAY MOVE.L #25000,D LOOP SUB.L #1,D BNE LOOP RTS [4 marks]

(d) Complete the before-and-after table on the Return Sheet accompanying this paper. [8 marks]

Q4 (a) In your own words, briefly explain what is meant by asynchronous serial data transmission. [2 marks]

(b) Draw a simplified block diagram showing the internal structure of a UART device. Describe how the device is used to output a character in serial form. [6 marks]

(c) Figure 3 on page 5 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]

(d) Table 1 on page 5 shows a subroutine called OUTCH to output a character via Port A of the DUART in the Flight-68K. In relation to the overall task being performed, explain the function of each line of code. [4 marks]

A1 – A

D0 - D

LDS

AS

DTACK

R/W

RESET

D0 – D

D0 - D

DTACK

R/W

RESET

A5 - A23 A1 - A RS1 – RS

CS MC MPU

Addressdecoder

X X

MC DUART

SEN

IP0 – IP

OP0 – OP

RXDB

TXDB

RXDA

TxDA

D0 - D

Figure 3

Subroutine

OUTCH MOVEA.L #$A00001,A WAIT MOVE.B 2(A0),D LSR.B #3,D BCC WAIT MOVE.B D0,6(A0) RTS

Technical Information

DUART base address: $A Port A status register: $A Port A Rx buffer register: $A

Port A Status Register

Table 1

Break Frame Parity Overrun TxEMT TxRDY FFULL RxRDY

7 6 5 4 3 2 1 0 SRA