FM25C256

(Difference between revisions)
Jump to: navigation, search
(Created page with "<div style="height: 790px" class="nonscroll" id="idcontent"><div id="innerdiv"> The FM24C256 library is a library that uses a RAMTRON SPI serial EEPROM. Ramtron memory chips ...")
 
Line 1: Line 1:
<div style="height: 790px" class="nonscroll" id="idcontent"><div id="innerdiv">
+
<div id="idcontent"><div id="innerdiv">
 
The FM24C256 library is a library that uses a RAMTRON SPI serial EEPROM.
 
The FM24C256 library is a library that uses a RAMTRON SPI serial EEPROM.
  
Line 10: Line 10:
 
&nbsp;
 
&nbsp;
  
By using : $lib "fm25c256.lib"
+
By using&nbsp;: $lib "fm25c256.lib"
  
 
The EEPROM read and write routines from the library will be used instead of the internal EEPROM.
 
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
+
Thus you can still use&nbsp;: 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.
 
And you can use READEEPROM and WRITEEEPROM, but instead of using the internal EEPROM, the external I2C EEPROM is used.
Line 30: Line 30:
 
&nbsp;
 
&nbsp;
  
Fram_cs Alias Portl.7 : Const Fram_csp = 7 : Const Fram_csport = Portl
+
Fram_cs Alias Portl.7&nbsp;: Const Fram_csp = 7&nbsp;: Const Fram_csport = Portl
  
Fram_so Alias Pind.1 : Const Fram_sop = 1 : Const Fram_soport = Pind
+
Fram_so Alias Pind.1&nbsp;: Const Fram_sop = 1&nbsp;: Const Fram_soport = Pind
  
Fram_si Alias Portd.0 : Const Fram_sip = 0 : Const Fram_siport = Portd
+
Fram_si Alias Portd.0&nbsp;: Const Fram_sip = 0&nbsp;: Const Fram_siport = Portd
  
Fram_sck Alias Portl.6 : Const Fram_sckp = 6 : Const Fram_sckport = Portl
+
Fram_sck Alias Portl.6&nbsp;: Const Fram_sckp = 6&nbsp;: Const Fram_sckport = Portl
  
 
&nbsp;
 
&nbsp;
Line 44: Line 44:
 
&nbsp;
 
&nbsp;
  
[[File:Notice.jpg|left]]This library is only included in the full version. It is not included with the DEMO.
+
[[File:Notice.jpg|left|Notice.jpg]]This library is only included in the full version. It is not included with the DEMO.
  
  
  
 
{{Languages}}
 
{{Languages}}
 
[[Category:ASM_Libraries_and_Add-Ons]]
 
 
</div></div>
 
</div></div>
 +
[[Category:ASM Libraries and Add-Ons]]

Revision as of 20:20, 5 February 2013

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