Lecture # 03 - 04
Lecture # 03 - 04
TECHNIQUES
1
LECTURE # 03- 04
2
MICROPROCESSOR ARCHITECTURE:
4. Power Supply
& Frequency
Signals (5)
5. Externally
initiated control
signals (11)
6. Serial
input/output
Ports (2) 5
ADDRESS BUS (16)
6
Address Bus (16 Pins):
Address bus occupied 16 bits wide , therefore 8085 can access 2 raise to the power 16
locations(65,536) with numbers, from 0 to 65,535.
•These range from 0000 to FFFF and is referred as 64kB of memory space.
•The 8 signal lines, A8–A15, are unidirectional and used for the most significant bits
,called the high- order address of a16-bit address.
•The 8 signal lines AD0–AD7 are used for a dual purpose : as a lower-order address
lines and also as a data bus.
7
Address Bus (16 Pins):
When the 8085 wants to access a peripheral or a memory location ,it places the 16-bit
address on the address bus and then sends the appropriate control signals.
•The low-order bidirectional address lines (AD0–AD7) are multiplexed with data bus.
WHAT IS MULTIPLEXING?
9
DATA BUS (8)
10
DATA BUS (8 PINS):
memory or I/O.
CONTROL AND STATUS BUS (6)
12
CONTROL & STATUS BUS (6 PINS) :
This group is Responsible for overall control & synchronization
of the system.
Signals which are associated with timing and control unit.
This group of signals includes:
1). Two Control Signal (RD/WR)
2).Two Status Signal (IO/M , S1 and S0)
3).One Special Signal(ALE) 13
RD
PIN 32 (OUTPUT)
RD stands for Read.
S0 S1 Operation
0 0 Halt
0 1 Write
1 0 Read
1 1 Opcode Fetch
16
IO/M
PIN 34 (OUTPUT)
If IO/M = 0 then
Memory operation is being performed. 17
IO/M
PIN 34 (OUTPUT)
If S0 = 0 and S1 = 1 then
It indicates WRITE operation.
If IO/M = 0 then
It indicates Memory operation.
20
X1 & X2
PIN 1 AND PIN 2 (INPUT)
23
EXTERNALLY INITIATED CONTROL SIGNALS (11)
24
RESET IN AND RESET OUT
PIN 36 (INPUT) AND PIN 3 (OUTPUT)
RESET IN:
◦ It is used to reset the
microprocessor.
◦ It is active low signal.
◦ When the signal on this pin is low
for at least 3 clocking cycles, it
forces the microprocessor to reset
itself.
25
RESET IN AND RESET OUT
PIN 36 (INPUT) AND PIN 3 (OUTPUT)
26
RESET IN AND RESET OUT
PIN 36 (INPUT) AND PIN 3 (OUTPUT)
RESET OUT:
◦ It is used to reset the peripheral
devices and other ICs on the circuit.
◦ It is an output signal.
◦ It is an active high signal.
.
◦ The output remains high as long as 27
29
What Happen When Interrupt Arrives..
30
Maskable interrupts
• RST 7.5
• RST 6.5
• RST 5.5
• INTR
32
Non-maskable interrupts
The interrupts which are always in enabled mode are called non-
maskable interrupts.
TRAP 1
RST 7.5 2
RST 6.5 3
RST 5.5 4
INTR 5
34
TRAP
pin 6 (input)
It is an non-maskable interrupt.
It has the highest priority.
It cannot be disabled.
TRAP is usually used for power failure
and emergency shutoff.
35
RST 7.5
PIN 7 (INPUT)
It is a maskable interrupt.
It has the second highest priority.
It can be Enabled or Disabled by
Software Instructions (EI and DI).
36
www.eazynotes.com
RST 6.5
PIN 8 (INPUT)
It is a maskable interrupt.
It has the third highest priority.
RST 6.5 can be enabled by EI
instruction.
It can be disabled by DI instruction.
37
RST 5.5
PIN 9 (INPUT)
It is a maskable interrupt.
It has the fourth highest priority.
It is also level triggered.
The pin has to be held high for a
specific period of time.
This interrupt is very similar to RST
6.5.
38
INTR
PIN 10 (INPUT)
It is a maskable
interrupt.
It has the lowest
priority.
39
www.eazynotes.com
INTA
PIN 11 (OUTPUT)
40
Direct memory access?
41
Direct memory access?
AFTER HOLDA Signal CONNECTION IS BUILD
It Sends HOLDA Signal To Ensure That It Has Given The Hold Of Busses To Peripheral Devices
HOLD
PIN 38 (INPUT)
44
HLDA
PIN 39 (OUTPUT)
www.eazynotes.com
SERIAL INPUT & OUTPUT PORTS (2)
46
SID AND SOD
PIN 4 (INPUT) AND PIN 5 (OUTPUT)
47
THE END !!!
48