EBI (External Bus Interface) SDRAM Controller allows to connect a SDRAM to the microcontroller.
Macros | |
#define | SDRAM ((void *)AVR32_EBI_CS1_0_ADDRESS) |
Pointer to SDRAM. More... | |
#define | SDRAM_SIZE |
SDRAM size. More... | |
Functions | |
void | sdram_enter_self_refresh (void) |
Set the SDRAM in self refresh mode. The SELF REFRESH command can be used to retain data in the SDRAM, even if the rest of the system is powered down. When in the self refresh mode, the SDRAM retains data without external clocking. More... | |
void | sdram_exit_self_refresh (void) |
Exit from the SDRAM self refresh mode, inhibits self refresh mode. More... | |
void | sdramc_init (unsigned long hsb_hz) |
Initializes the AVR32 SDRAM Controller and the connected SDRAM(s). More... | |
#define SDRAM ((void *)AVR32_EBI_CS1_0_ADDRESS) |
Pointer to SDRAM.
Referenced by sdramc_init().
#define SDRAM_SIZE |
SDRAM size.
void sdram_enter_self_refresh | ( | void | ) |
Set the SDRAM in self refresh mode. The SELF REFRESH command can be used to retain data in the SDRAM, even if the rest of the system is powered down. When in the self refresh mode, the SDRAM retains data without external clocking.
void sdram_exit_self_refresh | ( | void | ) |
Exit from the SDRAM self refresh mode, inhibits self refresh mode.
void sdramc_init | ( | unsigned long | hsb_hz | ) |
Initializes the AVR32 SDRAM Controller and the connected SDRAM(s).
hsb_hz | HSB frequency in Hz (the HSB frequency is applied to the SDRAMC and to the SDRAM). |
References ATPASTE2, SDRAM, SDRAM_BANK_BITS, SDRAM_CAS, SDRAM_COL_BITS, SDRAM_DBW, SDRAM_INIT_AUTO_REFRESH_COUNT, SDRAM_ROW_BITS, SDRAM_STABLE_CLOCK_INIT_DELAY, SDRAM_TMRD, SDRAM_TR, SDRAM_TRAS, SDRAM_TRC, SDRAM_TRCD, SDRAM_TRFC, SDRAM_TRP, SDRAM_TWR, SDRAM_TXSR, sdramc_enable_muxed_pins(), sdramc_ns_delay, and sdramc_us_delay.
Referenced by load_sdram_data().