Introduction To Microprocessors
Introduction To Microprocessors
16-bit registers
16-bit address bus
8-bit data bus
2
Features of 6809
3
The Programming Model of 6809 Processor
X – Index Register
Y – Index Register
A B
D
4
PC (Program Counter)- (16 bit Register)
The Program Counter is used for keeping track of the
position of the program being executed. At any given time it
contains the address of the next instruction to be executed.
A, B and D registers(Accumulators)
The A and B 8-bit registers are general purpose registers
which are used for arithmetic calculations, logical operations and
manipulation of data.
6
Memory Map
7
Basic Operation of 6809
8
Basic Operation of 6809
What happens when we reset the processor?
9
Basic Operation of 6809
10
Building a Computer using 6809
11
Building a Computer using 6809
Power
12
Clock
➢For some microprocessors an external clock signal must be
provided, while some others produce their own clock
signals with the help of a few external components.
13
Clock
➢ Alternately, a TTL compatible output of an external oscillator
can be connected to EXTAL with XTAL connected to ground.
➢ Using the clock signal, the processor generates two bus
timing signals called E and Q which are required for
synchronizing memory and I/O devices with the
microprocessor.
➢ Frequency of Q and E is equal to the ¼ of the clock frequency.
➢These signals are available through pins 34 and 35.
14
Reset mechanism
➢ processor can be reset by applying a low level on the pin
labeled RESET for a period longer than one bus cycle.
➢ During initial power on, the RESET line should be held low until
the clock oscillator is fully operational.
➢ Figure below shows a mechanism that can be used to reset
the processor automatically during the initial power on.
15
Building a Computer using 6809
➢ Suppose we want to build a system with RAM, ROM, a
set of eight switches (input) and one 7-segment display
(output).
7-Segment
MP
6809
17
Memory maps of the circuit
Deciding Address Ranges
Address range:
From 000 0000 0000 to 111 1111 1111
In Hex: 000 to 7FF
This range must be mapped to
0000 to 07FF in 6809
2000 – 2FFF 7 Segment
Address range:
From 000 0000 0000 to 111 1111 1111
In Hex: 000 to 7FF
This range must be mapped to
F800 to FFFF in 6809
18
Address decoding (for 2716 EPROM)
➢ 000 to 7FF range in 2716 must be mapped to F800 to FFFF range
in 6809.
X = (A11.A12.A13.A14.A15).(E + Q)
23
Address decoding circuit (for 6116 EPROM)
➢ Decode the lines from A12 to A15 and ignore all the other lines.
Then, for any address in the range from 2000 to 2FFF, your display
will be selected.
25
Address decoding (for 7 – segment display)
27