[試題] 101上 薛智文 嵌入式作業系統實作 期中考

作者: rod24574575 (天然呆)   2015-04-28 19:26:47
課程名稱︰嵌入式作業系統實作
課程性質︰選修
課程教師︰薛智文
開課學院:電資學院
開課系所︰資工所、網媒所
考試日期(年月日)︰2012.11.07 公布考題, 2012.11.07 結束前(11:59pm)繳交
考試時限(分鐘):
試題 :
This is a take-home exam. Please do answer with your OWN SUCCINCT words after
each question (keep the question) in this file in totally 4 pages of the same
text font. Use other file format with the same look if you don't use MS words.
You can answer in Chinese or English. Please send this file back to
r98922007@csie.ntu.edu.tw with a new filename of your ID by 11:59PM, Nov 7th.
We will decide your time slot for presentation in next class at 105 where the
earlier one with receive time of the last submission of this midterm in your
group has higher priority. Send you lab reports to the same email address above
by next class. Have fun.
1. Suppose we would like to write a stopwatch application for Creator PXA270.
However, it needs to support variable precision range from one millisecond
to one second. Given the kernel driver as Lab 2 that can display four
decimal digits on the 4-digit 7-segment LED with a decimal point and some
keypad buttons, please describe how to extend the driver to implement the
stopwatch. Your solution should be backward compatible, extendable, and as
compact as possible. [20%]
2. If we would like to port the driver given in problem 1 to μC/OS-II for
Creator PXA270, what should be done? [20%]
3. A boot loader is a computer program that initializes the hardware platform
and loads the operating system. However, it sometime might be desired to
start the OS without using a boot loader for compact systems such as μC/OS.
Please describe what should be done in the startup function of μC/OS-III
when the kernel image resides in a NOR flash and is expected to be executed
as in main memory directly without loading. Please elaborate on the
advantages and disadvantages of these two approaches, too.
Hint: relocation … [30%]
4. Please describe how to initialize the serial port (UART) of Creator PXA270
with baud rate equal to 115200bps. How can we implement a print function
displaying strings on the serial console in μC/OSIII? Please elaborate on
your solution. [30%]

Links booklink

Contact Us: admin [ a t ] ucptt.com