TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (352 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 (136736 times)
  2. FAT32 Library (69951 times)
  3. Network Ethernet Library (55941 times)
  4. USB Device Library (46266 times)
  5. Network WiFi Library (41886 times)
  6. FT800 Library (41171 times)
  7. GSM click (28983 times)
  8. PID Library (26413 times)
  9. mikroSDK (26360 times)
  10. microSD click (25376 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

EEPROM 2 Click

Rating:

5

Author: MIKROE

Last Updated: 2018-03-19

Package Version: 1.0.0.1

mikroSDK Library: 1.0.0.0

Category: EEPROM

Downloaded: 5394 times

Followed by: 5 users

License: MIT license  

EEPROM 2 click carries ST’s M95M02 DIP-8 socket EEPROM chip with 256 KB of memory. The board communicates with the target MCU through the mikroBUS SPI interface (CS, SCK, MISO and MOSI pins) with speeds up to 5 MHz. This example demonstrates how the EEPROM 2 click works.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "EEPROM 2 Click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "EEPROM 2 Click" changes.

Do you want to report abuse regarding "EEPROM 2 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

EEPROM 2 click

EEPROM 2 click

Native view of the EEPROM 2 click board.

View full image
EEPROM2 Click Board

EEPROM2 Click Board

Front and back side of the EEPROM2 Click Board

View full image

Library Description

This library provides generic functions enough to have complete control over the EEPROM 2 click board.

Key functions:

  • void eeprom2_writeBytes(uint32_t memoryAddress, uint8_t *value, uint8_t count) - Writes the function to EEPROM.
  • void eeprom2_readBytes(uint32_t memoryAddress, uint8_t *value, uint8_t count) - Reads the function from EEPROM.
  • void eeprom2_memoryEnable() - Enables the write function.

Examples Description

The application is composed of three sections:

  • System Initialization - CS GPIO as the output pin, initializes SPI and UART for logging.
  • Application Initialization -  Initializes EEPROM 2 driver.
  • Application Task - writing data to EEPROM, reading that data and displaying it via UART.
void applicationTask()
{

 eeprom2_memoryEnable();
 eeprom2_writeBytes(0x01, &text[0], 6);
 mikrobus_logWrite("Writing Mikroe to EEPROM 2 click", _LOG_LINE);
 Delay_ms(1000);
 eeprom2_readBytes(0x01,&memValue[0],6);
 mikrobus_logWrite("Data read:", _LOG_LINE);
 mikrobus_logWrite(memValue, _LOG_LINE);
 Delay_ms(1000);
}

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.    

 

ALSO FROM THIS AUTHOR

Vibro Motor 3 click

0

Vibro Motor 3 Click is a compact add-on board that makes an ideal solution for adding simple haptic feedback in any design. This board features the G0832022D, a coin-sized linear resonant actuator (LRA) that generates vibration/haptic feedback in the Z plane, perpendicular to the motor's surface from Jinlong Machinery & Electronics, Inc.

[Learn More]

FRAM click

0

Simple demonstration of using MB85RS256A FRAM chip. Example demonstrates writing and reading from FRAM chip

[Learn More]

Proximity 8 click

5

Proximity 8 click is a close-range proximity sensing Click board, equipped with the VCNL36687S, a very accurate and power-efficient proximity sensor (PS) with VCSEL.

[Learn More]