TOP Contributors

  1. MIKROE (2648 codes)
  2. Alcides Ramos (350 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 (136486 times)
  2. FAT32 Library (69704 times)
  3. Network Ethernet Library (55813 times)
  4. USB Device Library (46148 times)
  5. Network WiFi Library (41791 times)
  6. FT800 Library (40971 times)
  7. GSM click (28918 times)
  8. PID Library (26377 times)
  9. mikroSDK (26259 times)
  10. microSD click (25289 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

ReRAM click

Rating:

5

Author: MIKROE

Last Updated: 2019-10-31

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: Storage

Downloaded: 3784 times

Not followed.

License: MIT license  

ReRAM Click features ReRAM (Resistive Random Access Memory) module which contains the cell array made of 524.288 words x 8 bits, which totals 4 Mbits of data.

No Abuse Reported

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

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

Do you want to report abuse regarding "ReRAM 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

ReRAM Click

ReRAM Click

Native view of the ReRAM Click board.

View full image
ReRAM Click

ReRAM Click

Front and back view of the ReRAM Click board.

View full image

Library Description

Library contains functions for getting temperature and humidity. Library contains functions for getting and setting user register. Library contains functions for changing resolution and soft reset. Library contains functions for enabling/disabling heater and OTP.

Key functions:

  • T_RERAM_RETVAL reram_send_cmd( uint8_t cmd_code ) - This function allows user to send a desired command.
  • T_RERAM_RETVAL reram_read_mem( uint32_t memAddr, uint8_t *dataOut, uint16_t nBytes ) - This command allows user to read RAM.
  • T_RERAM_RETVAL reram_write_mem( uint32_t memAddr, uint8_t *dataIn, uint16_t nBytes ) - This command allows user to write RAM.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes peripherals and pins.
  • Application Initialization - Initializes SPI serial interface and puts a device to the initial state. The device now is ready to receive command from user.
  • Application Task - (code snippet) - Executes a device commands depending on the entered string commands by user. The user can perform a complete control of the ReRAM by using this driver and demo example, which includes all possible commands:
    • wren - enable Status and RAM writing command (Write Enable Latch is set),
    • wrdi - disable Status and RAM writing command (Write Enable Latch is reset),
    • rdsr - read Status register command (shows status messages),
    • wrsr - write Status register command (also executes Status Write Protection),
    • read - read ReRAM array command (depending on the entered parameters, shows error messages),
    • write - write ReRAM array command (depending on the entered parameters, shows error messages),
    • rdid - read device ID command,
    • sleep - puts a device to sleep state,
    • wakeup - wakes up a device. All possible parameters for each command can be entered from user side. When user wants to execute a 'write' or 'wrsr' command, the Write Enable will be automatically enabled.

Note : Write Enable Latch is reset after the following operations: After 'wrdi' command recognition. The end of writing process after 'wrsr' command recognition. The end of writing process after 'write' command recognition.

   Data will not be written in the protected blocks of the ReRAM array.
   Upper 1/4 goes from address 0x60000 to 0x7FFFF.
   Upper 1/2 goes from address 0x40000 to 0x7FFFF.
   The entire ReRAM array goes from address 0x00000 to 0x7FFFF.
void applicationTask()
{
    process();
}

Additional Functions :

  • _pow - Power math function.
  • _strcmp - Allows user to compare two strings, does two strings match or not.
  • _str_to_dec - Allows user to enter a determined number of digits and converts these digits from ASCII format to decimal value.
  • process - Allows user to enter a string command and executes a command processing.

Other Mikroe Libraries used in the example:

  • Conversions
  • C_String
  • 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

GSM 2 click

7

GSM2 Click is a board in mikroBUSâ„¢ form factor which is a solution for adding GSM/GPRS communication layer to your device. It features Quectel M95 GSM/GPRS module which supports most GSM quad-band frequencies with 85.6 kbps GPRS data transfer.

[Learn More]

2x2 key click

0

2x2 Key click has a 4 button keypad and allows multiple key presses.

[Learn More]

MUX 5 click

0

MUX 5 Click is a compact add-on board that contains a precise multiplexing solution. This board features the MAX14661, a serially controlled, dual-channel analog multiplexer from Analog Devices, allowing any of the 16 pins to be connected to either common pin simultaneously in any combination. The MAX14661 features Beyond-the-Rails™ capability that allows ±5.5V signals to be passed with any supply configuration alongside a configurable host interface that supports SPI and I2C serial communications. Both modes provide individual control of each independent switch so that any combination of switches can be applied.

[Learn More]