Data Communications - Microprocessor Systems - Exam, Exams of Microprocessors

Main points of this exam paper are: Data Communications, Component Parts, Digital Computer, Mention Briefly, Function, Cross Assembler, Resident Assembler, Complement Binary Number, Block Diagram, Parallel Input

Typology: Exams

2012/2013

Uploaded on 04/13/2013

kajol-ajay
kajol-ajay 🇮🇳

4.9

(7)

90 documents

1 / 8

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Cork Institute of Technology
Higher Certificate in Engineering in Electronic Engineering – Award
(National Certificate in Engineering in Electronic Engineering – Award)
(NFQ - Level 6)
Autumn 2005
Microprocessor Systems
(Time: 3 Hours)
Answer Question 1 [40 marks] and any three
other questions [each 20 marks]
Maximum available marks is 100
Examiners: Mr. J.J. O’Sullivan
Mr. J. Berry
Dr. R. Ó Dúbhghaill
Q1 (a) Name the main component parts of a digital computer and mention briefly the
function of each.
(b) What is an assembler? Explain briefly the difference between a resident assembler
and a cross assembler.
(c) If a memory chip has pins labelled D0 - D3 and A0 - A10, determine the capacity
of this chip - show all working.
(d) The value 111010102 is an 8-bit two’s complement binary number.
Is this value positive or negative? - explain.
Express this value in decimal - show all working.
(e) Before the instructions below are carried out, a block of memory is displayed as
400500: 0000 0000 0000 0000 0000 0000 0000 0000
Rewrite this block, when all of the instructions below have been executed.
i)
MOVE.W #$AAAA,$400502
ii)
MOVE.L #$45678A,$40050A
iii)
MOVE.B #$55,$400507
(f) Using one sentence in each case, explain the effect on the Z, N, C and V flags of the
instruction SUB.W D0,D1, if D0.W = $4321 and D1.W = $1234
(g) Draw a simple block diagram showing the registers you would expect to find in a
single-port parallel input/output chip. State the function of each register.
(h) If D0.W = $1234 and D1.W = $8765, explain fully whether or not a branch to
LABEL will occur in the program segment below.
CMP.W D1,D0
BGE LABEL
pf3
pf4
pf5
pf8

Partial preview of the text

Download Data Communications - Microprocessor Systems - Exam and more Exams Microprocessors in PDF only on Docsity!

Cork Institute of Technology

Higher Certificate in Engineering in Electronic Engineering – Award

(National Certificate in Engineering in Electronic Engineering – Award)

(NFQ - Level 6)

Autumn 2005

Microprocessor Systems

(Time: 3 Hours)

Answer Question 1 [40 marks] and any three other questions [each 20 marks] Maximum available marks is 100

Examiners: Mr. J.J. O’Sullivan Mr. J. Berry Dr. R. Ó Dúbhghaill

Q1 (a) Name the main component parts of a digital computer and mention briefly the function of each. (b) What is an assembler? Explain briefly the difference between a resident assembler and a cross assembler. (c) If a memory chip has pins labelled D0 - D3 and A0 - A10, determine the capacity of this chip - show all working. (d) The value 11101010 2 is an 8-bit two’s complement binary number. Is this value positive or negative? - explain. Express this value in decimal - show all working. (e) Before the instructions below are carried out, a block of memory is displayed as 400500: 0000 0000 0000 0000 0000 0000 0000 0000 Rewrite this block, when all of the instructions below have been executed. i) MOVE.W #$AAAA,$ ii) MOVE.L #$45678A,$40050A iii) MOVE.B #$55,$ (f) Using one sentence in each case, explain the effect on the Z, N, C and V flags of the instruction SUB.W D0,D1, if D0.W = $4321 and D1.W = $ (g) Draw a simple block diagram showing the registers you would expect to find in a single-port parallel input/output chip. State the function of each register. (h) If D0.W = $1234 and D1.W = $8765, explain fully whether or not a branch to LABEL will occur in the program segment below. CMP.W D1,D BGE LABEL

(i) Explain clearly the functions performed by the address bus and data bus in a computer. What is the significance of the address bus being increased from 16 to 24 lines. (j) What is wrong with the time delay routine below? What change should be made to it? LOOP MOVE.L #1000000,D SUB.L #1,D BNE LOOP RTS [4 marks each - total 40 marks]

Q2 (a) Carefully label the blocks in the diagram of the MC68000, Figure 1 on the Return Sheet , and describe the function of each block. [10 marks] (b) Explain why a stack is needed in a computer, and describe how the stack is controlled in a 68000-based system. [4 marks] (c) Describe fully the sequence of activity that takes place when the instruction below is encountered in a program, paying particular attention to the effect on the stack. 400400: 4EB900400A00 JSR $400A 400406: ... [6 marks]

Q3 (a) Below are three pairs of similar looking instructions. In each case, explain the difference between the instructions shown. Assume register A0 holds the value $400500 prior to any instruction being carried out. (i) (^) MOVE.W A0,D MOVE.W (A0),D (ii) MOVE.W -(A0),D MOVE.W -2(A0),D (iii) MOVE.W $400500,D MOVE.W #400500,D0 [9 marks] (b) When we refer to an MPU, what do we mean by the term flag? [1 mark] (c) With the aid of the 68000 instruction set supplied, complete the before-and-after table, Figure 2 on the Return Sheet accompanying this paper. [10 marks]

Q6 (a) Explain briefly why in a 68000-based system, it is usual to find two memory chips for each block of memory required. Describe how data is stored in this system. [4 marks] (b) Figure 3 on the sheet accompanying this paper shows an outline diagram of two memory chips representing 64kBytes of RAM connected in a 68000-based computer. Fill in all the details on this diagram, identifying each block and designating all memory and control lines shown. Show any working associated with this task. [8 marks] (c) Explain what is meant by the term base address as applied to memory. Using a memory map and circuit diagram, show how the RAM in Figure 3 can be arranged to have a base address of $B00000. [5 marks] (d) Explain the function of the circuit represented by the small block in Figure 3, located between the MPU and the memory chips. [3 marks]