Interface library for Ramtron FRAM memory, FM25VXX series.

You are viewing an older revision! See the latest version

Homepage

Code sample:

<code>

  1. include "mbed.h"
  2. include "FRAMSPI.h"

SPI spi(p5,p6,p7); FRAMSPI fram(spi,p8); Serial pc(USBTX, USBRX);

int main() { char wdata[] = "Hello world!"; char rdata[14];

fram.write(0, wdata, 13); 12 symbols + zero terminator fram.read(0, rdata, 13);

pc.printf("data: %s", rdata); } </code>


All wikipages