Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Q2 (a). State the main factors in choosing a microprocessor for general-purpose and highperformance systems.
The main factors in choosing a microprocessor for general-purpose computer will be cost and
speed whereas in a high-performance system the microprocessors instruction set capabilities,
cost, speed, memory range and available software development tools will all require careful
consideration.(4marks)
Q2 (b) Describe the basic microprocessor system architecture.
Q3. Some of the registers have special functions, briefly explain the functions of the
following registers:
a.
b.
c.
d.
e.
The
The
The
The
The
(2marks each)
1. The Memory Address Register (MAR): This register contains the address which is
applied to the external memory array. It is the only way in which an address may be
applied to the memory, which is otherwise isolated from the internal bus of the CPU. It is
required because the address to the memory may come from a number of sources, and
must be kept stable (unchanging) while the memory is read from or written to.
2. The Memory Data Register (MDR): This is the register into which words to and from
the external memory array are transferred. It is used as a temporary storage location for
these words only; the data in the MDR are never manipulated in any way, but only
transferred to another register or to memory. It is a bi-directional register, since it may be
loaded by both the CPU and the memory (unlike the MAR, which is never loaded from
the memory).
3. The Instruction Register (IR): This is the register in which the instruction which is
currently being executed is held. The IR drives the control logic directly; the opcode is
placed in the IR during the fetch cycle, and is thereafter used by the control logic to
generate the subsequent micro-operations to implement the instruction.
4. The Program Counter (PC): This is the register which contains the address in memory
of the next instruction to be executed. It is also known as the Instruction Pointer (IP).
5. The Accumulator (A): the register on which most of the data manipulation (arithmetic,
logic operations) take place. It drives one input of the ALU directly.
Q4 (a). With the aid a diagram give a simple overview of CPU Internal
Structure.
(1mark)
4. The internal busses of the CPU allow data and control signals to be passed between these units.
(4marks)
(b) Write an assembly language program to find ones complement of an 8-bit number
Ans
Ones complement of an 8-bit number
LDA 2501H
CMA
STA 2502H
HLT.
(6marks)
Q5 (a). Memory devices fall into two basic classes, briefly explain the two basic classes.
1. Volatile: these devices will only retain their contents while power is applied. When
power is first applied, their contents will be indeterminate. Such devices can never be
read-only devices, and are normally called RAM (random access memory, an unfortunate
but persistent acronym) or RWM (read/write memory, an unpronounceable acronym).
(3marks)
2. Non-volatile: A non-volatile device will retain its contents even if power is removed from
the device and then re-applied, until it is overwritten (if this is possible). Such devices are
used to contain the initial instructions that the CPU needs when power is first applied to
the system. Although a non-volatile device is normally read-only and is consequently
called a ROM (read-only memory), some non-volatile devices do exist which may be
written to with varying degrees of ease and speed. Although technically these are also
RAM devices, they are often called ROMs because the operation of writing to the words
is relatively complex and slow compared to reading. They are instead identified by a
letter or letters preceding the ROM (e.g. PROM Programmable ROM, EPROM =
Erasable Programmable ROM, EEROM = Electrically Erasable ROM etc.)(3marks)
Q5 (b). As a computer Systems designer, state the main factors you will consider
when choosing a microprocessor for a microcontroller.
Q6 (a) what is the implications of an 8 bit CPU and a data bus width of 8 bit on the instructions
and the data?(4marks)
(b)What do you mean by external and internal data bus? How are these two related in
8088 processor?
(2)
Ans Internal Data Bus: A bus that operates only within the internal circuitry
of the CPU, communicating among the internal caches of
memory that are part of the CPU chips design. This bus is
typically rather quick and is independent of the rest of the
computers operations. (3marks)
External Data Bus: A bus that connects a computer to peripheral devices.
The 8088 microprocessor has 16-bit registers, 16-bit internal data
bus and 20-bit address bus, which allows the processor address
up to 1 MB of memory. (3marks)