Here are the steps to interface external RAM to 8051 microcontroller:
1. Connect the RD pin of 8051 to the OE (Output Enable) pin of the external RAM. This will enable the RAM during read operations.
2. Connect the WR pin of 8051 to the WE (Write Enable) pin of the external RAM. This will enable writing into the RAM during write operations.
3. Connect the active low input of a NAND gate to the CE (Chip Enable) pin of the external RAM.
4. Connect the other input of the NAND gate to EA pin of 8051.
5. Connect the output of the NAND gate to the PSEN (Program Store Enable