TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 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 (137052 times)
  2. FAT32 Library (70178 times)
  3. Network Ethernet Library (56055 times)
  4. USB Device Library (46374 times)
  5. Network WiFi Library (41992 times)
  6. FT800 Library (41328 times)
  7. GSM click (29083 times)
  8. mikroSDK (26522 times)
  9. PID Library (26466 times)
  10. microSD click (25449 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: 3844 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

LSM6DSL click

7

LSM6DSL click measures linear and angular velocity with six degrees of freedom. It carries the LSM6DSL high-performance 3-axis digital accelerometer and 3-axis digital gyroscope. The click is designed to run on a 3.3V power supply.

[Learn More]

EEG click

5

EEG Click is a Click board that allows monitoring of brain activity. Although not suitable for clinical examination, it is quite sufficient to allow some insight into brain activity.

[Learn More]

6DOF IMU 13 Click

5

6DOF IMU 13 Click is a compact add-on board that contains an eCompass that consists of a 3-axis linear accelerometer and a 3-axis magnetic field sensor. This board features the MC6470, a 6 DoF accelerometer, and a magnetometer sensor solution, from mCube Inc.

[Learn More]