TOP Contributors

  1. MIKROE (2659 codes)
  2. Alcides Ramos (356 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 (137000 times)
  2. FAT32 Library (70118 times)
  3. Network Ethernet Library (56027 times)
  4. USB Device Library (46348 times)
  5. Network WiFi Library (41966 times)
  6. FT800 Library (41286 times)
  7. GSM click (29055 times)
  8. mikroSDK (26489 times)
  9. PID Library (26450 times)
  10. microSD click (25413 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: 4652 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

DIGI POT 9 click

0

DIGI POT 9 Click is a compact add-on board used as a digitally controlled potentiometer. This board features the AD5235, a dual-channel, nonvolatile memory, digitally controlled potentiometer from Analog Devices. The AD5235's versatile programming via an SPI-compatible serial interface allows multiple modes of operation and adjustment. The resistor wiper position is determined by the RDAC register contents, which act as a scratchpad register, allowing unlimited changes of resistance settings. The nominal resistance of the RDAC between terminal A and terminal B (RAB) is 250 kΩ with 1024 positions (10-bit resolution).

[Learn More]

PWM Demo

0

The application demonstrates PWM functionality.

[Learn More]

ADC 18 click

0

ADC 18 Click is a compact add-on board that contains a high-performance data converter. This board features the MAX22005, an SPI-configurable twelve-channel 24-bit analog-to-digital converter (ADC) from Analog Devices.

[Learn More]