How does it work?
FRAM Click is based on the MB85RS256A, a memory FRAM from Fujitsu. It can retain data without a backup battery, as SRAM needs. Although the FRAM is still being developed, this company provided a very reliable and fast FRAM module that can write data at bus speed, has an extremely high endurance of 10 billion read/write cycles, and a fast SPI interface. When using the Writer to an array instruction, it is possible to write the whole array, which is an obvious advantage over the traditional EEPROM. The FRAM memory does not use pages because the memory is written faster than the SPI bus can deliver new information (the data is written at bus speed). Therefore, no buffering is required, and the whole array can be sequentially written.
FRAM Click uses a standard 4-Wire SPI interface to communicate with the host MCU supporting 25MHz of maximum operating frequency and an SPI 0 (0, 0) and SPI 3 (1, 1) modes. The MB85RS256A includes the write protection of the specific parts or the whole memory array, which can be accessed over the WP pin. The hold HLD pin interrupts serial input/output without deselecting the chip.
This Click board™ can be operated only with a 3.3V logic voltage level. The board must perform appropriate logic voltage level conversion before using MCUs with different logic levels. Also, it comes equipped with a library containing functions and an example code that can be used as a reference for further development.
Specifications
Type
FRAM
Applications
Can be used for the development of nonvolatile memory applications requiring frequent or rapid writes and unlimited endurance
On-board modules
MB85RS256A – memory FRAM from Fujitsu
Key Features
Bit configuration as 32,768 words x 8 bits, high endurance, long data retention, low power operation, data retention without battery backup, fast time to read and write data, ferroelectric CMOS process technology, and more
Interface
GPIO,SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V
Pinout diagram
This table shows how the pinout on FRAM 2 click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | Power indication LED |
FRAM click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Memory Size | – | – | 256 | Kbit |
Write Endurance | 1010 | – | – | Write Cycles |
Data Retention | 10 | – | – | Years |
Software Support
We provide a library for the Fram Click as well as a demo application (example), developed using MIKROE compilers. The demo can run on all the main MIKROE development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for Fram Click driver.
Key functions
-
This function that sends write enable command to the chip.
-
This function reads sequential memory locations to buffer.
-
This function writes to sequential memory locations from buffer.
Example Description
This app writing data to click memory.
void application_task ( void )
{
char wr_data[ 10 ] = { 'M', 'i', 'k', 'r', 'o', 'E', 13, 10, 0 };
char rd_data[ 10 ];
log_printf( &logger, "Writing MikroE to Fram memory, from address 0x0150: rn" );
fram_write( &fram, 0x0150, &wr_data[ 0 ], 9 );
log_printf( &logger, "Reading 9 bytes of Fram memory, from address 0x0150: rn" );
fram_read( &fram, 0x0150, &rd_data[ 0 ], 9 );
log_printf( &logger, "Data read: %c rn", rd_data );
Delay_ms( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.Fram
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MIKROE compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MIKROE Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.