TOP Contributors

  1. MIKROE (2662 codes)
  2. Alcides Ramos (357 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 (137052 times)
  2. FAT32 Library (70177 times)
  3. Network Ethernet Library (56054 times)
  4. USB Device Library (46374 times)
  5. Network WiFi Library (41992 times)
  6. FT800 Library (41325 times)
  7. GSM click (29083 times)
  8. mikroSDK (26522 times)
  9. PID Library (26466 times)
  10. microSD click (25449 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: 1497 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

Compass 3 click

0

Compass 3 Click is an expansion board that can measure the three-axis magnetic field which is perfect for implementation in applications such as electric compasses. This board features MMC5883MA, a complete 3-axis magnetic sensor with signal processing from MEMSIC.

[Learn More]

Color 2 click

0

Color 2 click carries the ISL29125 RGB color light sensor. It detects red, green and blue in a variety of lighting conditions, outputting 16-bit resolution data in a measuring range from 5.7 m lux to 10,000 lux.

[Learn More]

DC Motor 23 click

0

DC Motor 23 Click is a compact add-on board with a brushed DC motor driver. This board features the TB67H480FNG, a dual-channel, H-bridge, brushed DC motor driver from Toshiba Semiconductor. Fabricated with the BiCD process (DMOSFET is used for output power transistor), it covers a wide operating voltage range of 8.2V to 44V with a maximum output current capacity of 2A. It also offers many helpful features that support a robust and reliable operation, like the decay modes selection function, several protection features, and one anomaly detection indicator.

[Learn More]