English
Language : 

C8051F02X Datasheet, PDF (146/272 Pages) Silicon Laboratories – 8K ISP FLASH MCU Family
C8051F020/1/2/3
16.2. Configuring the External Memory Interface
Configuring the External Memory Interface consists of four steps:
1. Select EMIF on Low Ports (P3, P2, P1, and P0) or High Ports (P7, P6, P5, and P4).
2. Select Multiplexed mode or Non-multiplexed mode.
3. Select the memory mode (on-chip only, split mode without bank select, split mode with bank select, or
off-chip only).
4. Set up timing to interface with off-chip memory or peripherals.
5. Select the desired output mode for the associated Ports (registers PnMDOUT, P74OUT).
Each of these four steps is explained in detail in the following sections. The Port selection, Multiplexed mode selec-
tion, and Mode bits are located in the EMI0CF register shown in Figure 16.2.
16.3. Port Selection and Configuration
The External Memory Interface can appear on Ports 3, 2, 1, and 0 (C8051F020/1/2/3 devices) or on Ports 7, 6, 5, and
4 (C8051F020/2 devices only), depending on the state of the PRTSEL bit (EMI0CF.5). If the lower Ports are selected,
the EMIFLE bit (XBR2.1) must be set to a ‘1’ so that the Crossbar will skip over P0.7 (/WR), P0.6 (/RD), and if mul-
tiplexed mode is selected P0.5 (ALE). For more information about the configuring the Crossbar, see Section
“17. PORT INPUT/OUTPUT” on page 161.
The External Memory Interface claims the associated Port pins for memory operations ONLY during the execution of
an off-chip MOVX instruction. Once the MOVX instruction has completed, control of the Port pins reverts to the Port
latches or to the Crossbar (on Ports 3, 2, 1, and 0). See Section “17. PORT INPUT/OUTPUT” on page 161 for
more information about the Crossbar and Port operation and configuration. The Port latches should be explicitly
configured to ‘park’ the External Memory Interface pins in a dormant state, most commonly by setting them
to a logic 1.
During the execution of the MOVX instruction, the External Memory Interface will explicitly disable the drivers on
all Port pins that are acting as Inputs (Data[7:0] during a READ operation, for example). The Output mode of the Port
pins (whether the pin is configured as Open-Drain or Push-Pull) is unaffected by the External Memory Interface oper-
ation, and remains controlled by the PnMDOUT registers. See Section “17. PORT INPUT/OUTPUT” on page 161
for more information about Port output mode configuration.
146
Rev. 1.4