
22
ATmega64A [DATASHEET]
8160D–AVR–02/2013
8.5.5
Pull-up and Bus Keeper
The pull-ups on the AD7:0 ports may be activated if the corresponding Port Register is written to one. To reduce
power consumption in sleep mode, it is recommended to disable the pull-ups by writing the Port Register to zero
before entering sleep.
The XMEM interface also provides a Bus Keeper on the AD7:0 lines. The Bus Keeper can be disabled and enabled
Keeper will ensure a defined logic level (zero or one) on the AD7:0 bus when these lines would otherwise be tri-
stated by the XMEM interface.
8.5.6
Timing
External memory devices have different timing requirements. To meet these requirements, the ATmega64A XMEM
interface provides four different wait states as shown in
Table 8-3. It is important to consider the timing specifica-
tion of the external memory device before selecting the wait-state. The most important parameters are the access
time for the external memory compared to the set-up requirement of the ATmega64A. The access time for the
external memory is defined to be the time from receiving the chip select/address until the data of this address actu-
ally is driven on the bus. The access time cannot exceed the time from the ALE pulse is asserted low until data
must be stable during a read sequence (t
ent wait states are set up in software. As an additional feature, it is possible to divide the external memory space in
two sectors with individual wait-state settings. This makes it possible to connect two different memory devices with
different timing requirements to the same XMEM interface. For XMEM interface timing details, please refer to
Fig-Note that the XMEM interface is asynchronous and that the waveforms in the following figures are related to the
internal system clock. The skew between the internal and external clock (XTAL1) is not guaranteed (varies
between devices, temperature, and supply voltage). Consequently the XMEM interface is not suited for synchro-
nous operation.
Figure 8-6.
External Data Memory Cycles without Wait State
(1)(SRWn1 = 0 and SRWn0 =0)
Note:
1. SRWn1 = SRW11 (upper sector) or SRW01 (lower sector), SRWn0 = SRW10 (upper sector) or SRW00 (lower sec-
tor).
The ALE pulse in period T4 is only present if the next instruction accesses the RAM (internal or external).
ALE
T1
T2
T3
Wr
ite
Read
WR
T4
A15:8
Address
Prev. addr.
DA7:0
Address
Data
Prev. data
XX
RD
DA7:0 (XMBK = 0)
Data
Prev. data
Address
Data
Prev. data
Address
DA7:0 (XMBK = 1)
System Clock (CLKCPU)
XXXXX
XXXXXXXX