TOP Contributors

  1. MIKROE (2663 codes)
  2. Alcides Ramos (358 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 (137071 times)
  2. FAT32 Library (70217 times)
  3. Network Ethernet Library (56094 times)
  4. USB Device Library (46395 times)
  5. Network WiFi Library (42013 times)
  6. FT800 Library (41350 times)
  7. GSM click (29109 times)
  8. mikroSDK (26545 times)
  9. PID Library (26486 times)
  10. microSD click (25483 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

H-Bridge click

5

H-Bridge click is a high-efficiency dual H-bridge driver Click board, capable of providing reasonably high current while driving the connected load with up to 7V. Since the used driver IC has two full H-bridge channels, this Click board is an ideal solution for driving smaller bipolar stepper motors.

[Learn More]

Watchdog click

5

Watchdog Click is a compact add-on board that contains a simple countdown timer for a wide variety of applications. This board features the TPS3430, a standalone watchdog timer with a programmable watchdog window and programmable reset delay from Texas Instruments.

[Learn More]

DHT22 click

0

It’s a low cost reliable solution that communicates with the target board microcontroller through a single Serial Data Line.

[Learn More]