Jump to content

Component: FRAM MB85RC (EEPROM): Difference between revisions

From Flowcode Help
m Text replacement - "width="90%" style="background-color:#D8C9D8; color:#4B008D;"" to "width="90%" class="mtx-class-macrohead""
m Text replacement - "style="background-color:#EAE1EA; color:#4B008D;"" to "class="mtx-class-propfolder""
Line 322: Line 322:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Device Settings
| width="90%" class="mtx-class-propfolder" | Device Settings
|-
|-
|-
|-
Line 346: Line 346:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Connections
| width="90%" class="mtx-class-propfolder" | Connections
|-
|-
|-
|-
Line 390: Line 390:
|-
|-
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="10%" align="center" style="background-color:#EAE1EA;" | [[File:Fc9-conn-icon.png]]
| width="90%" style="background-color:#EAE1EA; color:#4B008D;" | Simulation
| width="90%" class="mtx-class-propfolder" | Simulation
|-
|-
|-
|-

Revision as of 14:35, 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