0% found this document useful (0 votes)
464 views5 pages

Final Exam QP - Microprocessor and Microcontroller - Sep - 2023

This document is an examination paper for the course TEL205/03 Microprocessor and Microcontroller. It consists of 4 questions testing various concepts related to microprocessors and microcontrollers. Students are instructed to answer all questions, show working steps, and are allowed to use non-programmable calculators. The questions cover topics such as differences between microprocessors and microcontrollers, memory addressing, assembly language, pipelining, direct memory access, microcontroller programming, and characteristics of CISC and RISC architectures. Students will need to demonstrate their understanding of microprocessor and microcontroller fundamentals, programming, and applications to answer the questions successfully.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
464 views5 pages

Final Exam QP - Microprocessor and Microcontroller - Sep - 2023

This document is an examination paper for the course TEL205/03 Microprocessor and Microcontroller. It consists of 4 questions testing various concepts related to microprocessors and microcontrollers. Students are instructed to answer all questions, show working steps, and are allowed to use non-programmable calculators. The questions cover topics such as differences between microprocessors and microcontrollers, memory addressing, assembly language, pipelining, direct memory access, microcontroller programming, and characteristics of CISC and RISC architectures. Students will need to demonstrate their understanding of microprocessor and microcontroller fundamentals, programming, and applications to answer the questions successfully.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

Academic Session 2023

September 2023 Term Examination

September 2023

TEL205/03 Microprocessor and Microcontroller


Time: 3 hours

Instructions to candidates:

1. Please check that this examination paper consists of FIVE (5) pages before you
begin the examination.

2. Answer ALL questions.

3. All necessary working steps must be shown clearly. The omission of essential
working steps will result in a loss of marks.

4. Non-programmable electronic/scientific calculators may be used.

Copyright © 2023 WOU


TEL205/03 Microprocessor and Microcontroller Sep 2023

Answer ALL the questions.

Question 1

(a) List down FOUR (4) differences between the microprocessor and the
microcontroller.
(CLO1/PLO1/C2– 8 marks)

(b) Distinguish between the ALU and the memory unit.


(CLO1/PLO1/C3 – 2 marks)

(c) Describe the benefits of applying an assembler than the binary program.
(CLO1/PLO1/C2– 2 marks)

(d) Pipelining is a technique in which a given task is divided into several subtasks that
must be performed in a sequence. Consider a pipeline having 4 phases with a
duration of 110, 80, 100 and 90 ns. Given latch delay is 4 ns. Evaluate:
(i) The pipeline cycle time.

(CLO1/PLO1/C3 – 2 marks)

(ii) The non-pipeline execution time for one instruction.


(CLO1/PLO1/C3 – 2 marks)

(iii) The speed up ratio.

(CLO1/PLO1/C3 – 2 marks)

(iv) The pipeline time for 500 tasks.

(CLO1/PLO1/C3 – 3 marks)

(v) The non-pipeline time for 500 tasks.

(CLO1//PLO1/C3 – 2 marks)

(vi) The throughput for 1000 tasks.

(CLO1/PLO1/C3 – 2 marks)

[25 marks]
Page 2 of 5
TEL205/03 Microprocessor and Microcontroller Sep 2023

Question 2

(a) Justify the functionality of the ‘direct memory access’.


(CLO2/PLO2/C2 – 4 marks)

(b) Define the roles of the following components in a microprocessor:


(i) Control and timing
(ii) Register
(iii) Input-output
(CLO1/PLO1/C2– 3 marks)

(c) Page size refers to the size of a page, a block of stored memory. Page size affects
the memory needed and space used when running programs. For a programme
memory that has a page size of 1K, determine the start and end addresses.

(CLO2/PLO2/C3 – 9 marks)

(d) Memory wrap-around is a feature of a computer memory architecture in which the


highest valid memory address wraps around to the lowest valid memory address,
allowing for continuous memory access despite the limited address space of the
system. A programme memory address of 42BCH accesses a 16K-word
microcontroller. Determine the actual address when the wrap-around happens.

(CLO2/PLO2/C3 – 9 marks)

[25 marks]

Question 3

(a) Create a program that does the addition of 15H and 45H, and shifts the summation
value into the 13H register. Write the task descriptions done by the microcontroller
for each of the program code.
(CLO3/PLO3/C3 – 15 marks)

Page 3 of 5
TEL205/03 Microprocessor and Microcontroller Sep 2023

(b) In accordance to the program written for Question 3(a), formulate and state the
final data stored in the 13H register. Suggest the answer in decimal base and prove
the mathematical measure clearly.
(CLO1/PLO1/C4 – 5 marks)

(c) Estimate the data length for the program counter in PIC18.
(CLO1/PLO1/C3 – 1 mark)

(d) Measure and decide the maximum program memory address than can be
accessed by the program counter of PIC18.
(CLO2/PLO2/C4 – 4 marks)

[25 marks]

Question 4

(a) In reference to Figure Q4(a), write an embedded C code which toggles LED1 at
an interval of 1 second. Assume that the operating frequency is 20 MHz.

Figure Q4(a)
(CLO3/PLO3/C4 – 19 marks)

Page 4 of 5
TEL205/03 Microprocessor and Microcontroller Sep 2023

(b) Justify THREE (3) individual characteristics of CISC and RISC.


(CLO1/PLO1/C3 – 6 marks)

[25 marks]

END OF QUESTION PAPER

Page 5 of 5

You might also like