Carte Click NVSRAM
Carte Click NVSRAM
Overview
La nvSRAM Click Board™ est une carte d'extension compacte qui contient la mémoire non volatile la plus fiable. Cette carte comprend le CY14B101J, une nvSRAM de 1 Mbit organisée en 128K mots de 8 bits chacun avec un élément non volatil dans chaque cellule mémoire de Cypress Semiconductor. Les éléments non volatils intégrés intègrent la technologie QuantumTrap et fournissent un stockage non volatil extrêmement fiable des données. Le transfert de données, initié par l'utilisateur via des commandes I2C, de la SRAM aux éléments non volatils s'effectue automatiquement à la mise hors tension. D'autre part, lors de la mise sous tension, les données sont restaurées dans la SRAM à partir de la mémoire non volatile. Cette Click Board™ convient à toutes les applications qui nécessitent un accès rapide et une grande fiabilité des données stockées, ainsi qu'une endurance illimitée.
La carte nvSRAM Click est prise en charge par une bibliothèque compatible mikroSDK, qui comprend des fonctions qui simplifient le développement logiciel. Cette carte Click Board™ est un produit entièrement testé, prêt à être utilisé sur un système équipé du socket mikroBUS™.
How Does The nvSRAM Click Board™ Work?
The nvSRAM Click Board™ is based on 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 CY14B101J integrates an SRAM cell and a nonvolatile memory cell into a single nvSRAM cell. In the Normal mode, all reads and writes happen directly from and to the SRAM portion of the nvSRAM. This provides faster write and read access compared to any existing nonvolatile memory technology such as EEPROM and Flash.
The nvSRAM specifies one million endurance cycles for nonvolatile cells with data retention of a minimum of 20 years. In the event of system power loss, data from the SRAM is transferred to its nonvolatile cell automatically by using energy stored in a capacitor labeled as C2. During the Power-Up, data from the nonvolatile cell is recalled automatically in the SRAM array and available to the user. The endurance cycle is consumed only when data transfer happens from the SRAM cells to nonvolatile cells during the Power-Down.
nvSRAM Click communicates with MCU using the standard I2C 2-Wire interface with a clock frequency up to 100kHz in the Standard, up to 400kHz in the Fast, up to 1MHz in the FastPlus, and up to 3.4MHz in the High-Speed Mode. The CY14B101J offers zero cycle delay write operation with infinite SRAM write endurance. Besides, it also allows the choice of the least significant bit (LSB) of its I2C slave address by positioning SMD jumpers labeled as ADDR SEL to an appropriate position marked as 0 and 1.
An additional feature of this Click board™ represents the configurable Write Protection function labeled as WP routed on the PWM pin of the mikroBUS™ socket. The WP pin is an active-high pin that protects the entire memory and all registers from write operations. This pin must be held high to inhibit all the write operations. When this pin is high, all memory and register writes are prohibited, and the address counter is not incremented.
This Click board™ is designed to be operated only with a 3.3V logic voltage level. A proper logic voltage level conversion should be performed before the Click board™ is used with MCUs with different logic levels.
SPECIFICATIONS
Type | SRAM |
Applications | Can be used for all applications that require fast access and high reliability of stored data, and unlimited endurance. |
On-board modules | nvSRAM Click is based on 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. |
Key Features | Low power consumption, 1-Mbit nonvolatile static random access memory, high reliability, high speed interface, write protection feature, and more. |
Interface | I2C |
Compatibility | mikroBUS |
Click board size | S (28.6 x 25.4 mm) |
Input Voltage | 3.3V |
PINOUT DIAGRAM
This table shows how the pinout on nvSRAM Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Notes | Pin | Pin | Notes | ||||
---|---|---|---|---|---|---|---|
NC | 1 | AN | PWM | 16 | WP | Write Protection | |
NC | 2 | RST | INT | 15 | NC | ||
NC | 3 | CS | RX | 14 | NC | ||
NC | 4 | SCK | TX | 13 | NC | ||
NC | 5 | MISO | SCL | 12 | SCL | I2C Clock | |
NC | 6 | MOSI | SDA | 11 | SDA | I2C Data | |
Power Supply | 3.3V | 7 | 3.3V | 5V | 10 | NC | |
Ground | GND | 8 | GND | GND | 9 | GND | Ground |
ONBOARD SETTINGS AND INDICATORS
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1-JP2 | ADDR SEL | Left | I2C Address Selection: Left position 0, Right position 1 |
NVSRAM CLICK ELECTRICAL SPECIFICATIONS
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | -0.5 | 3.3 | 4.1 | V |
Memory Size | - | - | 1 | Mbit |
nvSRAM Write Endurance | 1.000.000 | - | - | Write Cycles |
nvSRAM Data Retention | 20 | - | - | Years |
Operating Temperature Range | -40 | - | +85 | °C |
Software Support
We provide a library for the nvSRAM Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
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.
Example 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.
{ 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 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C
- UART
Additional Notes and Information
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
This Click board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Software Support
We provide a library for the nvSRAM Click Board™ on our LibStock page, as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
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.
Example 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.
{ 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 ); }
The full application code, and ready to use projects can be found on our LibStock page.
Other mikroE Libraries used in the example:
- I2C
- UART
Additional Notes and Information
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. The terminal available in all MikroElektronika compilers, or any other terminal application of your choice, can be used to read the message.
MIKROSDK
This Click board™ is supported with mikroSDK - MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.