



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The instructions and questions for the microprocessor systems 1 examination held at cork institute of technology during winter 2010. The examination is for the bachelor of engineering in electronic engineering program and covers topics such as microprocessors, two's complement, flags in the 68000 mpu, and programming tasks. Students are expected to attempt any three questions within the given duration and format.
Typology: Exams
1 / 7
This page cannot be seen from the preview
Don't miss anything!




Semester 1 Examinations 2010/
Module Code: ELTR
School: Electrical and Electronic Engineering
Programme Title: Bachelor of Engineering in Electronic Engineering
Programme Code: CR_EELXE_7_Y2 CR_EELES_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 include the Return Sheet with your answer book.
Duration: Two hours
Sitting: Winter 2010
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 material in a neat and tidy fashion. Start each question on a new page. Remember that there is plenty of time – two hours for three questions.
(v) the part of the MPU holding instruction microprograms (vi) the part of the MPU holding the address of the current operand (vii) the output of the MPU used to select different memory locations (viii) the part of the MPU where numerical calculations are performed [4 marks]
(c) Examine the following line of code and identify each item shown: 00400400 0C4005DC CMP.W #1500,D0 [3 marks]
(d) Making reference to the block diagram in (a), describe in your own words, how the instruction in (c) would be fully processed by the MPU. [8 marks]
Q4 (a) What is meant by the term addressing mode in relation to machine instructions? Identify the addressing modes used in the following instructions: MOVE.W $400500,D MOVE.W #$7D3E,(A0) [5 marks]
(b) What is the significance of the asterisks (*) marks in the twelve columns headed #, Dn, An, ........ d(PC,Ri) on the instruction set? [1 mark]
(c) Describe in full detail the operation specified by the following instruction MOVE.W (A0),D0 [3 marks]
(d) When writing computer programs, logical errors and syntax errors can occur. Briefly explain the difference between each of these [2 marks]
(e) The program segment in Table 1 below was intended as a routine to fill a 500-word block of memory starting at address $400A00 with the data pattern 101010.... Unfortunately the programmer, not having attended all his labs, made an error in each line of the program. Identify each error and indicate whether it was a logical error or a syntax error. [9 marks]
MOVEA.L $400A00,A0 Set start addrs MOVE.W #$5555,D1 Set data pattern MOVE.W #$500,D0 Set block length FLNEX MOVE.W D0,(A0)+ Fill indexed loc SUB.W #1.D0 Block all full? BNE FLNXT No, fill next loc TRAP $11 Yes, done
Table 1
Semester 1 Examinations 2010/
Figure 1
Name: Return this sheet with your answer book
MC68000 MPU