Dynamic Ram Interfacing
Dynamic Ram Interfacing
)
We have four common types of memory: Read only memory ( ROM ) Flash memory ( EEPROM ) Static Random access memory ( SARAM ) Dynamic Random access memory ( DRAM ). Pin connections common to all memory devices are: The address input, data output or input/outputs, selection input and control input used to select a read or write operation.
M. Krishna Kumar
MM/M3/LU8/V1/2004
Interface (cont..)
Address connections: All memory devices have address inputs that select a memory location within the memory device. Address inputs are labeled from A0 to An. Data connections: All memory devices have a set of data outputs or input/outputs. Today many of them have bidirectional common I/O pins. Selection connections: Each memory device has an input, that selects or enables the memory device. This kind of input is most often called a chip select ( CS ), chip enable ( CE ) or simply select ( S ) input.
M. Krishna Kumar
MM/M3/LU8/V1/2004
A0 A1 A2
ADDRESS CONNECTION
AN
ON
WE CS OE
WRITE
SELECT
READ
Interface (cont..)
RAM memory generally has at least one CS or S input and ROM at least one CE. If the CE, CS, S input is active the memory device perform the read or write. If it is inactive the memory device cannot perform read or write operation. If more than one CS connection is present, all most be active to perform read or write data. Control connections: A ROM usually has only one control input, while a RAM often has one or two control inputs.
M. Krishna Kumar MM/M3/LU8/V1/2004
Interface (cont..)
The control input most often found on the ROM is the output enable ( OE ) or gate ( G ), this allows data to flow out of the output data pins of the ROM. If OE and the selected input are both active, then the output is enable, if OE is inactive, the output is disabled at its high-impedance state. The OE connection enables and disables a set of three-state buffer located within the memory device and must be active to read data.
M. Krishna Kumar
MM/M3/LU8/V1/2004
Interface (cont..)
A RAM memory device has either one or two control inputs. If there is one control input it is often called R/W. This pin selects a read operation or a write operation only if the device is selected by the selection input ( CS ). If the RAM has two control inputs, they are usually labeled WE or W and OE or G. ( WE ) write enable must be active to perform a memory write operation and OE must be active to perform a memory read operation. When these two controls WE and OE are present, they must never be active at the same time.
M. Krishna Kumar
MM/M3/LU8/V1/2004
Interface (cont..)
The ROM read only memory permanently stores programs and data and data was always present, even when power is disconnected. It is also called as nonvolatile memory. EPROM ( erasable programmable read only memory ) is also erasable if exposed to high intensity ultraviolet light for about 20 minutes or less, depending upon the type of EPROM. We have PROM (programmable read only memory ) RMM ( read mostly memory ) is also called the flash memory.
M. Krishna Kumar MM/M3/LU8/V1/2004
Interface (cont..)
The flash memory is also called as an EEPROM (electrically erasable programmable ROM ), EAROM ( electrically alterable ROM ), or a NOVROM ( nonvolatile ROM ). These memory devices are electrically erasable in the system, but require more time to erase than a normal RAM. EPROM contains the series of 27XXX contains the following part numbers : 2704( 512 * 8 ), 2708(1K * 8 ), 2716( 2K * 8 ), 2732( 4K * 8 ), 2764( 8K * 8 ), 27128( 16K * 8) etc..
M. Krishna Kumar MM/M3/LU8/V1/2004
Interface (cont..)
Each of these parts contains address pins, eight data connections, one or more chip selection inputs (CE) and an output enable pin (OE ). This device contains 11 address inputs and 8 data outputs. If both the pin connection CE and OE are at logic 0, data will appear on the output connection . If both the pins are not at logic 0, the data output connections remains at their high impedance or off state. To read data from the EPROM Vpp pin must be placed at a logic 1.
M. Krishna Kumar
MM/M3/LU8/V1/2004
A7 A6 A5 A4 A3 A2 A1 A0 O0 O1 O2 GND
1 2 3 4 5 6 7 8 9 10 11 12
24 23 22 21 20 19 18 17 16 15 14 13
Pin Names
A0 A10 ADDRESSES
CS
CHIP SELECT
O0-O7
OUT PUTS
M. Krishna Kumar
MM/M3/LU8/V1/2004
DATA OUTPUTS O0 O7
CS PD / PGM
OUTPUT BUFFERS
Y-GATING
X DECODER
BLOCK DIAGRAM
M. Krishna Kumar MM/M3/LU8/V1/2004
Interface (cont..)
Static RAM memory device retain data for as long as DC power is applied. Because no special action is required to retain stored data, these devices are called as static memory. They are also called volatile memory because they will not retain data without power. The main difference between a ROM and RAM is that a RAM is written under normal operation, while ROM is programmed outside the computer and is only normally read. The SRAM stores temporary data and is used when the size of read/write memory is relatively small.
M. Krishna Kumar
MM/M3/LU8/V1/2004
1 2 3 4 5 6 7 8 9 10 11 12
24 23 22 21 20 19 18 17 16 15 14 13
A A 0 10 _ W S DQ _ DQ 0 8 G Vss Vcc
ADDRESSES WRITE ENABLE CHIP SELECT DATA IN / DATA OUT OUT PUT ENABLE GROUND + 5 V SUPPLY PIN NAMES
M. Krishna Kumar
MM/M3/LU8/V1/2004
Interface.
The control inputs of this RAM are slightly different from those presented earlier. The OE pin is labeled G, the CS pin S and the WE pin W. This 4016 SRAM device has 11 address inputs and 8 data input/output connections.
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
1.
M. Krishna Kumar
MM/M3/LU8/V1/2004
3.
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
1.
2.
M. Krishna Kumar
MM/M3/LU8/V1/2004
4.
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
A7 A13 16K*1 16K*1 16K*1 16K*1 16K* 16K*1 16K*1 16K*1 A6 A0 1 OE CE OE CE OE CE OE CE OE CE OE CE OE CE OE CE CE1 A7 A13 A7 A13 16K*1 16K*1 16K*1 16K*1 16K*1 16K*1 16K*1 16K*1 A6 A0 OE CE OE CE OE CE OE CE OE CE OE CE OE CE OE CE 7 bit A0-A6 bus MUX Ar0 Ar6 Refresh Ref. Add Refresh timer Counter To transreceivers
M. Krishna Kumar
CE2
A14
+12 V Bank Select X0/OP2 B0 AH0 -AH7 ADDRESS AL0 -AL7 External refresh request Protected Chip Select Read request Write request Refrq. PCS RD WR SACK System Acknowledge
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
M. Krishna Kumar
MM/M3/LU8/V1/2004
S0-S2 8284A RDY 8086 AD0 AD15 A16 A19 BHE OTHER READY INPUTS AD0 AD15
System RD Bus 8288 8288 READ BUS WR XCIEVER CTRLR BHE WRITE ALE A0 ADRAD A12BHE A19 8205 A0 DECODER 8283 A0-A19 LATCH 8267 A1- XCIEVER A16 D A DATA DATA LATCH T A D0-D15 CS
8267 XCEIVER
D0-D15
MM/M3/LU8/V1/2004
Dynamic RAM.
Most of the functions of 8208 and 8203 are similar but 8208 can be used to refresh the dynamic RAM using DMA approach. The memory system is divided into even and odd banks of 256K bytes each, as required for an 8086 system. The inverted AACK output of 8208 latches the A0 and BHE signals required for selecting the banks. If the latched bank select signal and the WE/PCLK output of 8208 both become low. It indicates a write operation to the respective bank.
M. Krishna Kumar
MM/M3/LU8/V1/2004