Distance Learning Programmes Division
Second Semester 2006-2007
Comprehensive Examination (EC-2 Regular)
Course No. : EEE ZG512
Course Title : EMBEDDED SYSTEM DESIGN
Nature of Exam : Open Book
Weightage : 60%
Duration : 3 Hours
Date of Exam : 31/03/2007 (FN)
1. Please follow all the Instructions to Candidates given on the cover page of the answer book. 2. All parts of a question should be answered consecutively. Each answer should start from a fresh page. 3. Mobile phones and computers of any kind should not be brought inside the examination hall. 4. Use of any unfair means will result in severe disciplinary action. Q.1 (a) While processing an interrupt for HS12 microcontroller, what will be the time taken to branch to the ISR, if the microcontroller is operating at 8 MHz?  Q.1 (b) Machine A is a non-pipelined machine, whereas machine B is a 4-stage pipeline machine. If the cycle time for both the machines is 12 nsec, what will be the MIPS for both machines? 
Q.1 (c) Assume the contents of the HC12 registers as below:
X = $0FFF, Y = $320E D = $0214 SP = $1FFF
Write instructions for each of the following
i. Copy the contents of register B into the memory location $3210 using accumulator offset indexed addressing mode
ii. Adds the contents of memory location $2005 with the A register using indexed addressing with auto increment/decrement addressing mode.
iii. Move a word from location $2000 to location $1000
iv. Convert the number in location $2000 into its two’s complement.  Q.2 The condition of the following pins of MC9S12C32 after reset is BKGD=1; MODB=0; MODA=0.
(a) What will be the mode in which MC9S12C32 is functioning? (b) If the mode is to be changed to Normal Expanded Wide with a memory map as shown below:
Registers ; $4000 to the allowed space (2K)
RAM ; Just after the new allocated space for Registers
EEPROM ; unchanged
(i) List what registers have to be programmed?...