1. Define requirements
2. Define components
3. Complete design details
4. Build and test prototypes
5. Finalize design and begin production
Address Space
Address space is the total set of addresses which the
microprocessor can generate.
The ADH indicates in which page the address is located, the ADL
indicates a specific address on that page.
System Components
Clock Generator
Produces continuous waveform which is used to controll all
signal transitions. It acts as a "heart" of the system.
Address bus will change during one half of cycle,
Data will be transferred during second half.
The processor must also examine the clock to know when to put
out data or when to latch in data generated by another device.
Program Memory
Program memory stores sequence of instructions which
comprises the system program. This unit puts a pattern of 1's and 0's on
the data bus in response to the address on the address bus input.
Data Memory
Temporary storage of input data, results of operations are
stored on RAM (Random Access Memory).
Input/Output Devices
Input/Output Devices are circuits which interface the
printer, keyboard, displays, etc.
Microprocessor
Direct control over rest of system by the processor is
enabled through:
-address bus
-bi-directional data bus
-Write-Enable line
System Concepts
Bus Structure
Two primary busses.
Processor Interrupts
Peripheral devices can request service from processor.
Interrupt applications
Keyboard
Keyboard strobe line (key pressed signal) is connected
to interrupt input on a peripheral interface device. Each time a strobe
signal occurs, an interrupt occurs, processor reads data on peripheral
port into memory, analyses data, and then returns to the program that was
in process. If no keys are pressed, processor spends no time in servicing
the keyboard.
Display
Display is usually scanned such that each digit is
driven for a short period of time in sequence. Display requires attention
from processor at fixed intervals. Because it is difficult for the
processor to calculate repetitive time intervals while performing normal
system routines, it prefers to run the system program without
consideratio for display time intervals, only executing the display
software when required. A solution is the generation of processor
interrupts using an external counter or clock. Each time an interrupt
occurs, the data for next digit in display is placed on output port. The
processor then returns to program it had been executing.
Interrupt prioritising
If more than one interrupt source requires attention at one
time, a priority level must be established.
Interrupt request
The two interrupt lines for microprocessor are IRQ and NMI.
Non-Maskable Interrupt
NMI input to processor is edge sensitive. There must be a
negative transition of signal of the NMI input. This will cause a single
interrupt to occur. The processor will ignore this input until NMI signal
hoes high and then back to ground.
System reset
Reset pins on all peripheral devices are to be held low
during power on until the supply voltages and clocks are stabilised.