TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (136734 times)
  2. FAT32 Library (69950 times)
  3. Network Ethernet Library (55941 times)
  4. USB Device Library (46266 times)
  5. Network WiFi Library (41886 times)
  6. FT800 Library (41170 times)
  7. GSM click (28983 times)
  8. PID Library (26413 times)
  9. mikroSDK (26360 times)
  10. microSD click (25375 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

MRAM 2 click

Rating:

5

Author: MIKROE

Last Updated: 2020-08-26

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: MRAM

Downloaded: 1549 times

Not followed.

License: MIT license  

MRAM 2 Click is a compact add-on board for applications that must store and retrieve data and programs quickly using a small number of pins. This board features the MR10Q010, 1Mb Quad Output High-Speed Serial SPI MRAM memory solution from Everspin Technologies.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "MRAM 2 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "MRAM 2 click" changes.

Do you want to report abuse regarding "MRAM 2 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

MRAM 2 Click

MRAM 2 Click

Native view of the MRAM 2 Click board.

View full image
MRAM 2 Click

MRAM 2 Click

Front and back view of the MRAM 2 Click board.

View full image

Library Description

The library covers all the necessary functions that enables the usage of the MRAM 2 Click board. It initializes and defines the SPI bus driver and drivers that offer a full functionality of the click board. User has Read Status Register, Write Enable, Write Disable, Write Status Register, Read Data Bytes, Fast Read Data Bytes, Write Data Bytes, Enter Sleep Mode, Exit Sleep, Tamper Detect, Tamper Detect Exit and Read IDfunctions at his disposal.

Key functions:

  • void mram2_write ( uint32_t mem_adr, uint8_t *wr_data, uint8_t n_bytes ); - The Write Data Bytes function allows data bytes to be written sequentially.
  • void mram2_read ( uint32_t mem_adr, uint8_t *rd_data, uint8_t n_bytes ); - The Read Data Bytes function allows data bytes to be continuously read starting at an initial address.
  • void mram2_wren ( ); - Function is used to enable write operation.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes SPI module, LOG structure, sets CS, RTS and INT pins as output.
  • Application Initialization - Initalizes SPI driver and sets up the device.
  • Application Task - This example shows capabilities of MRAM 2 Click board by writting "MikroE" into first 6 memory locations, and then reading it back.
void application_task ( )
{
    mikrobus_logWrite( "Write enable!", _LOG_LINE );
    mram2_wren( );
    Delay_ms( 100 );
    mikrobus_logWrite( "Writing : ", _LOG_TEXT );
    mikrobus_logWrite( val_in, _LOG_TEXT );
    mram2_write( 0x000000, &val_in[ 0 ], 9 );
    Delay_ms( 100 );
    mikrobus_logWrite( "Write disable!", _LOG_LINE );
    mram2_wrdi ( );
    Delay_ms( 100 );
    mikrobus_logWrite( "Reading : ", _LOG_TEXT );
    mram2_read ( 0x000000, &val_out[ 0 ], 9 );
    mikrobus_logWrite( val_out, _LOG_TEXT );
    
    mikrobus_logWrite( "-------------------", _LOG_LINE );
    Delay_ms( 5000 );
}

Other mikroE Libraries used in the example:

  • SPI
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

AMR Angle 2 click

0

AMR Angle 2 Click is a compact add-on board containing an anisotropic magnetoresistive measurement solution ideal for either angle or linear position measurements. This board features the ADA4570, an integrated AMR angle sensor with an integrated signal conditioner and differential outputs from Analog Devices. The ADA4570 delivers amplified differential cosine and sine output signals, with respect to the angle measuring from 0° to 180° when the magnetic field is rotating in the x-axis and the y-axis (x-y) plane, processed later by MAX11122, SAR ADC, which forwards the digital angle information to MCU via SPI interface for further processing.

[Learn More]

Diff Press 3 click

0

Diff Press 3 Click is a compact add-on board that can measure differential pressure. It features the 2513130810401, a WSEN-PDUS differential pressure sensor from Würth Elektronik. The sensor is MEMS based and uses a piezo-resistive sensing principle. It is a fully calibrated pressure sensor with 15-bit digital and 11-bit analog outputs. In addition to pressure measurement, the 2513130810401 WSEN-PDUS sensor also has an embedded temperature sensor.

[Learn More]

Compass 5 click

0

Compass 5 Click is a compact add-on board that contains a 3-axis magnetometer device suitable for compass application. This board features the AK09918C, a 3-axis electronic compass with high sensitive Hall sensor technology from AKM Semiconductor.

[Learn More]