Birla Institute of Technology & Science, Pilani Distance Learning Programmes Division Second Semester 2008-2009 Comprehensive Examination

(EC-2 Regular) Course No. Course Title Nature of Exam Weightage Duration Date of Exam Note:
1. 2. 3. 4.

: EEE ZG512 : EMBEDDED SYSTEM DESIGN : Open Book : 60% : 3 Hours : 04/04/2009 (FN)

No. of Pages =2 No. of Questions = 5

Please follow all the Instructions to Candidates given on the cover page of the answer book. All parts of a question should be answered consecutively. Each answer should start from a fresh page. Mobile phones and computers of any kind should not be used inside the examination hall. Use of any unfair means will result in severe disciplinary action.


What do you understand by periodic interrupts? Using the output compare feature of 9S12C32 Timers, write a program to generate periodic interrupts. The frequency of the interrupts should be 4 KHz on output compare channel 4. [8] Devise the control words and pseudo codes for receiving ASCII characters at 5 KHz baud with even parity using SCI of the 9S12C32 microcontroller. Assume the clock frequency to be 4 MHz. [8] Write assembly program to convert 10 ASCII uppercase characters stored from UPPER to its equivalent lowercase characters and store them from location SMALL. [10] The condition of the following pins of MC9S12C32 after reset is BKGD=1; MODB=0; MODA=0. 4.1. 4.2. What will be the mode in which MC9S12C32 is functioning? If the mode is to be changed to Normal Expanded Wide with a memory map as shown below: ; Just before the (2K boundary space) the unchanged space of EEPROM ; $0800 to the allowed space (2K) ; unchanged





RAM EEPROM (i) (ii) (iii)

List what registers have to be programmed? What will be the contents of the registers? What will be the resultant memory map?

[2 + 4 + 2 = 8]

EEE ZG512 (EC-2 Regular)

Page 1 of 2

the centralized system transmits the product type to the packaging plant. Maintenance of optimum temperature inside the packaging plant should be the crux of design. 5. Only the centralized embedded system decides the type of package and the time of packaging a particular product.5 An embedded system for a packaging plant in an industry has to be designed which is controlled by a centralized embedded system (the centralized system need not be designed). When a product changes.2. The temperature sensors give an analog output ranging from 0V to 4. 5. 5. The frequency of the input waveform to the driving circuitry of motor should 5 KHz with 85% duty cycle. The speed of the fan is dependent upon the room temperature. At each corner of the packaging room four large fans are provided to control the temperature. Give the complete block diagram showing all the internal modules that you are going to use. The bandwidth of the wireless channel is 2 kbps.EEE ZG512 (EC-2 Regular) Second Semester 2008-2009 Page 2 Q.1. 5.5V depending upon the temperature in the room. The requirements of the packaging plant system are listed below: The packaging plant is situated in a remote area of the industrial complex The central embedded system and the packaging plant embedded system communicate only via wireless means. State the purpose and justify the choice of various units you have selected. [26] ********* EEE ZG512 (EC-2 Regular) Page 2 of 2 . The temperature in the room should be sampled every 10 second and sent to the central system after calculating its average. The industrial complex is automated in a distributed manner due to the large number of products. When the temperature increases the speed of the fan increases accordingly and viceversa.3. List the various units of 9S12C32 that will be used for controlling the packaging plant. The average temperature should also be displayed on a two digit seven segment LED inside the room. The temperature monitoring requires use of five (5) different temperature sensors placed at different locations in the packaging room. Specify the register details used by each unit and the modes configured if any.4.