ES Final Jan10 PDF
ES Final Jan10 PDF
ES Final Jan10 PDF
Name:
Faculty of Engineering St. Number:
Computer Engineering Department
Final Exam, First Semester 2009/2010
Course Title: Embedded Systems Design Date: 26/1/2010
Course No: 0630470 Time Allowed: 2 hours
Instructor: Prof. Kasim Al-Aubidy No. of Pages: 6
Instructions:
- Write your name and number on each page of the exam.
- Consider the PIC 16F84 Microcontroller running from 8 MHz crystal frequency.
- Use the free space after each assignment for your answer.
- Write your answer readable in English.
Question 1: [25%]
Objectives: Basic concepts of Embedded Systems.
[C]. The Harvard structure gives some clear advantages over conventional von Neumann
structure. Can you think of any disadvantages? Show that with the help of diagrams?
Harvard Structure von Neumann structure
Diagram
Advantage
Disadvantage
[A]. Three microcontrollers (A, B & C) have maximum clock speeds 10MHz, 20MHz,
24MHz respectively. Microcontroller A divides its clock by 4 to give one machine
cycle, microcontroller B by 8, and microcontroller C by 12. Microcontrollers A &
C take 2 machine cycles to perform an instruction, while microcontroller B takes
three cycles.
Place the microcontrollers in order of the speed in which they can perform that
instruction?
2. An interrupt occurs, and the INTCON register is found to have changed to A9H,
which interrupt source has called?
3. Which bit must the designer change before the end of the ISR, and why?
[C]. A small embedded system has an 8-bit microcontroller requires a regular interrupt
every 128 µs.
1. Show how this requirement can be achieved to the best accuracy possible?
7 6 5 4 3 2 1 0
OPTION Reg
INTCON Reg
2. How should the requirement be met if the interrupt is to occur every 500 µs?
7 6 5 4 3 2 1 0
OPTION Reg
INTCON Reg
TMR0 Reg
[C]. Outline the procedures of installing a program in the PIC microcontroller during
your project design?
[A]. The counter/timer of the microcontroller is used to measure the speed of an object
falling through a column of water. When the object passes an upper sensor the
controller starts the counter from zero. When it passes the lower sensor, it stops the
counter and reads its value. The microcontroller is clocked from a 1.024 MHz
crystal oscillator, and the counter is required to increment every 1 ms. How should
be the OPTION register be set?