reram 2.0.0.0
|
ReRAM Click features ReRAM (Resistive Random Access Memory) module which contains the cell array made of 524.288 words x 8 bits, which totals 4 Mbits of data. The used memory module can withstand a large number of write cycles, it has data retention period greater than 10 years and it can read and write to random addresses with no delay.
We provide a library for the Reram 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 form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Reram Click driver.
reram_err_t reram_init( reram_t *ctx, reram_cfg_t *cfg );
void reram_default_cfg ( reram_t *ctx );
- Status Read function.reram_err_t reram_send_cmd( reram_t *ctx, reram_spi_data_t cmd_code );
reram_spi_data_t reram_read_status( reram_t *ctx );
reram_err_t reram_write_memory( reram_t *ctx, uint32_t mem_addr, reram_spi_data_t *data_in, uint16_t n_bytes );
This example demonstrates the use of the ReRAM Click board.
The demo application is composed of two sections :
Initializes SPI serial interface and puts a device to the initial state. Data from 0 to 255 will be written in memory block from address 0x0 to address 0xFF.
Reads same memory block starting from address 0x0 to address 0xFF and sends memory content to USB UART, to verify memory write operation.
Write Enable Latch is reset after the following operations:
- After 'Write Disable'command recognition.
- The end of writing process after 'Write Status' command recognition.
- The end of writing process after 'Write Memory' command recognition.
Data will not be written in the protected blocks of the ReRAM array.
- Upper 1/4 goes from address 0x60000 to 0x7FFFF.
- Upper 1/2 goes from address 0x40000 to 0x7FFFF.
- The entire ReRAM array goes from address 0x00000 to 0x7FFFF.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
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. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.