You are on page 1of 7
§ UCSI University FACULTY OF ENGINEERING FINAL EXAMINATION Student ID (in Figures) # Student 1D (in Words) Course Code & Name : EE308 / BE317 Microprocessor Systems Semester : May - Aug 2018 Instructor/Examiner/Lecturer : Mr. Manickam Ramasamy Duration 23 hours INSTRUCTIONS TO CANDIDATES: Five (6) questions set. Attempt ALL questions. (100 marks) ‘This question paper consists of 6 pages, excluding the cover page. Answers to the questions are to be written in the answer booklet. Candidates are not allowed to bring into the Examination Hall textbooks, lecture notes, files or any unauthorized materials except writing equipment and scientific calculator. Electro lictionaries are strictly prol d. This question paper must be submitted along with all used and/or unused rough papers and/or graph papers (if any). Candidates are NOT allowed to take any examination materials out of the examination hall. Warning: ‘The University Examination Board of UCSI University regards cheating as a most serious offence and will not hesitate to mete out the appropriate punitive actions according to the severity of the offence committed, and in accordance with the clauses stipulated in the Students’ Handbook, up to and including expulsion from UCST University. MayrAug 2018 Final Examination FE308/EE317 Microprocessor Systems Qi @ b) Q A 16F877A microcontroller is to be used as the basis of a weather station to measure temperature, light, pressure and humidity. LCD is to be used to display the measurements. All the sensors used are of analog type. Construct a goneral layout of the required system with the aid of the pin out shown in Figure Qi(). Faas aczwor fio—> roswcK bo-2 acsso0 = nows01500 >> ROUrSrs >> roarsee Fc ivriosvecr? <= Rozecr! Reascwsct +> ‘ROOPSPO =r} AOUPSPI = Figure Ql(a) Justify the selection of ports to interface the sensors, and LCD to 16F877A you have constructed for QI(a). (10 marks) neti cf woh rereco naOnND =e ils nearee avant ips ms ramomercvme U4 aps nse AMANO Hers == asa arcu acroentesouT == Shs me sagawsseoour =o]? fs Bt EONS = apa sow evimAn =—= ef vo ineatean? =~ apo vs VOD —» B woh+ Aoziese7 vs—tdie & ah-— nowrere oscraw—sqi3 & BAz—~ Aarars oscacwo=—es 2 arfjae mDsrcre 2 aI a 2 2 (10 marks) You have been asked to develop a PIC MCU assembly-level program for controlling a hot air radiator, When the water is warm the fan will blow the warm air into the room. The heater and fan are controlled by 3 temperature sensors: a room temperature sensor, a boiler water temperature sensor and a safety overheating sensor. The truth table for the system is shown in Table Q2, where a (1) means hot and a (0) means cold for the sensors. Table Q2 Inputs Be ~ Outputs Room Sensor | Water Temp | Overheat Heater Fan Sensor Sensor 0 0 0 1 0 0 0 U 0 net 0 1 EEO: 1 1 0 H T 0 1 I Oo” pore 0 | 0 I 0 T 0 I i i 0 0 0 Heer [Eee i im) T Page 1 of 6 May-Aug 2018 Final Examination EE308/EE3IT Microprocessor Systems, (a) Construct a flowchart to demonstrate the operation of such a system? (10 marks) (6) Design an assembly language program to implement this system. (10 marks) 3. Asstepper motors interfaced to 16F877A as shown in Figure Q3. The sequence of signals required to rotate the stepper motor is shown in Table Q3. (a) Sketch a flow chart and write a C program to rotate the stepper motor clockwise ten times and counterclockwise ten times continuously. (10 marks) (6) Construct a C-program to implement this. _(10 marks) Figure Q3 Table Q3 _b2 Function Ma MS Ma Mi 0 1 i 0 Clockwise 0 i HHO 1 1 0 0 1 1 0 L 0 i 0 i o Counter 1 0 0 1 Clockwise o 1 0 1 0 1 1 oI Page 2 of 6

You might also like