



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this exam paper are: Embedded Systems, Playstation Portable, Central Heating Timeswitch, Digital Timer and Programmer, Handheld Remote Control, Approximate Number, Input
Typology: Exams
1 / 6
This page cannot be seen from the preview
Don't miss anything!




Answer THREE questions. Examiners: Mr. F. O’Reilly Dr. Paula O’Sullivan Dr. David Denieffe Q1 (a) Describe two applications for a microprocessor and two applications for a micro-controller, saying why you would choose each one? [8 marks]
(b) For the following are the applications of Micro-computer systems:
For each Identify: (i) Approximate number of Input & Outputs (iii) Estimate of speed/performance required. (iv) Complexity/Range of algorithms/programmes to execute.
From the following micro-controller/microprocessors, suggest suitable models and why for each of the above applications. Embedded 8051 IC, Motorola 68000 processor, Intel Pentium 3 low power family, Microchip PIC. [16 marks] (c) Why does the PIC divide its data/special function memory into 2 or 4 banks? Explain the reasons for doing this and the advantages that it brings. [10 marks] [Total: 34 marks]
Q2 (a) Explain the operation and configuration of Timer 2 on the PIC micro-controller. Derive the following formula for the preload value. [10 marks]
Pre-load Value = Time * FOSC (Using Internal Clock) Prescalar * 4
(b) Calculate the pre-load value for the 16c74 micro-controller to generate a 10kHz square wave using Timer2, showing in code how the value would be loaded in. Assume a clock of 4MHz. [12 marks]
(c) Interrupt handling is important for embedded systems. Explain 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. [12 marks ] [Total: 34 marks]
Q3 (a) You have an analog signal with a maximum frequency of 2KHz which varies in voltage from 0 -> 4V. You wish to digitise this into a numerical value at a regular sampling interval. Describe how this can be done with a Microchip PIC. Your answer should include: The manipulation of the input levels, Possible range of output values Key registers used both in the configuration and operation. How does one know one of these conversions will have completed? [14 marks]
(b) Write the configuration, interrupt handling and data reading sections of a PIC assembly language program for the 16c74 micro-controller, which continually reads in an analogue voltage from 0 -> 5V on RA0 and outputs it in binary format on PORTB. [20 marks] [Total: 34 marks]