How does it work?
EEPROM 8 Click as its foundation uses the CAV24C512, a 512-Kb EEPROM with an I2C interface and Write Protection Mode from ON Semiconductor. The CAV24C512 is organized as 65,536 words of 8 bits each and benefits from a wide power supply range and 100 years of data retention combining their unprecedented data storage with excellent energy efficiency. It is highly reliable, lasting one million full-memory read/write/erase cycles. On-chip Error Correction Code (ECC) makes this Click board™ suitable for high-reliability applications where dependable nonvolatile memory storage is essential.
This Click board™ communicates with MCU using the standard I2C 2-Wire interface that supports Standard (100 kHz), Fast (400 kHz), and Fast-Plus (1MHz) modes of operation. The CAV24C512 has a 7-bit slave address with the first five MSBs fixed to 1010. The address pins A0, A1, and A2, are programmed by the user and determine the value of the last three LSBs of the slave address, which can be selected by positioning onboard SMD jumpers labeled as ADDR SEL to an appropriate position marked as 0 or 1.
On the other side, the configurable Write Protection function, labeled as WP routed to the PWM pin of the mikroBUS™ socket, allows the user to freeze the entire memory area, thus protecting it from Write instructions.
This Click board™ can operate with both 3.3V and 5V logic voltage levels selected via the VCC SEL jumper. This way, it is allowed for both 3.3V and 5V capable MCUs to use the communication lines properly. However, the Click board™ comes equipped with a library that contains easy-to-use functions and an example code that can be used, as a reference, for further development.
Specifications
Type
EEPROM
Applications
Can be used for consumer and industrial applications where dependable nonvolatile memory storage is essential
On-board modules
CAV24C512 – 512-Kb electrically erasable programmable memory from ON Semiconductor
Key Features
Low power consumption, write protection, more than million read/write/erase cycles, more than 100 years of data retention, high reliability, high density, and more.
Interface
I2C
Feature
No ClickID
Compatibility
mikroBUS™
Click board size
S (28.6 x 25.4 mm)
Input Voltage
3.3V or 5V
Pinout diagram
This table shows how the pinout on EEPROM 8 Click corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).
Onboard settings and indicators
Label | Name | Default | Description |
---|---|---|---|
LD1 | PWR | – | Power LED Indicator |
JP1 | VCC SEL | Left | Logic Level Voltage Selection 3V3/5V: Left position 3V3, Right position 5V |
JP2-JP4 | ADDR SEL | Left | I2C Address Selection 0/1: Left position 0, Right position 1 |
EEPROM 8 Click electrical specifications
Description | Min | Typ | Max | Unit |
---|---|---|---|---|
Supply Voltage | – | 3.3 | – | V |
Memory Size | – | – | 512 | Kb |
Endurance | 1.000.000 | – | – | Cycles |
Data Retention | 100 | – | – | Years |
Operating Temperature Range | -40 | +25 | +120 | °C |
Software Support
We provide a library for the EEPROM 8 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Library Description
This library contains API for EEPROM 8 Click driver.
Key functions
-
eeprom8_write_page
This function writes up to 128 bytes of data starting from the selected register. -
eeprom8_read_random_byte
This function reads one byte data from the desired register. -
eeprom8_read_sequential
This function reads the desired number of bytes starting from the selected register.
Example Description
This example demonstrates the use of EEPROM 8 Click board™ by writing specified data to the memory and reading it back.
void application_task ( void )
{
// Reset variables
cnt = 0;
memset( test_read_buffer, 0, sizeof ( test_read_buffer ) );
addr_offset = TEST_MEM_LOCATION;
// Initiate first pass
// filling the eeprom addresses with zeros
if( EEPROM8_ERROR == run_first_pass( &eeprom8, test_write_buffer, test_read_buffer ) )
{
log_error( &logger, " First Pass Failed " );
}
// Initiate second pass
// filling the eeprom addresses with values following arithmetic sequence with difference of 1
if( EEPROM8_ERROR == run_second_pass( &eeprom8, test_write_buffer, test_read_buffer ) )
{
log_error( &logger, " Second Pass Failed " );
}
log_printf( &logger, " rnInitiating new iterationrn " );
Delay_ms( 6000 );
}
The full application code, and ready to use projects can be installed directly from NECTO Studio Package Manager(recommended way), downloaded from our LibStock™ or found on Mikroe github account.
Other Mikroe Libraries used in the example:
- MikroSDK.Board
- MikroSDK.Log
- Click.EEPROM8
Additional notes and informations
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. UART terminal is available in all MikroElektronika compilers.
mikroSDK
This Click board™ is supported with mikroSDK – MikroElektronika Software Development Kit. To ensure proper operation of mikroSDK compliant Click board™ demo applications, mikroSDK should be downloaded from the LibStock and installed for the compiler you are using.
For more information about mikroSDK, visit the official page.