KEMBAR78
Interfacing external memory in 8051 | PPTX
By
E.M.Roopa Devi
Kongu Engineering College
8031/51 INTERFACING WITH
EXTERNAL ROM
 8031 chip is a ROMless version of the 8051. In
other words, it is exactly like any member of the
8051 family such as the 8751 or 89C51 as far as
executing the instructions and features are
concerned, but it has no on-chip ROM.
 Therefore, to make the 8031 execute 8051 code,
it must be connected to external ROM memory
containing the program code.
 EA pin to Vcc to indicate that the program code is
stored in the microcontroller’s on-chip ROM. To
indicate that the program code is stored in
external ROM, this pin must be connected to
GND.
 Since the PC (program counter) of the 8031/51 is 16-bit, it is
capable of accessing up to 64K bytes of program code. In the
8031/51, port 0 and port 2 provide the 16-bit address to access
external memory.
 Of these two ports, PO provides the lower 8 bit addresses AO –
A7, and P2 provides the upper 8 bit addresses A8 – A15. More
importantly, PO is also used to provide the 8-bit data bus DO –
D7. In other words, pins PO.O – P0.7 are used for both the
address and data paths.
 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
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 connecting the 8031/51 to
external ROM.
 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.
Show the design of an 8031/51 based system with 8k
bytes of program ROM and 8k bytes of data ROM
For program ROM,PSEN is used to activate both OE and
CE.
Interfacing external memory in 8051
Interfacing external memory in 8051
Interfacing external memory in 8051
Interfacing external memory in 8051

Interfacing external memory in 8051

  • 1.
    By E.M.Roopa Devi Kongu EngineeringCollege 8031/51 INTERFACING WITH EXTERNAL ROM
  • 2.
     8031 chipis a ROMless version of the 8051. In other words, it is exactly like any member of the 8051 family such as the 8751 or 89C51 as far as executing the instructions and features are concerned, but it has no on-chip ROM.  Therefore, to make the 8031 execute 8051 code, it must be connected to external ROM memory containing the program code.  EA pin to Vcc to indicate that the program code is stored in the microcontroller’s on-chip ROM. To indicate that the program code is stored in external ROM, this pin must be connected to GND.
  • 4.
     Since thePC (program counter) of the 8031/51 is 16-bit, it is capable of accessing up to 64K bytes of program code. In the 8031/51, port 0 and port 2 provide the 16-bit address to access external memory.  Of these two ports, PO provides the lower 8 bit addresses AO – A7, and P2 provides the upper 8 bit addresses A8 – A15. More importantly, PO is also used to provide the 8-bit data bus DO – D7. In other words, pins PO.O – P0.7 are used for both the address and data paths.  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
  • 5.
    PSEN  Another importantsignal 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 connecting the 8031/51 to external ROM.
  • 6.
     In systemswhere 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.
  • 7.
    Show the designof an 8031/51 based system with 8k bytes of program ROM and 8k bytes of data ROM For program ROM,PSEN is used to activate both OE and CE.