This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

External memory interface

Hello,

I'm using an STR710fz2 ARM7 processor, and I need to interface with the external memory bus. The datasheet discusses timing and wait states, but I haven't seen any software application examples that actually show how to implement this interface. Does anyone have any example code?

Thanks,
Andy

Parents
  • GPIO_Config(GPIO2, 3, GPIO_AF_PP)
    EMI->BCON0 = 0x800D;
    EMI->BCON1 = 0x800D;

    Will enable external memory interface banks 0 and 1, 16-bit wide interface and set them to 3 wait state access time. After this, ny memory access in the 0x60000000 (bank 0) or 0x62000000 (bank 1) will select the apporopriate Chip select lines, address lines and RD/WR lines (and use the data lines either in or out)

Reply
  • GPIO_Config(GPIO2, 3, GPIO_AF_PP)
    EMI->BCON0 = 0x800D;
    EMI->BCON1 = 0x800D;

    Will enable external memory interface banks 0 and 1, 16-bit wide interface and set them to 3 wait state access time. After this, ny memory access in the 0x60000000 (bank 0) or 0x62000000 (bank 1) will select the apporopriate Chip select lines, address lines and RD/WR lines (and use the data lines either in or out)

Children