Professional Documents
Culture Documents
what-when-how.com/8051-microcontroller/803151-interfacing-with-external-rom/
1/6
2/6
address path. As a result, to extract the addresses from the PO pins we connect PO to a 74LS373 latch (see Figure
14-8) and use the ALE pin to latch the address as shown in Figure 14-9. This extracting of addresses from PO is
called address/data demultiplexing.
3/6
Figure 14-10. Data, Address, and Control Buses for the 8031
(For reset and crystal connection, see Chapter 4.)
PSEN
Another important signal for the 8031/51 is the PSEN (program store enable) signal. PSEN is an output signal for
the 8031/51 microcontroller and must be connected to the OE pin of a ROM containing the program code. In other
words, to access external ROM containing program code, the 8031/51 uses the PSEN signal. It is important to
emphasize the role of EA and PSEN when con-
necting the 8031/51 to external ROM. When the EA pin is connected to GND, the 8031/51 fetches opcode from
external ROM by using PSEN. Notice in Figure 14-11 the connection of the PSEN pin to the OE pin of ROM. In
systems based on the 8751/89C51/DS5000 where EA is connected to VCC, these chips do not activate the PSEN
pin. This indicates that the on-chip ROM contains program code.
In systems where the external ROM contains the program code, burning the program into ROM leaves the
microcontroller chip untouched. This is preferable in some applications due to flexibility. In such applications the
software is updated via the serial or parallel ports of the IBM PC. This is especially the case during software
development and this method is widely used in many 8051-based trainers and emulators.
4/6
5/6
6/6