



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




(NFQ Level 7)
Answer THREE questions. All questions carry equal marks. Data sheets attached.
Examiners: Mr. F. O’Reilly Mr. D. Denieffe Dr. R. O Dubhghaill
Q1 (a) Compare and contrast microprocessors and micro-controllers. What advantages, disadvantages does each have? [8 marks]
(b) You will have a selection of micro-processors/micro-controllers available to you for a number of projects. For each of the following project application identify (i) Approximate number of Input & Outputs (ii) Estimate of speed/performance required. (iii) Complexity/Range of algorithms/programmes to execute. Applications: DVD Player Remote Control Unit Handheld Music Player such as an iPod/Zen General Purpose home computer Choose one of the following processors for each application saying why you think it is appropriate to the application (i) Low Power Motorola 68000 (20MHz), (ii) Microchip PIC 16c74 (4 MHz), (iii) AMD/Intel Pentium Clone (500 MHz), (iv) Analog Devices 8051(2MHz) compatible micro-controller. [16 marks]
(c) As a member of an 8-bit micro-processor design team, you are tasked to devise a scheme to vary the number of special registers from 200 (basic model) to 400(advanced model), while being restricted to using only 8 bits(max of 256) to describe which register is in use. Can you suggest a scheme to do this? Which micro-processors/micro-controller currently use such a technique? [10 marks] [Total: 34 marks]
Q2 (a) Embedded/Micro-computer applications often use interrupts to signal events. Explain what an interrupt is and using the PIC as an example what happens when an interrupt occurs in the PIC and how the interrupt should be handled. Explain what memory addresses are used, the different types of interrupts available and how they can be differentiated. Give an example of two interrupts that can occur. [12 marks ]
(b) Explain the operation of and configuration registers to operate Timer 2 in the PIC Micro-controllers. Name the registers used and describe the counting operation. What special features does Timer 2 have as against Timer 1? From first principles and working from the Frequency of the Oscillator (FOSC), derive the pre-load value for Timer 2 to give a 5kHz signal/pulse using FOSC of 20MHz. You are not to use the formula but explain the calculations. [14 marks]
(c) Pre-load Value = (^10000) (hex) - Time * FOSC (Using Internal Clock) Prescalar * 4 Using the above formula calculate the pre-load value for the 16c74 micro- controller to generate a 50Hz square wave using Timer1, Showing in code how the value would be loaded in and provide, and code the control register values needed for control of the timer. Assume a clock of 4MHz. [8 marks] [Total: 34 marks]