Component: FRAM MB85RC (EEPROM): Difference between revisions
Appearance
m Text replacement - "class="wikitable" style="width:60%; background-color:#FFFFFF;"" to "class="mtx-class-macrotable wikitable"" |
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder"" |
||
| (4 intermediate revisions by the same user not shown) | |||
| Line 30: | Line 30: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''DisableWriteProtect''' | ||
|- | |- | ||
| colspan="2" | Disables write protection on the FRAM device. Returns error code: 0=success | | colspan="2" | Disables write protection on the FRAM device. Returns error code: 0=success | ||
| Line 44: | Line 44: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''EnableWriteProtect''' | ||
|- | |- | ||
| colspan="2" | Enables write protection on the FRAM device. Returns error code: 0=success | | colspan="2" | Enables write protection on the FRAM device. Returns error code: 0=success | ||
| Line 58: | Line 58: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''EraseDevice''' | ||
|- | |- | ||
| colspan="2" | Erases the entire FRAM device by writing zeros to all memory locations. Returns error code: 0=success, 1-4=error | | colspan="2" | Erases the entire FRAM device by writing zeros to all memory locations. Returns error code: 0=success, 1-4=error | ||
| Line 72: | Line 72: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Initialise''' | ||
|- | |- | ||
| colspan="2" | Initializes the I2C interface and prepares the FRAM device for operation. Returns error code: 0=success, 1-4=error | | colspan="2" | Initializes the I2C interface and prepares the FRAM device for operation. Returns error code: 0=success, 1-4=error | ||
| Line 86: | Line 86: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Read''' | ||
|- | |- | ||
| colspan="2" | Reads a single byte from the specified FRAM address. Returns the byte value read, or 0xFF on error. | | colspan="2" | Reads a single byte from the specified FRAM address. Returns the byte value read, or 0xFF on error. | ||
| Line 105: | Line 105: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadFloat''' | ||
|- | |- | ||
| colspan="2" | Reads a 32-bit floating point value (FLOAT) from the specified FRAM address. Returns the float value read, or 0.0 on error. | | colspan="2" | Reads a 32-bit floating point value (FLOAT) from the specified FRAM address. Returns the float value read, or 0.0 on error. | ||
| Line 124: | Line 124: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadInt''' | ||
|- | |- | ||
| colspan="2" | Reads a 16-bit signed integer (INT) from the specified FRAM address. Returns the integer value read, or 0 on error. | | colspan="2" | Reads a 16-bit signed integer (INT) from the specified FRAM address. Returns the integer value read, or 0 on error. | ||
| Line 143: | Line 143: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadLong''' | ||
|- | |- | ||
| colspan="2" | Reads a 32-bit signed integer (LONG) from the specified FRAM address. Returns the long value read, or 0 on error. | | colspan="2" | Reads a 32-bit signed integer (LONG) from the specified FRAM address. Returns the long value read, or 0 on error. | ||
| Line 162: | Line 162: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''ReadPage''' | ||
|- | |- | ||
| colspan="2" | Reads multiple bytes starting from the specified address. Returns number of bytes read, or 0 on error. | | colspan="2" | Reads multiple bytes starting from the specified address. Returns number of bytes read, or 0 on error. | ||
| Line 191: | Line 191: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Write''' | ||
|- | |- | ||
| colspan="2" | Writes a single byte to the specified FRAM address. Returns error code: 0=success, 1-4=error | | colspan="2" | Writes a single byte to the specified FRAM address. Returns error code: 0=success, 1-4=error | ||
| Line 215: | Line 215: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WriteFloat''' | ||
|- | |- | ||
| colspan="2" | Writes a 32-bit floating point value (FLOAT) to the specified FRAM address. Returns error code: 0=success, 1-4=error | | colspan="2" | Writes a 32-bit floating point value (FLOAT) to the specified FRAM address. Returns error code: 0=success, 1-4=error | ||
| Line 239: | Line 239: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WriteInt''' | ||
|- | |- | ||
| colspan="2" | Writes a 16-bit signed integer (INT) to the specified FRAM address. Returns error code: 0=success, 1-4=error | | colspan="2" | Writes a 16-bit signed integer (INT) to the specified FRAM address. Returns error code: 0=success, 1-4=error | ||
| Line 263: | Line 263: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WriteLong''' | ||
|- | |- | ||
| colspan="2" | Writes a 32-bit signed integer (LONG) to the specified FRAM address. Returns error code: 0=success, 1-4=error | | colspan="2" | Writes a 32-bit signed integer (LONG) to the specified FRAM address. Returns error code: 0=success, 1-4=error | ||
| Line 287: | Line 287: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''WritePage''' | ||
|- | |- | ||
| colspan="2" | Writes multiple bytes starting from the specified address. Returns number of bytes written, or 0 on error. | | colspan="2" | Writes multiple bytes starting from the specified address. Returns number of bytes written, or 0 on error. | ||
| Line 317: | Line 317: | ||
{| class="mtx-class-macrotable wikitable" | {| class="mtx-class-macrotable wikitable" | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Device Settings | ||
|- | |- | ||
|- | |- | ||
| Line 345: | Line 345: | ||
| colspan="2" | Number of address bits for selected device | | colspan="2" | Number of address bits for selected device | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Connections | ||
|- | |- | ||
|- | |- | ||
| Line 389: | Line 389: | ||
| colspan="2" | Baud rate to be used | | colspan="2" | Baud rate to be used | ||
|- | |- | ||
| width="10%" align="center" | | width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-propfolder" | Simulation | ||
|- | |- | ||
|- | |- | ||
Latest revision as of 14:37, 13 July 2026
| Author | Matrix TSL |
| Version | 1.0 |
| Category | EEPROM |
FRAM MB85RC component
I2C Ferroelectric Random Access Memory (FRAM) component for Fujitsu MB85RC and Cypress FM24/CY15B series devices. Supports 4K to 1M devices. Based on FRAM_MB85RC_I2C Arduino library.
Detailed description
No detailed description exists yet for this component
Examples
Here's a simple file to test the functionality of the FRAM device.
Macro reference
DisableWriteProtect
| DisableWriteProtect | |
| Disables write protection on the FRAM device. Returns error code: 0=success | |
| Return | |
EnableWriteProtect
| EnableWriteProtect | |
| Enables write protection on the FRAM device. Returns error code: 0=success | |
| Return | |
EraseDevice
| EraseDevice | |
| Erases the entire FRAM device by writing zeros to all memory locations. Returns error code: 0=success, 1-4=error | |
| Return | |
Initialise
| Initialise | |
| Initializes the I2C interface and prepares the FRAM device for operation. Returns error code: 0=success, 1-4=error | |
| Return | |
Read
| Read | |
| Reads a single byte from the specified FRAM address. Returns the byte value read, or 0xFF on error. | |
| Address | |
| Memory address to read from | |
| Return | |
ReadFloat
| ReadFloat | |
| Reads a 32-bit floating point value (FLOAT) from the specified FRAM address. Returns the float value read, or 0.0 on error. | |
| Address | |
| Memory address to read from | |
| Return | |
ReadInt
| ReadInt | |
| Reads a 16-bit signed integer (INT) from the specified FRAM address. Returns the integer value read, or 0 on error. | |
| Address | |
| Memory address to read from | |
| Return | |
ReadLong
| ReadLong | |
| Reads a 32-bit signed integer (LONG) from the specified FRAM address. Returns the long value read, or 0 on error. | |
| Address | |
| Memory address to read from | |
| Return | |
ReadPage
Write
| Write | |
| Writes a single byte to the specified FRAM address. Returns error code: 0=success, 1-4=error | |
| Address | |
| Memory address to write to | |
| Data | |
| Byte value to write | |
| Return | |
WriteFloat
WriteInt
WriteLong
WritePage
Property reference
Component Source Code
Please click here to download the component source project: FC_Comp_Source_FRAM_MB85RC.fcfx
Please click here to view the component source code (Beta): FC_Comp_Source_FRAM_MB85RC.fcfx