mram 2.0.0.0
|
MRAM click features MRAM module which contains 262,144 magnetoresistive memory cells, organized into 32,768 bytes of memory. It means that MRAM click is a memory storage device with 32KB of memory space.
We provide a library for the MRAM Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for MRAM Click driver.
mram_cfg_setup
Config Object Initialization function. mram_init
Initialization function. mram_default_cfg
Click Default Configuration function. mram_write_data_bytes
Function writes n bytes of data from the buffer. mram_read_data_bytes
Function reads n bytes of data and saves it in buffer. mram_enable_write_protect
Function enables or disables write protect. This example writes and reads from the Mram Click and displays it on the terminal.
The demo application is composed of two sections :
Initializes click driver.
Writes 10 bytes of buffer data in memory with start address 0x0001. Then reads 10 bytes from memory with start address 0x0001 and shows result on USB UART.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.