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
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Exam questions for a computer systems course in the electronic engineering bachelor's degree at cork institute of technology. The exam covers various topics such as pic microcontroller operation, pwm generation, adc usage, semiconductor processor design, exception handling, and serial communication. Students are required to answer any four questions, each worth 25 marks, for a total of 100 marks.
Typology: Exams
1 / 13
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 Timer0 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 5kHz PWM waveform with a 50% duty cycle. [13 marks]
continued overleaf ….
Q2. (a) Discuss the limitations of the PIC 16F74’s analogue to digital converter and suggest methods for improving its accuracy. [6 marks]
(b) Demonstrate how the PIC 16F74 ADC can be used to sample an analogue voltage using an interrupt driven assembly language example. [8 marks]
(c) Design a PIC based controller that implements a satellite dish positioning system. The system must move the satellite dish East or West by driving a d.c. motor in either direction. As the motor rotates a switch briefly closes during each revolution, this can be used to determine the position of the satellite dish. Your controller should receive the position to move to using an EIA-232 (RS-232) serial connection. As the dish approaches the correct position its speed should be reduced to avoid overshooting its target. 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]
Q3. (a) What is the Semantic Gap problem? Discuss the two microprocessor design approaches, RISC and CISC and how they approach the Semantic Gap problem. Give examples of modern processors based on each technology. What are the respective advantages of each technology? [8 marks]
(b) You have been asked to select the central processing unit for a new line of products. The products are handheld personal digital assistants (PDAs). Discuss which features would be most important in selecting the PDA’s CPU. State which CPU you would select for the product and explain 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]
continued overleaf ….
Q4. (a) Discuss exception/interrupt handling on the 68000. [7 marks]
(b) Write a 68000 assembly language program that converts a 4 digit BCD (Binary Coded Decimal) number to binary using a sub-program. List any assumptions that you make. [11 marks]
(c) EIA-422 (RS-422) serial communication is said to be a balanced or differential system. Explain what this means and discuss the main features of EIA-422. Use a block diagram to illustrate how communication could be achieved between two microprocessors using the EIA-422 standard. [7 marks]
Q5. (a) Discuss the control of processor execution with particular reference to
hardwired control and microcode control. [10 marks]
(b) Figure 1 shows the execution network for a simple microprocessor. By forming the controlled graph and connectivity matrix determine its disconnecting set. Use this disconnecting set to determine the format for an instruction set based on independently coded field micro-instructions. How would this be decoded? [15 marks]
Fig. 1 continued overleaf ….
Program Counter
Internal Registers
Address Reg. Index Reg.
Status Reg.
Bus A Bus B
Accumulator
Address Mux.
Q6. (a) Describe how data is exchanged between application programs over a
network with the help of a diagram illustrating the seven layers of the OSI network protocol model. [8 marks]
(b) Write a note on computer networks that briefly explains; (i) What is meant by TCP/IP? (ii) What is the difference between IP addresses and MAC addresses? (iii) What is meant by network topology and give examples of the main topologies. (^) [9 marks]
(c) With reference to computer networks explain what CSMA is. Briefly describe the three main variations of CSMA. [8 marks]
ooooOOOOoooo
PIC Special Function Registers – Bank 0
Continued overleaf …
PIC Special Function Registers – Bank 1
Continued overleaf …
Configuration Registers for PIC USART Module (From Data Sheet)
Continued overleaf …
Configuration Registers for PIC A/D Converter Module (From Data Sheet)
Continued overleaf …
Configuration Registers for A/D Converter Module (From Data Sheet)
Continued overleaf …
Configuration Registers for PIC PWM (From Data Sheet)
PWM period = (PR2 + 1) * 4 * T OSC * (TMR2 prescale value)
PWM duty cycle = (CCPR1L:CCP1CON<5:4>) * TOSC * (TMR2 prescale value)