Component: FRAM MB85RC (EEPROM)

From Flowcode Help
Jump to navigationJump to search
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.

FC6 Icon.png FRAM Test

Macro reference

DisableWriteProtect

Fc9-comp-macro.png DisableWriteProtect
Disables write protection on the FRAM device. Returns error code: 0=success 
Fc9-u8-icon.png - BYTE Return


EnableWriteProtect

Fc9-comp-macro.png EnableWriteProtect
Enables write protection on the FRAM device. Returns error code: 0=success 
Fc9-u8-icon.png - BYTE Return


EraseDevice

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


Initialise

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


Read

Fc9-comp-macro.png Read
Reads a single byte from the specified FRAM address. Returns the byte value read, or 0xFF on error. 
Fc9-u32-icon.png - ULONG Address
Memory address to read from 
Fc9-u8-icon.png - BYTE Return


ReadFloat

Fc9-comp-macro.png ReadFloat
Reads a 32-bit floating point value (FLOAT) from the specified FRAM address. Returns the float value read, or 0.0 on error. 
Fc9-u32-icon.png - ULONG Address
Memory address to read from 
Fc9-f32-icon.png - FLOAT Return


ReadInt

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


ReadLong

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


ReadPage

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


Write

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


WriteFloat

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


WriteInt

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


WriteLong

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


WritePage

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


Property reference

Fc9-prop-icon.png Properties
Fc9-conn-icon.png Device Settings
Fc9-type-16-icon.png 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. 
Fc9-type-16-icon.png Device Type
Select the FRAM device type 
Fc9-type-21-icon.png Memory Size (bytes)
Calculated memory size based on device type 
Fc9-type-21-icon.png Address Bits
Number of address bits for selected device 
Fc9-conn-icon.png Connections
Fc9-type-16-icon.png Channel
Channel selection 
Fc9-type-5-icon.png SDA
Pin used for SDA (data signal) 
Fc9-type-16-icon.png SDA Remap Pin
 
Fc9-type-5-icon.png SCL
Pin used for SCL (clock signal) 
Fc9-type-16-icon.png SCL Remap Pin
 
Fc9-type-7-icon.png 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. 
Fc9-type-16-icon.png Baud Select
Baud rate option selector 
Fc9-type-14-icon.png Baud Rate
Baud rate to be used 
Fc9-conn-icon.png Simulation
Fc9-type-7-icon.png Scope Traces
Selects if the scope traces are automatically generated or not 
Fc9-type-7-icon.png Console Data
Selects if the console data is automatically generated or not 
Fc9-type-16-icon.png 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