Skip to Content

FRAM Read Block Description

This block enables reading data from a non-volatile Ferroelectric Random Access Memory (FRAM) chip via a Serial Peripheral Interface (SPI).



FRAM Read block

Table of Contents

Inputs

Input NameTypeDescription
Addressuint32The target base memory address within FRAM memory from which data retrieval begins.
Length [bytes]uint8The total number of consecutive bytes to be read from the memory chip.

Outputs

Output NameTypeDescription
Statusuint8Outlines the operational execution status of the SPI communication routine:
1 – read operation completed successfully
0 – communication failure or transaction timeout
Datauint8[1x8]An array returning the raw payload bytes read from the external FRAM memory chip.

Block Parameters

ParameterDescription
InterfaceSelection of the communication interface standard (default fixed to SPI).
Interface numberSpecifies the hardware instance identifier index of the SPI peripheral embedded on the MCU.
Chip Select PortThe GPIO port group letter designated for the active-low slave select signal (Chip Select).
Chip Select PinThe physical hardware pin number belonging to the chosen Chip Select Port.
Sample time [s]Specifies the software cyclic refresh execution update interval for the block.
Timeout [ms]The maximum duration in milliseconds allowed for the hardware SPI driver transaction query to complete before throwing an error.


Parameters for FRAM Read block

CubeMX Configuration for a Given MCU Model

To configure CubeMX for a given microcontroller model, you must set up the SPI interface according to the provided instructions.

See Also

Last updated on