Escolar Documentos
Profissional Documentos
Cultura Documentos
=~==
1II1r
"'Ill~~
Final Examination
Year 2, Semester II (20 14)
..
EC213 - Microcomputers
Duration: 2 Hours
September 2014
Instructions to Candidates:
03/09/2014
--~----
00105
1.
QUESTION 1
[TOTAL: 25 MARKS)
a. Draw the typical memory hierarchy of a computer system. Show how the
following parameters vary along the hierarchy.
i. Speed
ii. Capacity
iii. Cost per unit memory
[ 7 Marks)
[ 2 Marks]
[ 3 Marks]
[ 3 Marks]
e. What is the capacity of the memory chip in which configuration is 2048 x 32?
[ 3 Marks]
f.
What is the width of the data bus required for the memory chip mentioned in
part 'd'?
[ 2 Marks]
g. What is width of the address bus required to access the memory chip
mentioned in part 'd'?
[ 2 Marks]
[ 3 Marks]
Page 1 of 4
03/09/2014
00105
2. QUESTION 2
[TOTAL: 25 MARKS]
[ 2 Marks]
[ 2 Marks]
[ 4 Marks]
d. Explain the role of each bit of Condition Code Register of HCS12 given
below.
i. I bit
[ 2 Marks]
ii. X bit
[ 2 Marks]
e. "Interrupt service routines usually do not return values. They do not take
arguments either." Do you accept this statement? Justify.
f.
[ 4 Marks]
[ 3 Marks]
3. QUESTION 3
[ 6 Marks]
[TOTAL: 25 MARKS]
a. Explain why digital signals can be handier for data transmission than analog
signals.
[ 4 Marks]
[ 3 Marks]
Page 2 of 4
03/09/2014
00105
d. An ECG signal is to be sampled by an ADC with VRH = 5V and VRL = 0 for
some requirement. Using a clearly labeled block diagram illustrate how you
connect the ECG signal to the analog input pin.
[ 4 Marks]
f.
[ 2 Marks]
[ 2 Marks]
[ 1 Mark]
[ 2 Marks]
[ 2 Marks]
4.
QUESTION 4
[ 2 Marks]
[TOTAL: 25 MARKS)
a. What is a microcontroller?
[ 2 Marks]
[ 3 Marks]
[ 2 Marks]
d. Condition code register ofHCS12 has a bit for arithmetic overflow. What does
it represent? Explain using a suitable example.
[ 4 Marks]
e. Write one example each for the addressing modes mentioned below using
HCS12 assembly instructions.
[ 5 Marks]
i. Immediate
ii. Direct
Page 3 of 4
03/09/2014
00105
m. Extended
iv. Inerrant
v. Relative
f.
[ 5 Marks]
LDAA#$AA
EORA#$55
LDAB#$BB
EORB#$AA
g. Suppose Arithmetic Shift Right and Logical Shift Right operations are applied
to decimal value 100 independently. What are the results that can be expected
for each operation?
[ 4 Marks]
Page 4 of 4
03/09/2014