Docsity

Memory Chips - Microprocessor Systems - Exam, Exams of Microprocessors

Toggle sidebar
bg1
Cork Institute of Technology
Higher Certificate in Engineering in Electronic Engineering – Award
(National Certificate in Engineering in Electronic Engineering – Award)
(NFQ - Level 6)
Summer 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) Draw a simple block diagram of a microcomputer and explain the function of each block.
(b) State how many bits there are in a byte, a word and a longword.
From the line of memory below, write down the following:
i) the word at $400504
ii) the byte at $40050D
iii) the longword at $400508
400500: 1234 DCBA 2233 AC57 BBDD 2468 1A2B F0E1
(c) What do you understand by the term addressing mode?
State the addressing mode of each operand in the instructions below.
i)
MOVE.W $400500,(A0)+
ii)
MOVE.W #$F0,$12(A0)
(d) Draw a diagram of an elementary parallel output port and explain the action of this circuit.
(e) With the aid of a timing diagram, show how the character A (ASCII $41), would be
transmitted as a 7-bit data word with even parity from a serial data port of a computer.
(f) Explain briefly how the CMP instruction works.
Two 8-bit numbers, P and Q, representing unsigned values, are stored in D0 and D1
respectively. Write a program segment to jump somewhere if Q is smaller than P.
(g) Draw a simplified block diagram of the internal structure of a single port UART chip, and
briefly explain the function of each block.
(h) Explain why the term RAM can sometimes be confusing when applied to computer
memory? If a block of RAM in a 68000-based computer extends from $400500 to
$400600 inclusive, how many bytes of data can be stored?
(i) What is meant by the term logic conflict as applied to a computer data bus?
With the aid of a diagram, describe a device which enables such conflict to be avoided.
pf3
pf4
pf5

Partial preview of the text

Download Memory Chips - 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)

Summer 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) Draw a simple block diagram of a microcomputer and explain the function of each block.

(b) State how many bits there are in a byte, a word and a longword. From the line of memory below, write down the following: i) the word at $ ii) the byte at $40050D iii) the longword at $ 400500: 1234 DCBA 2233 AC57 BBDD 2468 1A2B F0E (c) What do you understand by the term addressing mode? State the addressing mode of each operand in the instructions below. i) MOVE.W $400500,(A0)+ ii) MOVE.W #$F0,$12(A0) (d) Draw a diagram of an elementary parallel output port and explain the action of this circuit. (e) With the aid of a timing diagram, show how the character A (ASCII $41), would be transmitted as a 7-bit data word with even parity from a serial data port of a computer. (f) Explain briefly how the CMP instruction works. Two 8-bit numbers, P and Q , representing unsigned values, are stored in D0 and D respectively. Write a program segment to jump somewhere if Q is smaller than P. (g) Draw a simplified block diagram of the internal structure of a single port UART chip, and briefly explain the function of each block. (h) Explain why the term RAM can sometimes be confusing when applied to computer memory? If a block of RAM in a 68000-based computer extends from $400500 to $400600 inclusive, how many bytes of data can be stored? (i) What is meant by the term logic conflict as applied to a computer data bus? With the aid of a diagram, describe a device which enables such conflict to be avoided.

(j) How does a computer distinguish between signed and unsigned numbers? Write the following 8-bit signed numbers in order of magnitude: 12 FB 6A 94 00 C Write down the smallest of these in binary as a 16-bit value. [4 marks each - total 40 marks]

Q2 Figure 1 accompanying this paper shows a section of memory in a 68000-based computer. Carefully analyse this circuit and answer the following questions. In each case give reasons for your answer, and where appropriate, show any calculations or other relevant working. (a) Are the memory chips shown, RAM or ROM?. [1 mark] (b) Determine the capacity of each of the memory chips. [4 marks] (c) Why is address line A 0 missing from the MPU?^ [2 marks] (d) Using a truth table, explain what logic function is performed by the two 2-input NAND gates in the circuit. [2 marks] (e) Explain the purpose of the 9-input NAND gate on the lower right, to which address lines A 23 - A 16 are connected. [1 mark] (f) Using an addressing map, determine the range of addresses occupied by the pair of memory chips in the circuit. [3 marks] (g) Explain carefully the function of the delay circuit near the MPU [2 marks] (h) Describe the sequence of action that takes place when the MPU reads a word of data from this memory, paying particular attention to all control lines shown. [5 marks]

Q3 (a) Figure 2 accompanying this paper shows a block diagram of the MC68230 PI/T. What is the overall function performed by this device? Describe the function of each group of connections shown in the diagram. [5 marks] (b) Draw a diagram to show how the PI/T would be interfaced to the 68000 MPU. Briefly explain the main features of this set-up. [6 marks] (c) With the aid of a diagram, show how two push-to-make switches might be connected to PA0 and PA1 and two LEDs connected to PA6 and PA7. [4 marks] (d) Assuming the PI/T has already been configured, write a software routine in assembly language that will continually monitor the switches and will light up the PA6 LED only when both switches are pushed simultaneously. [5 marks]

MC68230 DATA Base Address: $800001 PADR offset: $