help creating port for 64KB FRAM

  • Sourcy

    Sourcy - 2014-06-07


    I am interested in creating a port for 64KB FRAM that uses SPI.
    The memory module is located here

    Could someone help me creating a port so that freeRTOS can run this with ATMEGA2560.

    Maybe some tips on how to start


  • Phillip Stevens

    Phillip Stevens - 2014-06-08

    Hey Sourcy,

    there's not much point to build a port for FRAM using SPI. It would take a minimum of system 48 clocks to access one byte of FRAM, which means that the MCU would be restricted to 1/48 of normal speed or 333kHz... probably not ideal.

    If you want more RAM than the 16kB available on the 1284p, then the easiest method is to use SRAM on the 2560, to get up to 512kB. This runs at the typical 16MHz system clock, and is much more transparent in use.

    If you have a clear application for FRAM, then it is probably best to use another MCU such as the TI msp430fr5959.

    Or, build a shield similar to the QuadRAM shield, using the Cypress FM18W08, which can give you 32kB using a parallel address interface off the 2560. But, at over $20 per part, you need to be serious about using FRAM.

    It is sensible to create libraries to access the FRAM from the AVR, but it would be fairly simple to do this using the standard SPI interface tools.

    Last edit: Phillip Stevens 2014-06-08
  • Sourcy

    Sourcy - 2014-06-08

    The only reason I am interested in the FRAM is because I can't seem to purchase the QUADRAM from ruggedcircuit. There site is either down or they are not operational anymore.

    I am interested in external ram for my atmega2560 around 256KB would be more than enough. Do you have any advise for that.



Log in to post a comment.