Docsity

RAM - Microprocessor Systems - Exam, Exams of Microprocessors

Toggle sidebar
bg1
CORK INSTITUTE OF TECHNOLOGY
INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ
Autumn Examinations 2010/11
Module Title: Microprocessor Systems 2
Module Code: ELTR6017
School: Electrical and Electronic Engineering
Programme Title: Bachelor of Engineering in Electronic Engineering
Programme Code: EELES_8_Y2 EELXE_7_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: Autumn 2011
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 RAM - Microprocessor Systems - Exam and more Exams Microprocessors in PDF only on Docsity!

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Autumn Examinations 2010/

Module Title: Microprocessor Systems 2

Module Code: ELTR

School: Electrical and Electronic Engineering

Programme Title: Bachelor of Engineering in Electronic Engineering

Programme Code: EELES_8_Y2 EELXE_7_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: Autumn 2011

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 your own words, briefly explain what is meant by asynchronous serial data transmission. [2 marks]

(b) On calibrated x-y axes, draw a timing diagram to show how the ASCII character “m”, ($6D), would be transmitted at a rate of 100 kbps using the above method of transmission. [6 marks]

(c) In the Flight-68K microcomputer that we worked on during the course, asynchronous communications was facilitated by an MC68681 DUART chip as shown in Figure 1 on the Return Sheet attached to this paper. Explain what is meant by the term DUART and describe the function of all lines on the input/output side of the DUART device shown in Figure 1. [4 marks]

(d) Complete the connections between the MPU and the DUART in Figure 1 so that the device appears to occupy a block of odd addresses in memory and include the Return Sheet with your script at the end of the exam. [4 marks]

(e) Write the simplest possible subroutine to input into the MPU a single character from channel A of the DUART as it is connected in the Flight-68K. The relevant technical details from the Flight-68K manual are given in Table 1. [4 marks]

DUART base address: $A Port A status register offset: 02 Port A buffer register offset: 06

Port A Status Register

Table 1

Break Frame Parity Overrun TxEMT TxRDY FFULL RxRDY

7 6 5 4 3 2 1 0 SRA

Q4 (a) Draw a circuit diagram of the simplest possible non-programmable 8-line parallel output port and briefly describe the action of this circuit to output data to peripherals. [8 marks]

(b) In what way does this circuit differ from the parallel output ports that we used to interface switches and LEDs to the Flight-68K system in the lab? [2 marks]

(c) Show how two LEDs could be connected to the output port in (a) above, a red LED to line 0 and a green LED to line 7. [4 marks]

(d) Assuming that the output port to which the LEDs in (c) are connected is positioned at address $800001 in a 68000-based microcomputer, write a simple program segment in assembly language to continuously flash the red and green LEDs alternately at a rate of 1 Hz. You may find the following piece of code helpful for this task – if you use it, comment each instruction fully. [6 marks]

XXX MOVE.L #153846,D YYY SUB.L #1,D BNE YYY RTS

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Autumn Examinations 2010/

Module Title: Microprocessor Systems 2

Return Sheet

Question 1

A1 – A

D0 - D

LDS

AS

DTACK

R/W

RESET

D0 - D

DTACK

R/W

RESET

RS1 – RS

CS MC MPU (^) X X

MC DUART

RxDB

TxDB

RxDA

TxDA

CTSA

RTSA

CTSB

RTSB

UDS

Addressdecoder

Figure 1

Name: Return this sheet with your answer book