Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] Re: Writing to FLASH from RAM

2004-11-24 by roucheux@aol.com

The fastest way is with spi FRAM like FM25L256 (up to 25 mhz clock) 
But in a lpc21xx if i'm right, SPI is limited to clk/8 or 7.5 mhz for an  
internal freq of 60Mhz.
For a FM25L256 (32k*8) 8 pins it's quite 750Ko/s storege in sequential  mode.
I apologize for a mistyping in my previous message about chip  reference.
 
SPI read write routine is as simple as that
 
unsigned char _getput_spi(unsigned char mydata)
{
rSP0DR =  mydata;                 // send mydata byte
    while ((rSP0SR&0x80) == 0); // wait for data  transfer complete
    return  rSP0DR;                      // return read byte  
}




[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.