nvsram3
2.0.0.0
|
nvSRAM 3 Click is a compact add-on board that contains the most reliable nonvolatile memory.
We provide a library for the nvSRAM3 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 nvSRAM3 Click driver.
nvsram3_cfg_setup
Config Object Initialization function. nvsram3_init
Initialization function. nvsram3_default_cfg
Click Default Configuration function. nvsram3_memory_write
This function write a desired number of data bytes starting from the selected memory address by using I2C serial interface. nvsram3_memory_read
This function reads a desired number of data bytes starting from the selected memory address by using I2C serial interface. nvsram3_get_rtc_time
This function get RTC time data structure. The demo application shows how to write/read data to/from nvSRAM memory. It also sets RTC date and time, then reads it in an infinite loop and displays results on USB UART each second.
The demo application is composed of two sections :
Initializes device, reads the device ID, writes desired message to memory and sets RTC date and time.
Reads current date and time and then reads the message that we have previusly stored in the memory. All data is being logged on USB UART.
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.