ATmega2560
Hardware definitions
Loading...
Searching...
No Matches
XMEM.h

Purpose: External memory interface buses and control registers.

Namespace: atmega2560::xmem.

The external memory bus multiplexes AD0..AD7 on PA0..PA7 and exposes A8..A15 on PC0..PC7; ALE is PG2, RD is PG1 and WR is PG0. Address decoding and wait states use XMCRA/XMCRB.

namespace mcu = atmega2560;
static_assert(mcu::xmem::external_memory_start == 0x2200, "ATmega2560 XMEM definition");
External memory interface buses and control registers.
ATmega2560 hardware definitions.
Definition ADC.h:15

Bus connections

Function Port / pins
AD0–AD7 PA0–PA7
A8–A15 PC0–PC7
ALE PG2
RD PG1
WR PG0

External SRAM is mapped at 0x2200 and above when XMEM is enabled. Internal SRAM remains at 0x0200–0x21FF. Sharing pins with XMEM reduces available GPIO.

These are hardware definitions, not runtime register access or initialization.

Source: ATmega2560 datasheet (DS40002211A).