TOP Contributors

  1. MIKROE (2657 codes)
  2. Alcides Ramos (354 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 (136901 times)
  2. FAT32 Library (70034 times)
  3. Network Ethernet Library (56005 times)
  4. USB Device Library (46308 times)
  5. Network WiFi Library (41934 times)
  6. FT800 Library (41234 times)
  7. GSM click (29022 times)
  8. PID Library (26434 times)
  9. mikroSDK (26401 times)
  10. microSD click (25387 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: 1364 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

DC Motor 29 click

0

DC Motor 29 Click is a compact add-on board that contains a high-performance DC motor driver. This board features the DRV8245P, an automotive H-Bridge driver with integrated current sense and diagnostic from Texas Instruments. It can be configured as a single full-bridge driver or independent half-bridge driver. The driver offers excellent power handling and thermal capability due to a BiCMOS high power process technology mode, in which it is designed.

[Learn More]

Mikromedia 3 for Kinetis Capacitive

0

This project contains example for testing modules on Mikromedia 3 for Kinetis Capacitive.

[Learn More]

UART MUX 2 click

0

UART MUX 2 Click is a compact add-on board that enables pseudo-multidrop RS232 transmission. This board features the MAX399, a precise CMOS analog multiplexer that allows four remote RS-232 transceivers to share a single UART from Maxim Integrated. It offers fast switching speeds with a transition time of less than 250ns and low on-resistance less than 100Ω while retains CMOS-logic input compatibility and fast switching. Channel selection is performed through a set of specific GPIO pins and possesses additional functionality such as the manual ON/OFF feature. This Click board™ is suitable for a wide range of applications, from industrial and instrumentation to a consumer, communications, data-acquisition systems, and many more.

[Learn More]