ELEC 2441 - Computer Organization and Microprocessors
ELEC 2441 - Computer Organization and Microprocessors
ELEC 2441 - Computer Organization and Microprocessors
Todays Quote
We still do not know one thousandth of one percent what nature has
revealed to us.
- Albert Einstein.
Chapter 2 1
2. Basic Organization & Operations of
A Microcomputer
[Part B]
Objectives:
Chapter 2 2
The Basic Organization of A Microcomputer
(MC68HC11) System
Chapter 2 3
Program Counter (PC)
The control unit (i.e. the timing & control logic (TCL))
sends the necessary enable signals to the PC to place the
PC's content onto the address bus.
Chapter 2 4
(ii) set R/W'=1 (i.e. a high voltage) to initiate a read from
memory.
With the given address, the memory unit gets the op-code
byte from the memory cells, and puts the byte onto the
data bus. The control unit generates signals to copy the
byte into the Instruction Register (IR).
Chapter 2 5
Register set
S X H I N Z V C
b7 b6 b5 b4 b3 b2 b1 b0
Chapter 2 6
N-bit is set to 1 if the result, treated as a signed integer, is
negative; otherwise it is 0.
I-bit is the interrupt mask bit. When this bit is set to 1, the
interrupt request (IRQ') input pin is disabled. This bit
can be set or cleared by the SEI and CLI instructions
respectively.
Chapter 2 7
Control Bus Signals
Chapter 2 8
There are 4 cases for reset. One common case is the
- External reset
When an external circuit pulls this signal low for a
duration of at least 4 E-clock cycles, the processor
executes the reset service routine (the bootstrap
program).
Chapter 2 10
CPU Read timing
Chapter 2 11
1. At the rising edge of AS (Point 1), the CPU sets R/W' to
1 to indicate read, & puts the address on the pins of
Ports B & C.
Chapter 2 12
Bus activity during program execution
Chapter 2 13
Chapter 2 14
Memory map
The address space is divided into different ranges, each
range is used for accessing a specific memory or I/O
device.
For example,
FFFF
ROM
C000
8FFF
8000 I/O
1FFF
RAM
0000
Chapter 2 15
Case Study of A Basic Uni-processor (MC68HC11)
Machine
FFFF
ROM
C000
8FFF
I/O
8000
0FFF
RAM
0000
Chapter 2 16
Address Decoding Circuit
Chapter 2 17
Summary: [** The following key points are written to facilitate your revision.
Knowing ONLY these key points is always not sufficient for test or exam.]
The basic organization of the (MC68HC11) microcomputer system
includes the microprocessor unit (MPU) containing the program
counter (PC), data address register (DAR), instruction register
(IR), control unit, accumulator(s) and data register, arithmetic and
logic unit (ALU). Outside the MPU, there are data, address and
control buses carrying different signals to connect the MPU with
other peripheral devices like the main memory (MEM) or I/O
devices;
The register set depicts the set of internal registers inside the MPU
for the normal operations of the microcomputer system. For the
MC68HC11 system, the register set contains : PC, IR, DAR, index
register X & Y (IX & IY), stack pointer (SP), Accumulator A & B
and condition code register (CCR). The CCR will be updated each
time after an instruction is executed;
The control bus consists of the signals: R/W', Reset', XIRQ', IRQ',
AS, E to be used for various functions;
The CPU Read timing diagram shows the 5 key events in each read
operation performed by the CPU/processor: i) generate R/W and
new address; ii) increment PC, iii) full address is latched onto the
address bus; iv) enable the selected device and v) latch data onto
the MPU;
The bus activity of a microcomputer examines the contents of the
address & data buses during the execution of each instruction;
The memory map/system shows how the total memory address
space is divided into different ranges, and each range is used for
accessing a specific memory or I/O device.
Chapter 2 18