This example demonstrates how to use the external bus interface driver.
The external bus interface driver is described in the External Bus Interface (EBI) section.
All AVR XMEGA devices with an external bus interface (EBI) and a SDRAM wired to the EBI can be used. This example has been tested with the following setup:
The example code is configurable by defining the following symbols in the conf_board.h header file.
The example will configure the external bus interface to address the SDRAM device at a board configurable address. The SDRAM will addressable through Data in Huge Data Memory Space.
After configuring the external bus interface and initializing the SDRAM the example code will run through three test applications which can detect faults to address lines, data lines and finally a data integrity test which will write both 0s and 1s to the entire SDRAM device.
This example uses the on-board LEDs to provide user feedback, the output from the LEDs are as follows:
If LED7 lights up before LED0 to LED4 has been lit, then the first of the missing lit LEDs indicates that the corresponding test has failed.
The test requires about 25 seconds to complete on an 8 MB SDRAM device with a 64 MHz EBI configuration.
This example depends on the following modules:
This software was written for the GNU GCC and IAR for AVR. Other compilers may or may not work.
For further information, visit Microchip.