8051 memory interface
8051 memory interface
Port 0 is used as multiplexed data & address lines. It gives lower order (A7-A0) 8bit address in
initial T cycle & higher order (A8-A15) used as data bus.
8 bit address is latched using external latch & ALE signal from 8051.
Port 2 provides higher order (A15-A8) 8 bit address.
PSEN is used to activate the output enable signal of external ROM/EPROM.
EA Pin
EA, "external access", is an input pin and must be connected to Vcc or GND
The 8051 family members all come with on-chip ROM to store programs
The 8031 and 8032 family members do no have on-chip ROM, so code is stored on an
external ROM and is fetched by 8031/32
EA pin must be connected to GND to indicate that the code is stored externally
PSEN
PSEN, "program store enable", is an output pin
This pin is connected to the OE pin of the ROM
ALE
Above figure shows how to connect or interface external RAM (data memory) to 8051.
EA Pin
EA, "external access", is an input pin and must be connected to Vcc or GND
The 8051 family members all come with on-chip ROM to store programs
The 8031 and 8032 family members do no have on-chip ROM, so code is stored on an
external ROM and is fetched by 8031/32
EA pin must be connected to GND to indicate that the code is stored externally
ALE