You are on page 1of 5

Bachelor of Engineering

Second Semester Examinations


2020/2021 Academic year

Department: Computer Option: CSE/EME Level: 300/400


Engineering
Course code/ Title: CSE 302/ Microcontrollers and Credit value:
Microprocessor Technology
Duration: 13h00 – 16h00 Date: Monday 14/06/2021 Venue: Examination Hall
Course Instructor M. AZANGUE Brice Arthur / M. AKUPAN Rene

Read the instructions carefully before you start answering the questions.
Instructions
o Answer all questions
o You are free to start by any section.
o This paper is divided in to two sections section A and section B
o Orderly presents your answers
o Respect all symbols tags for technical diagrams

Section A: (25 marks)


MODULE I: TRUE or FALSE ( 10 marks)
Draw a table and answer by TRUE and FALSE
Instruction: 1.5 marks for correct answer and - 0.5 mark for wrong answer and

0 mark if no answer.

Questio 1 2 3 4 5 6 7 8 9 10
n
Answer

1. The way microprocessor compute data is the same for microcontroller.


2. The connection between the microprocessor and the microcontroller is the bus.
3. The control bus is used to provide information to the processor and interfaces while the
data bus is used to link elements in the CPU.
4. Under the program memory, we have the addresses and the instructions.
5. The data flowing through the bus in the computer into a packet of data and it is sent
randomly.

Page 1 / 5
6. The synchronization of the action performed by the processor is possible thank to the
counter.
7. Under a memory, the validation/selection of a cell is possible thanks to a special
terminal hold by a cell.
8. The PWM signal at the output of the converter is actually filtering by the high pass
filter so that the signal is well recover.
9. The circuit that provides external clock to the microcontroller has two capacitor that
the function is to maintain constant functioning of the circuit.
10. The first programming language is the C language for the programmers.

MODULE II: Multiple choices (5 marks)


1. How many clock pulses are confined by each machine cycle of Peripheral-Interface
Controllers?
A. 4
B. 8
C. 12
D. 16
2. Which flags are more likely to get affected in status registers by Arithmetic and
Logical Unit (ALU) of PIC 16fxx on the basis of instructions execution?
A. Carry (C) Flags
B. Zero (Z) Flags
C. Digit Carry (DC) Flags
D. All of the above
3. How many RP0 status bits are required for the selection of two register banks?
A. 1
B. 2
C. 8
D. 16 
4. The RP0 status register bit has the potential to determine the effective address
of______
A. Direct Addressing Mode
B. Indirect Addressing Mode
C. Immediate Addressing Mode
D. Indcexed Addressing Mode
5. Which status bits exhibit carry from lower 4 bits during 8-bit addition and are
especially beneficial for BCD addition?
A. Carry bit (C)
B. Digits Carry bit (DC)
C. Both a & b
D. None of the above

MODULE III: Short Questions (10 marks)


1. What is the value of the accumulator register after the execution of the instructions? (2
mks)
MOV A, #95
Page 2 / 5
ADD A, #120
2. What is the use of SFR in 8085 processor? (2 mks)

3. List some three SFRs involved in 8085 processor. (3 mks)


4. With example instruction, explain some three addressing modes supported by 8085
processor? (3 mks)

Section B: (45 marks)


Question One (12 marks)
a. From the microcontroller give two differences betweem Harvard Architecture
and von- Neumann architecture ! (1 marks x4=4 marks)
b. The microcontroller is driven by crystal clock circuit. Draw this circuit. How this
circuit process to synchronize the data. (3 marks)
c. Let consider the memory location i figure 1.

Figure 1
d.1 How many bits of address is used for this memory! (1.5 marks)
d.2 find the number of possibility that this memory can used for the register. (1.5 marks)
d.3 Give the set of bits of data lines if the input address is 1001. (2 marks)

Question Two (13 marks)


Mapping memory of the microprocessor (13 marks)

We consider a single processor that drive the RAM memories with 16 adresses and 8 bits for
data lines for access at each memory cell. Each memory cell has a capacity of 64K. Figure 2
and Figure 3 show the appearance of a processor and a single RAM memory with the pins.

Page 3 / 5
Figure 2 Figure 3

a) How many RAM memory cell is used! (1 marks)


b) How the data are transferred (from address pins) until reach to the memory! (1 marks)
c) Draw the diagram that describe the arrangement of the microprocessor and these RAM
memories. (5 marks)
d) Explain exactly how the RAM memory cell is accessed. (1.5 marks)

The whole memory is full when each RAM memory cell is used (from 0000000 to
11111111).

e) What is the total size (CT) of the Whole memory! (1.5 marks)
f) What can be the behavior of the memory if an additional data (from address pins)
arrived! (1.5 marks)
g) We consider that a set of each data that will be stored in a RAM memory cell used the
half (1/2) of the memory cell. How many sets of data is possible to full the whole
memory! (2 marks)

Question Three (10 marks)


a) Using PIC16F84A, design an electronic circuit with push button switch SW connected to
RA0 and a lamp connected to RB0
b) From the design in (a) write an assembly code to flash the lamp on for one second and off
for one second when the switch is pressed. The lamp should stay off when ever the switch
is open. You are obliged to add comments to your code
Question Four (10 marks)
Consider the electronic circuit below designed on the PIC16F84A. The circuit is a seven-
segment display circuit which displays the numbers 0,1,2,3,4,5,6,7,8,9and repeat the sequence
continuously

Page 4 / 5
X1 U1
16 17
OSC1/CLKIN RA0
15 18
OSC2/CLKOUT RA1
1
RA2
4 2
CRYSTAL (4MHz) MCLR RA3
RA4/T0CKI
3
COMMON CATHODE 7 SEGMENT
C2 C1 R1
22pF 1pF 6
RB0/INT
7
RB1 220
8
RB2
9
R2
RB3
10
RB4 220
11
RB5
12
R3
RB6
13
RB7 220
PIC16F84A
R4
220
R5
R8
220
10k R6
RESET PIC (MASTER CLEAR) 220
R7
220

a) Explain the relevance of R1, R2, R3, R4 R5, R6, R7 and RESET PIC
b) Develop an assembly language program that will implement this sequence of counts. The
PIC is operating at a frequency of 4MHz. The MCLR Button resets the PIC controller.
You are obliged to add comments to your code
c) Based on your program written in (a), calculate the total time of execution of the program

Page 5 / 5

You might also like