Lec 7
Lec 7
Lecture 7
by
8/12/2013
1
1. Addressing decoding and
memory addresses
Review Example: Analyze the possible logic levels of
the memory chip (2732 EPROM).
2
1. Addressing decoding and
memory addresses
• We have 16 address lines.
• A12 – A15 must be 000 to assert chip enable.
• A0 – A11 can assume any combination from all 0s to all 1s.
(we have 4096 registers, so we need 12 address)
• A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
0000 H 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
0 F F F
0FFF H 0 0 0 0 1 1 1 1 1 1 1 1 1 1 1 1
Chip Enable Register Select
1.For registers selection, we have 4096 register, so we need 12 address
lines (212 ) from 0000 H to 0FFF H.
3
2. For chip select we need 0H to 0H, since the output line on O0.
Reading signal
4
Homework: Analyze the possible logic levels of the
memory chip 6116 Memory and draw the address
decoding and writing from memory through the interfacing
with 8085 MPU
5
2. Case study: Interfacing the
8155
• The 8155 is a special chip designed by Intel to
work with the 8085 to demonstrate the
interfacing of the 8085 MPU.
• The 8155 has 256 bytes of RAM, 2
programmable I/O ports and a timer.
• It is usually used in systems designed for use in
university labs.
9
2.2 Memory interfacing in
8155
A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0
2100 H 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0
21FF H
0 0 1 0 0 0 0 1 1 1 1 1 1 1 1 1
Chip Enable Don’t care Register Select
• A8, A9 and A10 are don care lines, means they could be 0s or
1s (don’t care).
• When they are all 0s the starting range will be 2000 H – 20FF
H and when only A8 be 1 the address will be 2100 H – 21FF H
and when all of they be 1s, the address will be 2700 H – 27FF
H.
• All of the above addresses are pointed at the same memory 10
registers (memory fold back).
3. Testing Memory Interfacing
Circuits
• Testing a memory chip in an existing system is as easy as
loading a byte at a specific address and then verifying
that it was loaded.
12