C8051F340/1/2/3/4/5/6/7
13.3. Configuring the External Memory Interface
Configuring the External Memory Interface consists of five steps:
1.Configure the Output Modes of the associated port pins as either
2.Configure Port latches to “park” the EMIF pins in a dormant state (usually by setting them to logic ‘1’).
3.Select Multiplexed mode or
4.Select the memory mode
5.Set up timing to interface with
Each of these five steps is explained in detail in the following sections. The Port selection, Multiplexed mode selection, and Mode bits are located in the EMI0CF register shown in SFR Definition 13.2.
13.4. Port Configuration
The External Memory Interface appears on Ports 4, 3, 2, and 1 when it is used for
through Port 3)” on page 147.
The External Memory Interface claims the associated Port pins for memory operations ONLY during the execution of an
Port latches should be explicitly configured to ‘park’ the External Memory Interface pins in a dor- mant 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 driv- ers 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
Rev. 0.5 | 119 |