Jump to content

Component: FRAM MB85RC (EEPROM): Difference between revisions

From Flowcode Help
m Text replacement - "style="background-color:#EAE1EA;"" to "class="mtx-class-propfolder""
 
(5 intermediate revisions by the same user not shown)
Line 28: Line 28:


===DisableWriteProtect===
===DisableWriteProtect===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''DisableWriteProtect'''
| 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 42: Line 42:


===EnableWriteProtect===
===EnableWriteProtect===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EnableWriteProtect'''
| 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 56: Line 56:


===EraseDevice===
===EraseDevice===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''EraseDevice'''
| 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 70: Line 70:


===Initialise===
===Initialise===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Initialise'''
| 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 84: Line 84:


===Read===
===Read===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Read'''
| 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 103: Line 103:


===ReadFloat===
===ReadFloat===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadFloat'''
| 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 122: Line 122:


===ReadInt===
===ReadInt===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadInt'''
| 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 141: Line 141:


===ReadLong===
===ReadLong===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadLong'''
| 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 160: Line 160:


===ReadPage===
===ReadPage===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''ReadPage'''
| 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 189: Line 189:


===Write===
===Write===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Write'''
| 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 213: Line 213:


===WriteFloat===
===WriteFloat===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteFloat'''
| 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 237: Line 237:


===WriteInt===
===WriteInt===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteInt'''
| 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 261: Line 261:


===WriteLong===
===WriteLong===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WriteLong'''
| 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 285: Line 285:


===WritePage===
===WritePage===
{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" align="center" | [[File:Fc9-comp-macro.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-comp-macro.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''WritePage'''
| 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 315: Line 315:
==Property reference==
==Property reference==


{| class="wikitable" style="width:60%; background-color:#FFFFFF;"
{| class="mtx-class-macrotable wikitable"
|-
|-
| width="10%" align="center" style="background-color:#D8C9D8;" | [[File:Fc9-prop-icon.png]]
| width="10%" align="center" class="mtx-class-macrohead" | [[File:Fc9-prop-icon.png]]
| width="90%" style="background-color:#D8C9D8; color:#4B008D;" | '''Properties'''  
| width="90%" class="mtx-class-macrohead" | '''Properties'''  
|-
|-
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Device Settings
| 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" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
| 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" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" class="mtx-class-propfolder" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
| 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.

FRAM Test

Macro reference

DisableWriteProtect

DisableWriteProtect
Disables write protection on the FRAM device. Returns error code: 0=success 
- BYTE Return


EnableWriteProtect

EnableWriteProtect
Enables write protection on the FRAM device. Returns error code: 0=success 
- BYTE Return


EraseDevice

EraseDevice
Erases the entire FRAM device by writing zeros to all memory locations. Returns error code: 0=success, 1-4=error 
- BYTE Return


Initialise

Initialise
Initializes the I2C interface and prepares the FRAM device for operation. Returns error code: 0=success, 1-4=error 
- BYTE Return


Read

Read
Reads a single byte from the specified FRAM address. Returns the byte value read, or 0xFF on error. 
- ULONG Address
Memory address to read from 
- BYTE 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. 
- ULONG Address
Memory address to read from 
- FLOAT Return


ReadInt

ReadInt
Reads a 16-bit signed integer (INT) from the specified FRAM address. Returns the integer value read, or 0 on error. 
- ULONG Address
Memory address to read from 
- INT Return


ReadLong

ReadLong
Reads a 32-bit signed integer (LONG) from the specified FRAM address. Returns the long value read, or 0 on error. 
- ULONG Address
Memory address to read from 
- LONG Return


ReadPage

ReadPage
Reads multiple bytes starting from the specified address. Returns number of bytes read, or 0 on error. 
- ULONG Address
Starting memory address 
- BYTE Data
Buffer to store read data 
- UINT Count
Number of bytes to read 
- UINT Return


Write

Write
Writes a single byte to the specified FRAM address. Returns error code: 0=success, 1-4=error 
- ULONG Address
Memory address to write to 
- BYTE Data
Byte value to write 
- BYTE Return


WriteFloat

WriteFloat
Writes a 32-bit floating point value (FLOAT) to the specified FRAM address. Returns error code: 0=success, 1-4=error 
- ULONG Address
Memory address to write to 
- FLOAT Data
Float value to write 
- BYTE Return


WriteInt

WriteInt
Writes a 16-bit signed integer (INT) to the specified FRAM address. Returns error code: 0=success, 1-4=error 
- ULONG Address
Memory address to write to 
- INT Data
Integer value to write 
- BYTE Return


WriteLong

WriteLong
Writes a 32-bit signed integer (LONG) to the specified FRAM address. Returns error code: 0=success, 1-4=error 
- ULONG Address
Memory address to write to 
- LONG Data
Long value to write 
- BYTE Return


WritePage

WritePage
Writes multiple bytes starting from the specified address. Returns number of bytes written, or 0 on error. 
- ULONG Address
Starting memory address 
- BYTE Data
Buffer containing data to write 
- UINT Count
Number of bytes to write 
- UINT Return


Property reference

Properties
Device Settings
Device Address
I2C device address bits (A2, A1, A0). Default is 0x50 (0b1010000). For 1M devices, use two component instances with addresses ending in 0 and 1. 
Device Type
Select the FRAM device type 
Memory Size (bytes)
Calculated memory size based on device type 
Address Bits
Number of address bits for selected device 
Connections
Channel
Channel selection 
SDA
Pin used for SDA (data signal) 
SDA Remap Pin
 
SCL
Pin used for SCL (clock signal) 
SCL Remap Pin
 
Stop Delay
On older microcontroller devices there is a potential for the I2C hardware channel to lock up if there is not a 10ms delay between an I2C stop event and the next I2C start event. 
Baud Select
Baud rate option selector 
Baud Rate
Baud rate to be used 
Simulation
Scope Traces
Selects if the scope traces are automatically generated or not 
Console Data
Selects if the console data is automatically generated or not 
API
Specifies the API component on the panel to interact with to provide comms simulation. 

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