



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 8)
Answer any two questions from Section A [50 marks] and any two questions from Section B [50 marks]
Maximum available marks is 100.
Examiners: Dr. Dirk Pesch Mr. Fergus O’Reilly Prof. Cyril Burkley Mr. John Ryan
Q1. (a) The PIC’s core architecture is based on the Harvard computer architecture. Briefly explain what this means in terms of programme execution and summarise the advantages of this kind of architecture compared to the typical von Neumann architecture of the Personal Computer. [5 marks] (b) Describe the operation of the Timer 2 module in the PIC. Briefly explain the benefits of having a pre- and postscaler. You may use the help of a diagram. [6 marks] (c) Write an assembly language program for the PIC16C74 that implements a 4 bit binary counter and outputs the count value on appropriate pins of PORT B. The PIC clock frequency is 4MHz. Implement a delay mechanism that allows an observer to actually see the counter values displayed clearly on a demo board with LEDs connected to PORT B pins. Discuss, apart from writing the programme, whether you think that the counter could be implemented using one of the timer modules on the PIC. [14 marks]
Q2. (a) Briefly describe interrupt handling on the PIC16C74. As part of your answer show a conceptual diagram of the interrupt logic of the microcontroller. [6 marks]
(b) Write the main part (you do not need to consider initialisation or transmission errors) of an interrupt driven assembly language program for the PIC 16c that uses the asynchronous transfer mode of the USART module to transmit a block of 32 bytes of data to another embedded system. The desired baud rate is 19.2kb/s, the PIC’s clock frequency is 4MHz. As part of your answer (i) identify the optimum value for the baud rate generator that sets the baud rate closest to the desired rate. (ii) determine an appropriate way of addressing a block of 32 bytes of data in the PIC’s RAM. You might find the following formulae useful:
[12 marks] (c) With the help of a diagram briefly describe the operation of the CSMA/CD medium access control protocol used on Ethernet Local Area Networks. [7 marks]
Q3. (a) Describe with the help of a diagram the ISO/OSI reference model for a layered computer communication system. Briefly list the functionality of each layer. [8 marks] (b) Briefly discuss the difference between a local area network using a LAN switch and one using a LAN hub. How does each device affect the total throughput of the LAN? [7 marks] (c) Derive a formula for the throughput of the slotted ALOHA medium access control protocol. Assume that both new packets and retransmitted packets arrive according to a Poisson process and that packets have fixed length and can be transmitted in a singe time slot. What is the maximum possible throughput of slotted ALOHA? [10 marks]
Q6. (a) Explain using diagrams how a control memory, using pages of micro- instructions can be used to generate control signals for an execution network. In particular draw attention to how the current instruction under execution and special codes in each micro-instruction determine the flow within this control memory. [10 marks] (b) The following diagram shows a simple execution network. By forming the controlled graph and connectivity matrix determine its disconnecting set. Use this disconnecting set to determine a field type micro-instruction independently coded, show the format and size of the individual fields. How would this be decoded? [15 marks]
Memory Address Register
Memory Data Register
Bus B
Bus A Instruction Register
General Purpose Register
Status Register
I/O
ALU
Memory Segment Reg
Simple Execution Unit.
Support information
PIC Instruction Set