nvsram
2.0.0.0
|
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. The embedded nonvolatile elements incorporate the QuantumTrap technology and provide highly reliable nonvolatile storage of data.
We provide a library for the nvSRAM Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
This library contains API for nvSRAM Click driver.
nvsram_cfg_setup
Config Object Initialization function. nvsram_init
Initialization function. nvsram_send_cmd
The function sends the desired command to the CY14B101J2 1-Mbit (128K � 8) Serial (I2C) nvSRAM on nvSRAM click board. nvsram_memory_write
The function writes a sequential data starting of the targeted 17-bit memory address nvsram_memory_read
The function read a sequential data starting from the targeted 17-bit memory address 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.
The demo application is composed of two sections :
Initialization driver enables - I2C, lock Serial Number write, disable Block Protection and enable Memory Write, also write log.
Writing data to a memory address, then reading it back and logging it onto uart terminal.
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. UART terminal is available in all MikroElektronika compilers.