FRAM 2 Click Board
FRAM 2 Click Board
Key Features:
- 4-Mbit ferroelectric random access memory (F-RAM) logically organized as 512 K × 8, high-endurance 100 trillion (10^14) read/writes, 151-year data retention, low power consumption
- Based on the CY15B104Q - a 4-Mbit non-volatile memory employing an advanced ferroelectric process
- Suitable for low-power applications
- mikroBUS: SPI and GPIO Interfaces
The FRAM 2 Click Board™ carries the CY15B104Q 4-Mbit(512K x 8) serial FRAM from Cypress. A ferroelectric random-access memory or F-RAM is non-volatile and performs reads and writes similar to an SRAM. You can access the memory using an industry-standard serial peripheral interface (SPI) bus. On the functional level, the F-RAM operates in a similar way as serial flash and serial EEPROMs. The major difference between the CY15B104Q and a serial flash or EEPROM with the same pinout is the F-RAM's superior write performance, high endurance, and low power consumption.
Software Support
We provide a library for the FRAM 2 Click Board™ on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
Key Functions
void fram_write(uint32_t address, uint8_t *buffer, uint16_t counter)
- The function writes to sequential memory locations from the buffer.void fram_read(uint32_t address, uint8_t *buffer, uint16_t count)
- The function reads sequential memory locations to the buffer.void fram_writeEnable()
- The function enables data writing in the FRAM memory space.
Example Description
The application is composed of three sections:
- System Initialization - GPIO and SPI module Initialization.
- Application Initialization - Fram 2 Driver Initialization, initialization of click by setting mikorBUS pins to an appropriate logic level, performing erase all and write enable functions.
- Application Task - Writing data to click memory and displaying the read data via UART.
void applicationTask() { mikrobus_logWrite("Writing MikroE to Fram memory, from address 0x015015:",_LOG_LINE); fram2_write (0x015015, &wrData[0], 9); mikrobus_logWrite("Reading 9 bytes of Fram memory, from address 0x015015:",_LOG_LINE); fram2_read(0x015015,&rdData[0],9); mikrobus_logWrite("Data read: ",_LOG_TEXT); mikrobus_logWrite(rdData,_LOG_LINE); Delay_ms(1000); }
The full application code, and ready to use projects can be found on our Libstock page.
Other mikroE Libraries used in the example:
- UART
- SPI
Additional Notes and Information
Depending on the development board you are using, you may need a 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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
The FRAM 2 Click Board™ is supported by mikroSDK - MikroElektronika 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.
FRAM 2 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.