TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136652 times)
  2. FAT32 Library (69874 times)
  3. Network Ethernet Library (55904 times)
  4. USB Device Library (46245 times)
  5. Network WiFi Library (41880 times)
  6. FT800 Library (41115 times)
  7. GSM click (28968 times)
  8. PID Library (26404 times)
  9. mikroSDK (26333 times)
  10. microSD click (25345 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

nvSRAM click

Rating:

5

Author: MIKROE

Last Updated: 2020-12-24

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: SRAM

Downloaded: 1331 times

Not followed.

License: MIT license  

nvSRAM Click is a compact add-on board that contains the most reliable nonvolatile memory. This board features the CY14B101J, a 1-Mbit nvSRAM organized as 128K words of 8 bits each with a nonvolatile element in each memory cell from Cypress Semiconductor.

No Abuse Reported

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

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

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

nvSRAM Click

nvSRAM Click

Native view of the nvSRAM Click board.

View full image
nvSRAM Click

nvSRAM Click

Front and back view of the nvSRAM Click board.

View full image

Library Description

The library covers all the necessary functions to control nvSRAM Click board™. Library performs a standard I2C interface communication.

Key functions:

  • uint32_t nvsram_read_dev_id ( void ) - Read device ID function.
  • void nvsram_memory_write ( uint32_t mem_adr, uint8_t *p_tx_data, uint16_t n_bytes ) - Write memory function.
  • void nvsram_memory_read ( uint32_t mem_adr, uint8_t *p_rx_data, uint16_t n_bytes ) - Read memory function.

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C, set PWM pin as outputs, begins to write log.
  • Application Initialization - Initialization driver enables - I2C, lock Serial Number write, disable Block Protection and enable Memory Write, also write log.
  • Application Task - (code snippet) This is an example that demonstrates the use of the nvSRAM Click board™. In this example, we write and then read data from nvSRAM memory. Results are being sent to the Usart Terminal where you can track their changes. All data logs write on USB uart changes approximately for every 5 sec.
void application_task ( )
{
    mikrobus_logWrite( "  Write data : ", _LOG_TEXT );
    mikrobus_logWrite( demo_data, _LOG_TEXT );
    nvsram_memory_write( 12345, &demo_data[ 0 ], 9 );
    mikrobus_logWrite( "- - - - - - - - - - - -", _LOG_LINE );
    Delay_ms( 100 );

    mikrobus_logWrite( "  Read data  : ", _LOG_TEXT );
    nvsram_memory_read( 12345, &read_data[ 0 ], 9 );
    mikrobus_logWrite( read_data, _LOG_TEXT );
    mikrobus_logWrite( "-----------------------", _LOG_LINE );
    Delay_ms( 5000 );
}

Other mikroE Libraries used in the example:

  • I2C
  • 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

DigiVref click

5

DigiVref click is a very precise voltage reference Click board, which allows one of four different voltage values to be selected over the SPI interface.

[Learn More]

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]

SolidSwitch 2 click

0

SolidSwitch 2 Click is a compact add-on board that contains a load switching device. This board features the L9026, an automotive eight-channel relay driver from STMicroelectronics. The L9026 incorporates two high-side drivers and six configurable high-side/low-side drivers driven by an SPI interface or by two dedicated parallel inputs. Operating from an external power supply from 3V up to 18V, it provides a maximum current of 1A on its output terminals. It also offers advanced diagnostic and protection features such as short-to-ground, open load, overcurrent, and overtemperature detections.

[Learn More]