FM25C256/de

From MCS Wiki AVR
Jump to: navigation, search
== (**COPIED FROM ENGLISH PAGE**) ==

The FM24C256 library is a library that uses a RAMTRON SPI serial EEPROM.

Ramtron memory chips are as quick as RAM and can be overwritten almost unlimited times.

 

An external EEPROM is a safe alternative to the internal EEPROM. You can also increase the size of the EEPROM this way.

 

By using : $lib "fm25c256.lib"

The EEPROM read and write routines from the library will be used instead of the internal EEPROM.

Thus you can still use : Dim BE as ERAM Byte

And you can use READEEPROM and WRITEEEPROM, but instead of using the internal EEPROM, the external I2C EEPROM is used.

The lib is for the FM25C256. It uses SPI

 

 

For the SPI you have to define the pins. The pin named fram_so is connected to SO of the FRAM. SI is connected to SI.

A sample is shown below. The clock and, cs and SI pins need to be configured as output pins.

 

Fram_cs Alias Portl.7 : Const Fram_csp = 7 : Const Fram_csport = Portl

Fram_so Alias Pind.1 : Const Fram_sop = 1 : Const Fram_soport = Pind

Fram_si Alias Portd.0 : Const Fram_sip = 0 : Const Fram_siport = Portd

Fram_sck Alias Portl.6 : Const Fram_sckp = 6 : Const Fram_sckport = Portl

 

Of course you can also use a cheaper normal SPI EEPROM. These are slower and have less write cycles.

 

Notice.jpg
This library is only included in the full version. It is not included with the DEMO.


Languages   English Deutsch  
Personal tools
Namespaces
Variants
Actions
Navigation
In other languages
Language