

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
A past exam paper from the computer systems module of the bachelor of engineering (honours) in electronic engineering program at cork institute of technology. The exam covers various topics related to the pic microcontroller, including its timer1 module, pwm generation, data and instruction buses, adc, exception handling, and serial communication standards. Students are required to answer questions on these topics, including writing assembly language programs and designing circuit diagrams.
Typology: Exams
1 / 3
This page cannot be seen from the preview
Don't miss anything!


Answer any four questions [each 25 marks] Maximum available marks is 100. Use appropriate comments and indentation in program code. PIC and 68000 instruction sets attached.
Examiners: Mr. P Cogan Prof. G. Hurley Dr. S. Foley
Q1. (a) Describe the operation of the PIC 16F74 microcontroller’s Timer1 module
with the help of a diagram (include only the main components). [6 marks]
(b) Describe the generation of PWM (Pulse Width Modulation) using the PIC 16F74 with particular reference to resolution, PWM frequency and software versus hardware waveform generation. [6 marks]
(c) Write an assembly language program to generate a 14kHz (approximate) digital square wave on RB0 using the Timer 1 module on the PIC 16c74. The PIC’s clock frequency is 4MHz. In your answer it is sufficient to include the main parts of the program). [13 marks]
Q2. (a) Briefly explain the advantage of having separate data and instruction buses in the PIC microcontroller. [6 marks]
(b) Demonstrate how the PIC 16C74 ADC can be used to sample an analogue voltage using an assembly language example. [8 marks]
(c) Design a PIC based controller that measures temperature from two sensors and controls an alarm and a mains operated fan. The controller maintains the average temperature read by the sensors at a pre-programmed level using the fan. It sounds the alarm if the temperature drops below a lower threshold or rises above an upper threshold. An alarm mute button will de-activate the alarm for 10 minutes. Draw the circuit diagram for your controller on the attached sheet (showing the pinout for the PIC) and give the algorithm for how your software will operate. State any assumptions that you made about the requirements of the design. [11 marks] continued overleaf ….
Q3. (a) Give an example of both a RISC processor and a CISC processor. With reference to these processors discuss how their approach to CPU architecture differs and indicate the advantages/disadvantages of both architectures. [8 marks]
(b) In evaluating a microprocessor you need to consider many hardware features. Describe the most important of these and give examples of how they are implemented in a processor of your choice. [8 marks]
(c) Caching schemes employ the principle of locality to keep cost down and performance up. Discuss this using appropriate examples. [9 marks]
Q4. (a) Discuss exception handling on the 68000 with particular reference to the
following; (i) exception / interrupt vectors (ii) priority levels (iii) exception groupings (iv) the difference between exceptions and interrupts (v) the sequence of events when an exception is responded to. [7 marks]
(b) While the 68000 provides a limited number of software exceptions, these can be used to control a large number of functions. Give an example of how exceptions can be used to implement three simple mathematical functions efficiently using a 68000 assembly language program. Memory addresses 80 16 to BC 16 store the vectors for the software exceptions available to your program. List any assumptions that you make. [11 marks]
(c) Compare and contrast the EIA-232 and EIA-422 serial communication standards. Use a block diagram to illustrate how communication could be achieved between two 68000 microprocessors using one of these standards. [7 marks]
continued overleaf ….