Microprocessor Microcontroller EXAM 2021
Microprocessor Microcontroller EXAM 2021
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
0 mark if no answer.
Questio 1 2 3 4 5 6 7 8 9 10
n
Answer
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.
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)
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
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)
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