TOP Contributors

  1. MIKROE (2642 codes)
  2. Alcides Ramos (347 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 (136220 times)
  2. FAT32 Library (69487 times)
  3. Network Ethernet Library (55705 times)
  4. USB Device Library (45991 times)
  5. Network WiFi Library (41639 times)
  6. FT800 Library (40781 times)
  7. GSM click (28788 times)
  8. PID Library (26330 times)
  9. mikroSDK (26053 times)
  10. microSD click (25140 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: 5318 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

Opto 3 click

5

Opto 3 click is a relay Click boardâ„¢, equipped with two pairs of optically isolated solid-state relays (SSR).

[Learn More]

DHT22 2 click

0

DHT22 2 click is used for measuring the environmental temperature and relative humidity. It uses the AM2322 sensor, with very accurate thermal and humidity measuring capabilities. It can use either 1-Wire or I2C protocol to communicate with the integrated circuit.

[Learn More]

Temp-Log click

5

Temp-Log click uses for temperature measurement. This click reads temperature and shows this temperature data in decimal and celsius value with determined resolution. Temp-Log click also has ALERT pin for checking high temperature limit.

[Learn More]