Micro-lecture-1
Micro-lecture-1
Microprocessor Architecture
Memory Input
D7
D0 Data Bus
Control Bus
The microprocessor uses the address bus to perform the function specified
in step-1.
Bus Organization
Data Bus
A group of parallel conducting wires used to transfer data between
the microprocessor and peripherals (or memory) is called data bus.
These lines are bidirectional i.e., data flow in both directions between
the microprocessor and peripheral devices (or memory). The 8085
microprocessor has eight data lines which enable the microprocessor
to manipulate 8-bit data ranging from 00 to FF (28 = 256 numbers).
Control Bus
The control bus is comprised of various single lines that carry timing
or synchronization signals. These are not groups of lines like address
or data buses, but individual lines that provide a pulse to indicate a
microprocessor operation. The microprocessor generates specific
control signals for every operation it performs.
The microprocessor uses the control bus to perform the function specified
in step-3.
Memory Read Operation
Data
Memory
decoder
Memory
8085 Chip
µP
D7
D0 Data Bus
The bit positions in the flag register are shown in the following figure
D7 D6 D5 D4 D3 D2 D1 D0
S Z AC P CY
In the flag register, the flip-flop which is used to indicate a zero result
in the accumulator is called zero flag.
This flag is set to 1, when the result is zero; otherwise it is reset.
8085 Registers
10110011
+ 01001101
1 00000000
10110101 10110101
+ 01101100 - 11001100
Carry 1 00100001 Borrow 1 11101001
8085 Registers
Hold
The 8085 µP has a pin called HOLD. When this pin is activated by an
external signal, the microprocessor stops executing instructions and
relinquishes control of busses and allows the external peripheral to use
them.
This signal is used primarily in Direct Memory Access (DMA) data
transfer.
Memory
D0 D1 D2 D3
o o o o
WR
D Q D Q D Q D Q
EN EN EN EN
I0 I1 I2 I3
D Q D Q D Q D Q
WR Input Buffers
EN EN EN EN
EN0 Memory Reg. 0
D Q D Q D Q D Q RD Output Buffers
EN EN EN EN
O0 O1 O2 O3
o o o o
RD
D0 D1 D2 D3
Memory
Memory
Memory
A3 A3
A2 A2
CS RD WR CS RD WR
M1 M2
0011 R3 1011 R11
A1 0010 R2 A1 1010 R10
A0 0001 R1 A0 1001 R9
0000 R0 1000 R8
I/O I/O
Lines Lines
Memory
CS RD WR CS RD
I/O I/O
Lines Lines
Memory Map and Addresses
0000 0000
EPROM Address Range of EPROM Chip
3FFF
4400
RAM 1 Address Range of 1st RAM Chip
5FFF
6000
RAM 2 Address Range of 2nd RAM Chip
Address
Range
8FFF
9000
RAM 3 Address Range of 3rd RAM Chip
A3FF
A400
F7FF
FFFF
Memory Map and Addresses
A15
A14
A13 MEMRD
A12
MEMWR
A11
A10
A9
A8 CS RD WR
A7
A6
Internal Decoder
A5
A4 256 Registers
A3
A2
A1
A0
I/O
Memory Map and Addresses
A15
A14
A13 MEMRD
A12
MEMWR
A11
A10
A9
A8 CS RD WR
A7
A6
Internal Decoder
A5
A4 256 Registers
A3
A2
A1
A0
I/O
Memory Map and Addresses
A15
A14 MEMRD
A13
MEMWR
A12
A11
A10
CS RD WR
A9
A8
A7
Internal Decoder
A6
A5 1024 Registers
A4
A3
A2
A1
A0
I/O
Memory and Instruction Fetch
Memory Classification
ROM Memory Cell
A2 A2
CS RD WR CS RD WR
M1 M2
I/O I/O
Lines Lines
R3
R2 R1
Address
R0 M1 R/W M Lines