Computer Systems Exam Questions at Cork Institute of Technology, Exams of Computer Science

Exam questions for the computer systems module in the electronic engineering degree program at cork institute of technology. The exam covers various topics related to microcontrollers, such as the pic 16f74's timer2 module, pwm generation, harvard architecture, and the pic 16c74 adc. Students are required to answer any four questions, each worth 25 marks, for a total of 100 marks. Instructions for using appropriate comments and indentation in program code, as well as the attachment of instruction sets for the pic and 68000 microcontrollers.

Typology: Exams

2012/2013

Uploaded on 03/30/2013

lalchand
lalchand 🇮🇳

4.4

(67)

117 documents

1 / 9

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Cork Institute of Technology
Bachelor of Engineering in Electronic Engineering
Stage 3
April 2006
COMPUTER SYSTEMS
(Time: 3 Hours)
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
Q1. (a) Describe the operation of the PIC 16F74 microcontroller’s Timer2 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 for a PIC 16F74 with a crystal frequency
of 4MHz that generates a 1kHz PWM waveform with a mark space ratio of
1:4 (20% duty cycle). [13 marks]
Q2. (a) The PIC microcontroller is said to use Harvard architecture. Briefly discuss
what this means. [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 heater. The controller maintains the
average temperature read by the sensors at a pre-programmed level using the
heater. 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 ….
pf3
pf4
pf5
pf8
pf9

Partial preview of the text

Download Computer Systems Exam Questions at Cork Institute of Technology and more Exams Computer Science in PDF only on Docsity!

Cork Institute of Technology

Bachelor of Engineering in Electronic Engineering

Stage 3

April 2006

COMPUTER SYSTEMS

(Time: 3 Hours)

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

Q1. (a)^ Describe the operation of the PIC 16F74 microcontroller’s Timer2 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 for a PIC 16F74 with a crystal frequency of 4MHz that generates a 1kHz PWM waveform with a mark space ratio of 1:4 (20% duty cycle). (^) [13 marks]

Q2. (a) The PIC microcontroller is said to use Harvard architecture. Briefly discuss what this means. [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 heater. The controller maintains the average temperature read by the sensors at a pre-programmed level using the heater. 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) Write a note on the work carried out by a cache memory controller in a typical computer system. In particular mention any problems that the cache memory controller may have to overcome and explain what is meant by ‘associativity’ and ‘replacement strategy’. [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-485 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 ….