TOP Contributors

  1. MIKROE (2751 codes)
  2. Alcides Ramos (372 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (118 codes)
  5. Bugz Bensce (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 (139060 times)
  2. FAT32 Library (71592 times)
  3. Network Ethernet Library (56989 times)
  4. USB Device Library (47330 times)
  5. Network WiFi Library (43006 times)
  6. FT800 Library (42297 times)
  7. GSM click (29777 times)
  8. mikroSDK (27874 times)
  9. PID Library (26858 times)
  10. microSD click (26129 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 click

Rating:

5

Author: MIKROE

Last Updated: 2018-02-09

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: MRAM

Downloaded: 5084 times

Not followed.

License: MIT license  

MRAM click is a memory storage device with 32KB of memory space. The used memory module can withstand an unlimited number of write cycles, it has data retention period greater than 20 years and it can read and write to random addresses with no delay.

No Abuse Reported

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

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

Do you want to report abuse regarding "MRAM 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
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal 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
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal 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
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal 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 PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

MRAM click

MRAM click

Native view of the MRAM Click board.

View full image
MRAM click

MRAM click

Front and back view of the MRAM Click board.

View full image

Library Description

Initializes and defines SPI bus driver and driver functions which are used for storing data to memory and for reading memory.
Library also communicates with the Status register. For more details check the documentation.

Key functions

uint8_t mram_checkStatusBit(uint8_t status_bit) - The function checks one bit from the Status register determined by the function parameter.

void mram_readDataBytes(const uint16_t address, uint8_t *buffer, const uint16_t nBytes) - The function reads a number of bytes determined by the nBytes parameter from the memory to the buffer with start address determined by the address parameter.

void mram_writeDataBytes(const uint16_t address, uint8_t *buffer, const uint16_t nBytes) - The function writes a number of bytes determined by the nBytes parameter from the buffer to memory with start address determined by address parameter.

void mram_enableHoldMode(uint8_t state) - A low on the Hold pin interrupts a memory operation for another task.

Examples Description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes click driver.
  • Application Task - Writes 6 bytes of buffer data in the memory with start address 0x0000. Then reads 3 bytes from the memory with start address 0x0002 and shows the result on USB UART.
void applicationTask()
{
    uint8_t numberBytesWrite;
    uint8_t numberBytesRead;
    char txt[20] = {0};
    uint16_t i;

    numberBytesWrite = 6;
    numberBytesRead = 3;

    mram_writeDataBytes(0x0000, &data_write[0], numberBytesWrite);

    mram_readDataBytes(0x0002, &data_read[0], numberBytesRead);

    for(i = 0; i < numberBytesRead; i++)
    {
        WordToStr(data_read[i], txt);
        mikrobus_logWrite(txt, _LOG_LINE);
    }

    Delay_ms(2000);
}

Additional notes and information

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

PAC1954 Click

0

PAC1954 Click is a compact add-on board that contains an energy monitoring solution. This board features the PAC1954, a four-channel DC power/energy monitor from Microchip Technology. It uses real-time calibration to minimize offset and gain errors with no input filters required for this device.

[Learn More]

GainAMP 2 click

0

GainAMP 2 click is a 6-channel programmable gain amplifier, used to amplify signals on any of the 6 non-inverting input channels up to 32x, in eight discrete steps. 

[Learn More]

MCP2542 Click

0

This application use for comunication

[Learn More]