OFF
MIKROE-1902
24 g
Status:
SRAM Click is a compact add-on board that contains highly reliable nonvolatile memory. This board features Microchip’s 23LC1024, a 1Mbit serial SRAM with each memory cell organized as 128k words of 8 bits each. The serial SRAM provides fast access, infinite read and writes cycles to the memory array, and three operating modes for reading and writing data. The memory is accessed via a simple Serial Peripheral Interface (SPI) compatible serial interface but also supports the SDI (Serial Dual Interface), and SQI (Serial Quad Interface) interface if your application needs faster data rates. This Click board™ is suitable for all applications requiring quick access, high reliability of stored data, and unlimited endurance.
SRAM Click is supported by a mikroSDK compliant library, which includes functions that simplify software development. This Click board™ comes as a fully tested product, ready to be used on a system equipped with the mikroBUS™ socket.
This product is no longer in stock
Availability date:
High-Speed Data Storage with 23LC1024 SPI SRAM
SRAM Click is based on the 23LC1024, a highly reliable 1Mbit Serial SRAM designed to interface directly with Microchip's Serial Peripheral Interface (SPI). The 23LC1024 is organized as 128k words of 8 bits each and provides fast access alongside infinite read and write cycles to the memory array. The embedded nonvolatile elements incorporate the CMOS technology, making this Click board™ an ideal choice for secure data storage creating the world's most reliable nonvolatile memory.
The serial SRAM has three modes of operation, such as byte, page, and sequential mode, chosen by setting bits in the MODE register. In Byte mode, the R/W operations are limited to only one byte, while in Page mode, R/W operations are limited to within the addressed page. The last Sequential mode allows the entire array to be written to and read from.
The 23LC1024 communicates with MCU through a standard SPI interface that enables very high clock speeds up to 20MHz with zero cycle delay read and write cycles. It may also interface with MCUs that do not have a built-in SPI port by using discrete I/O lines programmed properly in firmware to match the SPI protocol. In addition, the 23LC1024 can operate in SDI and SQI modes. In the SDI mode, the SI and SO data lines are bidirectional, allowing the transfer of two bits per clock pulse, while in the SQI mode, two additional data lines enable the transfer of four bits per clock pulse. The SRAM Click also has an additional HOLD signal, routed to the RST pin of the mikroBUS™ socket labeled as HLD, used to suspend the serial communication without resetting the serial sequence.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the PWR SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library containing easy-to-use functions and an example code that can be used, as a reference, for further development.
Type
SRAM
Applications
Can be used for all applications requiring quick access, high reliability of stored data, and unlimited endurance
On-board modules
23LC1024 - 1Mbit Serial SRAM from Microchip
Key Features
SPI + SDI (dual) and SQI (quad) compatible, low power consumption, CMOS technology, unlimited read and write cycle, zero write time, 128-Kbit x 8-bit organization, high reliability, and more
Interface
SPI
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
This table shows how the pinout on SRAM Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | - | Power LED Indicator |
JP1 | PWR SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | 3.3 | - | 5 | V |
We provide a library for the SRAM Click as well as a demo application (example), developed using Mikroe compilers. The demo can run on all the main Mikroe development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for SRAM Click driver.
Key functions
Function write the 8-bit data to the target 24-bit register address of 23LC1024 chip.
Function read the 8-bit data to the target 24-bit register address of 23LC1024 chip.
Example Description
SRAM Click write and read data from 23LC1024 Serial RAM device.
void application_task ( void )
{
log_printf( &logger, " Writing text :rn" );
for ( n_cnt = 0; n_cnt < 16; n_cnt++ )
{
sram_write_byte( &sram, n_cnt, send_buffer[ n_cnt ] );
Delay_ms ( 100 );
log_printf( &logger, "%c", send_buffer[ n_cnt ] );
mem_data[ n_cnt ] = sram_read_byte( &sram, n_cnt );
}
log_printf( &logger, "rn" );
log_printf( &logger, " Read text :rn" );
log_printf( &logger, "%s", &mem_data[ 0 ] );
log_printf( &logger, "rn" );
log_printf( &logger, "--------------------------rn" );
Delay_ms ( 1000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended), 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 Mikroe compilers.
This Click board™ is supported with mikroSDK - Mikroe 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.
For more information about mikroSDK, visit the official page.
NOTE: Please be advised that any peripheral devices or accessories shown connected to the Click board™ are not included in the package. Check their availability in our shop or in the YMAN section below.