MP Unit1
MP Unit1
MP Unit1
UNIT – 1
Dr S K Singh 1
Unit - 1
• Introduction to Microprocessors,
microcontroller
• 8085 Microprocessor Architecture, pin
description,
• Bus concept and organization; concept of
multiplexing and de-multiplexing of buses
• concept of static and dynamic RAM, type of
ROM, memory map.
Dr S K Singh 2
1
1/23/2020
Dr S K Singh 3
8085 MicroprocessorArchitecture
Dr S K Singh 4
2
1/23/2020
Dr S K Singh 5
Dr S K Singh 6
3
1/23/2020
– Address Bus
• Unidirectional
• Identifying peripheral or memory location
– Data Bus
• Bidirectional
• Transferring data
– Control Bus
• Synchronization signals
• Timing signals
• Control signal
Dr S K Singh 7
Dr S K Singh 8
4
1/23/2020
Dr S K Singh 9
The ALU
• In addition to the arithmetic & logic circuits,
the ALU includes the accumulator, which is
part of every arithmetic & logic operation.
• Also, the ALU includes a temporary register
used for holding data temporarily during the
execution of the operation. This temporary
register is not accessible by the programmer.
Dr S K Singh 10
5
1/23/2020
Dr S K Singh 11
• Flag Register
– 8 bit register shows the status of the microprocessor
before/after an operation
• Sign Flag
– Used for indicating the sign of the data in the accumulator
– The sign flag is set if negative (1 –negative)
– The sign flag is reset if positive (0 –positive)
Dr S K Singh 12
6
1/23/2020
• Zero Flag
– Is set if ALU operation results in 0
10110011
+ 01001101
---------------
1 00000000
• Carry Flag
– Is set if there is a carry or borrow from arithmetic operation
10110101
+ 01101100
---------------
Carry 1 0010 0001
Dr S K Singh 13
Dr S K Singh 14
7
1/23/2020
Dr S K Singh 15
Dr S K Singh 16
8
1/23/2020
Dr S K Singh 17
Demultiplexing AD7-AD0
• From the above description, it becomes obvious that the
AD7–AD0 lines are serving a dual purpose and that they
need to be demultiplexed to get all the information.
• The high order bits of the address remain on the bus for
three clock periods. However, the low order bits remain for
only one clock period and they would be lost if they are not
saved externally. Also, notice that the low order bits of the
address disappear when they are needed most.
• To make sure we have the entire address for the full three
clock cycles, we will use an external latch to save the value
of AD7–AD0 when it is carrying the address bits. We use
the ALE signal to enable this latch.
Dr S K Singh 18
9
1/23/2020
Demultiplexing AD7-AD0
•Given that ALE operates as a pulse during T1, we will be able to latch the address.
Then when ALE goes low, the address is saved and the AD7–AD0 lines can be used
for their purpose as the bi-directional data lines.
•The high order address is placed on the address bus and hold for 3 clk periods,
•The low order address is lost after the first clk period, this address needs to be
hold however we need to use latch
•The address AD7 –AD0 is connected as inputs to the latch 74LS373.
•The ALE signal is connected to the enable (G) pin of the latch and the OC –Output
Dr S K Singh 19
control –of the latch is grounded
Dr S K Singh 20
10
1/23/2020
11