Docsity

Cross-assembler - Computer Engineering - Exam, Exams of Computer Science

Toggle sidebar
bg1
Cork Institute of Technology
Bachelor of Engineering in Electronic Engineering – Award
(NFQ - Level 7)
Summer 2006
Computer Engineering
(Time: 3 Hours)
Answer two questions from each section.
All questions carry equal marks.
Examiners: Mr. J. O’Driscoll
Mr. F. O’Reilly
Mr. J. Berry
Dr. R. Ó Dubhghaill
Section A
1. (a) Using the data in Figure 1, show the operation of the following 68000
assembly program: [9 marks]
MOVE.W (A1),D1
SWAP D1
EXG D1,D3
MOVE.L D3,D7
Show the contents of the affected registers and the status register flags.
Figure 1
pf3
pf4
pf5

Partial preview of the text

Download Cross-assembler - Computer Engineering - Exam and more Exams Computer Science in PDF only on Docsity!

Cork Institute of Technology

Bachelor of Engineering in Electronic Engineering – Award

(NFQ - Level 7)

Summer 2006

Computer Engineering

(Time: 3 Hours)

Answer two questions from each section. All questions carry equal marks.

Examiners: Mr. J. O’Driscoll Mr. F. O’Reilly Mr. J. Berry Dr. R. Ó Dubhghaill

Section A

  1. (a) Using the data in Figure 1, show the operation of the following 68000 assembly program: [9 marks] MOVE.W (A1),D SWAP D EXG D1,D MOVE.L D3,D Show the contents of the affected registers and the status register flags.

Figure 1

  1. (b) With the aid of a simple diagram, describe the difference between an assembler, and a cross-assembler. [6 marks] (c) In a digital signal processing application, the following software is written as a subroutine: ADD.W #$0004,D0 ;add immediate data $4 to the ;word in D MULS D2,D0 ;multiply words in D2 and D ;with result in D SUBQ.L #$08,D0 ;subtract quick data 8 from ;the long word in D DIVU D1,D0 ;divide long word in D0 with ;word in D RTS ;return from subroutine

If the initial values are as follows: D0 = $12340678 D1 = $00000006 D2 = $ SR = $0405 = 0000 0100 0000 0101 X NZVC What are the values of the affected registers and the SR at the end of the subroutine? [10 marks]

  1. (a) With the aid of a diagram, describe a typical software development process. [6 marks]

(b) In an assembly language source program, briefly explain the following terms: [6 marks] (i) symbol (ii) label (iii) EQU directive (c) The MC68000 handles the reset exception in a different way to that of all other exceptions. List the main differences between the two types. [3 marks] (d) Figure 2 shows a diagram of the MC68000 interrupt structure. (^) Describe how the microprocessor responds to the occurrence of an interrupt. [6 marks] List the sequence of steps that are executed by the microprocessor in servicing the interrupt. [4 marks]

Section B

  1. (a) The PIC 16c74 arranges its memory into two register banks. What advantages/disadvantages does this have? How do you control which register bank is addressed/selected at any time? [5 marks]

(b) Derive and explain the following formula based on the Clock Speed and Time, which can be used to calculate the pre-load values for Timer1. How can this be changed to suit Timer2? [8 marks] Pre-load Value (Using Internal Clock)

= (^1000) (hex) − Time * FOSC Prescalar * 4

(c) Write a PIC assembly language program for the 16c74 micro-controller, which continually reads in an analogue voltage from 0 -> 5V on RA0 and outputs it in binary format on PORTB. [12 marks]

  1. (a) Describe how a LCD Display unit can be connected to a PIC micro- controller and used to display text. Describe the input signals necessary for the LCD unit and how the PIC can supply these. Provide some sample code to show how the LCD control can be done. [8 marks]

(b) Describe the structure and individual sections of a typical Serial Data Unit (SDU) as used in an Asynchronous Serial communication. For a serial communication needing to transmit 1600 bytes, with even parity, what is the overall SDU length and what bit rate per second would be needed if this quantity of data would need to be transmitted every two seconds. [8 marks]

(c) Show the wiring necessary for a RS-232C data cable to connect together two DTEs connected in a Null Modem mode. Show the different wiring options for Hardware, Software and No handshaking. [9 marks]

  1. (a) For the PCI bus, describe its data width, clock speed and overall data transfer rate. Describe a typical data transfer and show using a timing diagram how this is co-ordinated with the clock. [6 mark

(b) With the aid of a diagram describe the layer model of Fibre Channel, explaining the function of each layer with examples. Describe three topologies for a fibre channel system. [10 marks]

(c) In the context of RAID systems, describe briefly the following, say what RAID level they correspond to and give any advantages/disadvantages: Disk Striping, Disk Mirroring and Independent Disks with Distributed Parity. [9 marks]

—oOo—