English
Language : 

SAB80515 Datasheet, PDF (27/270 Pages) Siemens Semiconductor Group – 8-Bit Single-Chip Microcontroller Family
External Bus Interface
5
External Bus Interface
The SAB 80(C)515 allows for external memory expansion. To accomplish this, the external bus
interface common to most 8051-based controllers is employed.
5.1 Accessing External Memory
lt is possible to distinguish between accesses to external program memory and external data
memory or other peripheral components respectively. This distinction is made by hardware:
accesses to external program memory use the signal PSEN (program store enable) as a read
strobe. Accesses to external data memory use RD and WR to strobe the memory (alternate
functions of P3.7 and P3.6, see section 7.1.). Port 0 and port 2 (with exceptions) are used to provide
data and address signals. In this section only the port 0 and port 2 functions relevant to external
memory accesses are described (for further details see chapter 7.1).
Fetches from external program memory always use a 16-bit address. Accesses to external data
memory can use either a 16-bit address (MOVX @DPTR) or an 8-bit address (MOVX @Ri).
Role of P0 and P2 as Data/Address Bus
When used for accessing external memory, port 0 provides the data byte time-multiplexed with the
low byte of the address. In this state, port 0 is disconnected from its own port latch, and the address/
data signal drives both FETs in the port 0 output buffers. Thus, in this application, the port 0 pins
are not open-drain outputs and do not require external pullup resistors.
During any access to external memory, the CPU writes 0FFH to the port 0 latch (the special function
register), thus obliterating whatever information the port 0 SFR may have been holding.
Whenever a 16-bit address is used, the high byte of the address comes out on port 2, where it is
held for the duration of the read or write cycle. During this time, the port 2 lines are disconnected
from the port 2 latch (the special function register).
Thus the port 2 latch does not have to contain 1 s, and the contents of the port 2 SFR are not
modified.
lf an 8-bit address is used (MOVX @Ri), the contents of the port 2 SFR remain at the port 2 pins
throughout the external memory cycle. This will facilitate paging. lt should be noted that, if a port 2
pin outputs an address bit that is a 1, strong pullups will be used for the entire read/write cycle and
not only for two oscillator periods.
Semiconductor Group
27