Component: FRAM MB85RC (EEPROM): Difference between revisions
Appearance
m Text replacement - "width="10%" align="center" style="background-color:#D8C9D8;"" to "width="10%" align="center" class="mtx-class-macrohead"" |
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead"" |
||
| Line 31: | Line 31: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 45: | Line 45: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 59: | Line 59: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 73: | Line 73: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 87: | Line 87: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 106: | Line 106: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 125: | Line 125: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 144: | Line 144: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 163: | Line 163: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 192: | Line 192: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 216: | Line 216: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 240: | Line 240: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 264: | Line 264: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 288: | Line 288: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]] | | 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 318: | Line 318: | ||
|- | |- | ||
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | | width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]] | ||
| width="90%" | | width="90%" class="mtx-class-macrohead" | '''Properties''' | ||
|- | |- | ||
|- | |- | ||
Revision as of 14:22, 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