0% found this document useful (0 votes)
10 views

Microcomputer Applications

The document is an examination paper for the Microcomputer Applications module at Cork Institute of Technology for the Winter 2009 semester. It includes instructions for candidates, a breakdown of questions covering microcontrollers and microprocessors, and specific tasks related to embedded electronics applications, PIC microcontroller functions, and interfacing with peripheral devices. The exam requires answering three questions, each carrying equal marks, with a total duration of two hours.

Uploaded by

awal0555634577
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views

Microcomputer Applications

The document is an examination paper for the Microcomputer Applications module at Cork Institute of Technology for the Winter 2009 semester. It includes instructions for candidates, a breakdown of questions covering microcontrollers and microprocessors, and specific tasks related to embedded electronics applications, PIC microcontroller functions, and interfacing with peripheral devices. The exam requires answering three questions, each carrying equal marks, with a total duration of two hours.

Uploaded by

awal0555634577
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

CORK INSTITUTE OF TECHNOLOGY

INSTITIÚID TEICNEOLAÍOCHTA CHORCAÍ

Semester 1 Examinations 2009/10

Module Title: Microcomputer Applications

Module Code: ELTR 7019

School: Electrical and Electronic Engineering

Programme Title: Bachelor of Engineering in Electronic Engineering - Award

Programme Code: EELXE_7_Y3

External Examiner(s): Dr. A. Donnellan


Dr. P. O’Sullivan
Internal Examiner(s): Mr. F. O’Reilly

Instructions: Answer 3 Questions. All questions carry equal marks.

Duration: 2 Hours

Sitting: Winter 2009

Requirements for this examination:

Note to Candidates: Please check the Programme Title and the Module Title to ensure that you have
received the correct examination paper.
If in doubt please contact an Invigilator.
Q1 (a) List four categories/criteria under which one might examine an application to
decide whether to use a micro-controller or microprocessor?
[9 marks]

(b) The following is a set of embedded electronics applications.


o Electronic KeyFob/Door Opener.
o Scrolling LED based Event List/Sign as used in a Hotel Foyer.
o Computer to be placed in a Information Kiosk to give map/tourist directions.

For the each of the applications listed identify,


(i) Approximate number of Input & Outputs
(ii) Estimate of speed/performance required.
(iii) Complexity/Range of algorithms/programmes to execute.
(9 marks)
From the following micro-controller/microprocessors choices suggest and justify
suitable models for each of the above applications. 8051 8-bit microcontroller,
Intel Pentium 3 family, Microchip PIC, Motorola 68332 Micro-controller
(6 marks)
[15 marks]

(c) The PIC 16c74 arranges its memory into two register banks. What
advantages/disadvantages does this have? How do you control which register
bank is addressed/selected at any time? [10 marks]
[Total: 34 marks]
Q2 (a) The following excerpts of code and memory addresses perform an important
function within the PIC. Explain what this function is (4 marks), how it operates
below (4 marks) and give two other examples where you might use it.(4 marks)
org 0x0004
goto ISR
:
ISR: btfss PIR1, TMR1IF
retfie
:
bcf PIR1, TMR1,IF [12 marks ]

(b) Derive and explain the following formula based on the Clock Speed and Time,
which can be used to calculate the pre-load values for Timer1 of the PIC Micro-
controller. How can this be changed to suit Timer2? [12 marks]

Pre-load Value = 10000(hex) - Time * FOSC


(Using Internal Clock) Prescalar * 4

Calculate the pre-load value for the 16c74 micro-controller to generate a 2.0 kHz
square wave using Timer 1 or Timer2, specifying which timer it is for and
showing in code how the value would be loaded in. Assume a clock of 4MHz.
[10 marks]
[Total: 34 marks]

Q3 (a) Describe the capabilities and operation of the Analog to Digital Converter Unit
of the Microchip PIC, explaining each of the following:
The possible input signal levels
The number of possible inputs
The possible output values
Key registers used both in the configuration
Key registers during the operation
How does one know a conversion has 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 -> 3V on RA2 and outputs it in binary
format on PORTC. [20 marks]
[Total: 34 marks]

Q4 (a) What peripheral device is used on the PIC to achieve a Serial Data interface?
How would this be configured to give an asynchronous serial interface at 4800
baud? Calculate the baud rate generator configuration value and show how it
would be loaded. [8 marks]

Explain using a diagram how it operates to


Transmit data serially
or
Receive data serially
You are required to examine only one case above, explaining the registers and
pins used. [8 marks]

(b) Describe how a LCD Display unit can be connected to a micro-processor/micro-


controller and used to display text. Describe the input signals necessary for the
LCD unit and how a micro-processor can supply these. Provide sample code to
show how the LCD control can be done, paying particular attention to the
slowness of the LCD unit. [18 marks]
[Total: 34 marks]

You might also like