TOP Contributors

  1. MIKROE (2653 codes)
  2. Alcides Ramos (351 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 (136639 times)
  2. FAT32 Library (69852 times)
  3. Network Ethernet Library (55897 times)
  4. USB Device Library (46232 times)
  5. Network WiFi Library (41868 times)
  6. FT800 Library (41094 times)
  7. GSM click (28947 times)
  8. PID Library (26403 times)
  9. mikroSDK (26320 times)
  10. microSD click (25330 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

Dual EE click

Rating:

5

Author: MIKROE

Last Updated: 2019-09-23

Package Version: 1.0.0.0

mikroSDK Library: 1.0.0.0

Category: EEPROM

Downloaded: 2500 times

Not followed.

License: MIT license  

Dual EE Click contains two AT24CM02 EEPROM ICs onboard which gives total of 4MB of memory. Each memory IC can be addressed through the I2C interface with the transfer speed of 400KHz.

No Abuse Reported

Do you want to subscribe in order to receive notifications regarding "Dual EE click" changes.

Do you want to unsubscribe in order to stop receiving notifications regarding "Dual EE click" changes.

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

Dual EE click

Dual EE click

Native view of the Dual EE click board.

View full image
Dual EE click

Dual EE click

Front and back view of the Dual EE click board.

View full image

Library Description

The library includes functions to write data to memory and read data from memory.

Key functions:

  • uint8_t dualee_read(uint32_t regAddress, uint8_t *dataBuff, uint8_t nBytes) - Reading data from memory
  • uint8_t dualee_write(uint32_t regAddress, uint8_t *dataBuff, uint8_t nBytes) - Writing data to memory

Examples description

The application is composed of three sections :

  • System Initialization - Initializes I2C module
  • Application Initialization - Initializes driver init
  • Application Task - Reads your command and then execute i
  • Commands : '+' - increment current address '-' - decrement current address 'r' - read from current address 'w' - write from current address and then read it
void applicationTask()
{
    uint8_t dataReady_;
    uint16_t addressTemp;
    char receivedData_;
    char addressStr[10];

    
    if (inputDone == 1)
    {
        mikrobus_logWrite( "", _LOG_LINE);
        mikrobus_logWrite("Current page address is 0x", _LOG_TEXT);
        
        addressTemp = (pageAddress >> 16) & 0x00FF;
        IntToHex(addressTemp, addressStr);
        mikrobus_logWrite( addressStr, _LOG_TEXT);

        IntToHex(pageAddress, addressStr);
        mikrobus_logWrite( addressStr, _LOG_LINE);
        
        mikrobus_logWrite( "", _LOG_LINE);
        mikrobus_logWrite( "Enter '+' if you want to increment current address or '-' if you want to decrement current address", _LOG_LINE);
        mikrobus_logWrite( "Enter 'w' write text in current address or 'r' to read from current address:", _LOG_LINE);
        mikrobus_logWrite( "", _LOG_LINE);
        inputDone = 0;
    }

    dataReady_ = UART_Rdy_Ptr( );

    if (dataReady_ != 0)
    {
        receivedData_ = UART_Rd_Ptr( );

        switch (receivedData_)
        {
            case '+' :
            {
                if(pageAddress < _DUALEE_ADDRESS_END)
                {
                    pageAddress ++;
                }
                else
                {
                    mikrobus_logWrite( "Can't increment address, this is last address!", _LOG_LINE);
                }
                inputDone = 1;
                break;
            }
            case '-' :
            {
                if(pageAddress > _DUALEE_ADDRESS_START)
                {
                    pageAddress --;
                }
                else
                {
                    mikrobus_logWrite( "Can't decrement address, this is first address!", _LOG_LINE);
                }
                inputDone = 1;
                break;
            }
            case 'w' :
            {
                dualee_textWrite();
                inputDone = 1;
                break;
            }
            case 'r' :
            {
                dualee_textRead();
                inputDone = 1;
                break;
            }
        }
    }

    Delay_ms(1000);
}

Additional Functions :

  • void dualee_textRead() - Reads current address and logs that data to USBUART
  • void dualee_textWrite() - Writes on current address, reads that and then logs that data to USBUART

Note :

  • When you want to stop writing, you need to send '|'
  • After you read or write something you should set slight delay

Other mikroE Libraries used in the example:

  • I2C
  • Conversions

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

BLE 3 click

0

BLE 3 click is a Bluetooth Low Energy radio module which carries u-blox's NINA-B1 radio. The click can communicate with a target MCU through UART, SPI or I2C.

[Learn More]

LED Driver 14 click

0

LED Driver 14 Click is a compact add-on board that simplifies the control of multiple LEDs. This board features the BD18337EFV-M, a reliable four-channel constant current LED driver from Rohm Semiconductor. It is powered by an external power supply in the range of 5.5V to 20V, providing a maximum output current of 150mA per channel. The BD18337EFV-M also comes with the possibility for up to 3 LEDs in series on its output OUTx pin and built-in energy sharing control, selectable operational mode, and multiple built-in protection functions that protect the circuit during abnormalities. This Click board™ is ideal for LED rear lamps (turn/stop), fog lamps, and turn signals for automotive applications.

[Learn More]

Temp-Hum 5 click

5

Temp-Hum 5 click is a temperature and humidity sensing click board, packed with features that allow simple integration into any design. It can measure a wide range of temperature and relative humidity values with high accuracy.

[Learn More]