=========================preview======================
(COMP355)midterm-sol-2008.pdf
Back to COMP355 Login to download
======================================================
COMP 355 Embedded Systems Software
Spring Semester 2008
Midterm Examination

M:\courses\comp355\Others\ARM\SamekPart6Fig2.jpg
Date: 27 Mar. 2008 Time: 12:00 pm - 1:20 pm
Name:__SOLUTION_________ Student ID: ________________Email:____________________
Instructions
1. Please write your name, student ID and email address on this page.

2. Please answer all the questions within the space provided on the examination paper. You may use the back of the pages for your rough work.

3. This paper consists of 7 questions and 6 pages.

4. Please read each question very carefully and answer the questions carefully and clearly to the point. Make sure your answers are neatly written, legible and readable.

5. Show all the steps used in deriving your answer, wherever appropriate.




Question
Points
Score

1
10


2
10


3
10


4
10


5
20


6
20


7
20


Total
100






1. (10 points) KMB Inc. recently announced that all its air-conditioned buses now have sensors that fine-tune the inside temperature in response to the atmosphere outside. Identify and list the design constraints that the system designers need to consider while designing and deploying these sensors.



Answer:
1. power constraints
2. low cost
3. high reliability
4. small memory size
5. limited user interface
6. remote software upgradation



2. (10 points) Microplayer Inc. is developing a new small, portable streaming MP3 player with Wireless 802.11 access capabilities. Suggest a suitable CPU architecture that this system can adopt. What kinds of memory should be used in this system? Explain your choices in one or two sentences.



Answer:
CPU Architecture: Harvard architecture
Reasons for Choice: has to deal with streaming media where the same set of operations are being applied on a stream of data. DSP requirements better met with Harvard architecture.


Kinds of Memory: Flash memory (or ROM) and RAM

Reasons for Choice: flash memory (or ROM) to store the non-volatile programs, and RAM for storage during computation





3. (10 points) The Keil .Vision IDE for the 8051 microcontrollers is shown in the figure below:



The IDE runs on a Windows XP machine. Comment on the specific features that you expect the compiler, assembler, linker/locator to have. What do you think the IDE will generate?

Cross-compiler, Cross-Assembler, Linker and Locator all running on the development workstation. Generate code for 8051 microcontroller.
IDE generates Intel Hex file format output.





4. (10 points) All ARM processors have only two interrupt pins (IRQ and FIQ (fast interrupt request)). How do you think we can interface multiple I/O devices with the ARM processor?



Answer: Use a interrupt controller to interface the multiple I/O devices. An example:










5. (20 po