TOP Contributors

  1. MIKROE (2660 codes)
  2. Alcides Ramos (356 codes)
  3. Shawon Shahryiar (307 codes)
  4. jm_palomino (112 codes)
  5. Chisanga Mumba (90 codes)
  6. S P (73 codes)
  7. dany (71 codes)
  8. MikroBUS.NET Team (35 codes)
  9. NART SCHINACKOW (34 codes)
  10. Armstrong Subero (27 codes)

Most Downloaded

  1. Timer Calculator (137013 times)
  2. FAT32 Library (70135 times)
  3. Network Ethernet Library (56028 times)
  4. USB Device Library (46353 times)
  5. Network WiFi Library (41968 times)
  6. FT800 Library (41295 times)
  7. GSM click (29056 times)
  8. mikroSDK (26492 times)
  9. PID Library (26452 times)
  10. microSD click (25413 times)
Libstock prefers package manager

Package Manager

We strongly encourage users to use Package manager for sharing their code on Libstock website, because it boosts your efficiency and leaves the end user with no room for error. [more info]

< Back
mikroSDK Library

SRAM 3 click

Rating:

5

Author: MIKROE

Last Updated: 2020-09-30

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: SRAM

Downloaded: 1491 times

Not followed.

License: MIT license  

SRAM 3 Click is a 1Mb serial SRAM with a non-volatile SONOS storage element included with each memory cell, organized as 128k words of 8 bits each. This board features the ANV32AA1WDK66 a SRAM memory from Anvo-System Dresden.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "SRAM 3 click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "SRAM 3 click" changes.

Do you want to report abuse regarding "SRAM 3 click".

  • mikroSDK Library 2.0.0.0
  • Comments (0)
DOWNLOAD LINK RELATED COMPILER CONTAINS
mikroBasic PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroBasic PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroC PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for ARM
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for AVR
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for dsPIC30/33 & PIC24
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for FT90x
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc
mikroPascal PRO for PIC32
  • lib
  • src
  • exa
  • hlp
  • hex
  • sch
  • pcb
  • doc

mikroSDK Library Blog

SRAM 3 Click

SRAM 3 Click

Native view of the SRAM 3 Click board.

View full image
SRAM 3 Click

SRAM 3 Click

Front and back view of the SRAM 3 Click board.

View full image

Library Description

Library provides functions for communicating with device via SPI module, functions for reading and writing to memory as well as some protective functions to prevent data corruption.

Key functions:

  • void sram3_read( uint32_t mem_adr, uint8_t *read_buf, uint8_t buf_size ) - Function for reading data from memmory
  • uint8_t sram3_secure_read( uint32_t mem_adr, uint8_t *read_buf ) - Function for reading data from memmory with crc checksum for data validation
  • void sram3_write( uint32_t mem_adr, uint8_t *write_buf, uint8_t buf_size ) - Function for writing data to memmory
  • void sram3_secure_write( uint32_t mem_adr, uint8_t *write_buf )  - Function for writing data to memmory with crc checksum for data validation

Examples description

The application is composed of three sections :

  • System Initialization - Initialization of SPI module
  • Application Initialization - Configures SPI module
  • Application Task - Writes "MikroE" to memory location 0x00 and reads from it
void application_task ( )
{
    uint8_t buff_out[ 10 ] = { 0 };
    
    mikrobus_logWrite( "Writing "MikroE" to memory...", _LOG_LINE );
    sram3_enable_write( );
    sram3_write( 0x00, &buf[ 0 ], 6 );

    Delay_100ms( );

    mikrobus_logWrite( "Data read from memory: ", _LOG_TEXT );
    sram3_read( 0x00, &buff_out[ 0 ], 6 );
    mikrobus_logWrite( &buff_out[ 0 ], _LOG_LINE );
    mikrobus_logWrite( "---------------------------------------------", _LOG_LINE );

    Delay_1sec( );
}

Other mikroE Libraries used in the example:

  • SPI
  • UART

Additional notes and informations

Depending on the development board you are using, you may need USB UART clickUSB 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.

ALSO FROM THIS AUTHOR

GPS click - L10 - Examples

0

Simple example which demonstrates usage of the GPS Click board with QUECTEL GPS module.
It displays a map of the world on the TFT and shows the location of the GPS module on it.
Also it displays current coordinates of GPS receiver.

[Learn More]

SRAM click

6

SRAM click lets you add 1 Mbit of additional SRAM memory to your devices, via the 23LC1024 chip. The board communicates with the target MCU through the mikroBUS SPI interface (MISO, MOSI, SCK, CS). SRAM click is designed to use either a 3.3V or 5V power supply.

[Learn More]

OOK RX click

0

OOK RX click is a wireless receiver that operates at the frequency of 433MHz (sub-GHz). This device allows realization of a simple, low-speed wireless ad hoc communication network between a receiver and compatible transmitter.

[Learn More]