EEPROM 3 Click Board
EEPROM 3 Click Board
The EEPROM 3 Click Board™ provides 2 Mbit (2,097,152 bits) of Electrically Erasable Programmable Read-Only Memory, organized in bytes. In other words, this Click Board™ is an EEPROM memory medium with a capacity of 256 KB. The used EEPROM module has outstanding endurance, with 1,000,000 write cycles and a data retention period of over 100 years.
The EEPROM device on the EEPROM 3 Click Board™ features Schmitt trigger inputs for better noise protection, self-timed write cycles, it has a dedicated write protect pin for hardware protection of stored data, and an error detection and correction logic scheme that ensures reliable data output, staying transparent to the host controller.
Software Support
We provide a library for the EEPROM 3 Click Board™ on our Libstock page, as well as a demo application (example), developed using MikroElektronika compilers and mikroSDK. The provided click library is mikroSDK standard compliant. The demo application can run on all the main MikroElektronika development boards.
Library Description
This library provides generic functions enough to have complete control over the EEPROM 3 Click Board™.
Key Functions
void eeprom3_writePage( uint16_t address, uint8_t *_data, uint8_t count );
- Writes data to the EEPROM ( maximum 256 Bytes ).void eeprom3_read( uint16_t address, uint8_t *buffer, uint16_t count );
- Reads data from EEPROM.
Example 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 3 driver.
- Application Task - writing data to EEPROM, reading that data and displaying it via UART.
void applicationTask() { eeprom3_writePage(0x0423, &text[0], 6); mikrobus_logWrite("Writing Mikroe to EEPROM 3 click", _LOG_LINE); Delay_ms(1000); eeprom3_read(0x0423,&memValue[0],6); mikrobus_logWrite("Data read:", _LOG_LINE); mikrobus_logWrite(memValue, _LOG_LINE); Delay_ms(1000); }
The full application code, and ready to use projects can be found on our Libstock page.
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.
MIKROSDK
The EEPROM 3 Click Board™ is supported by 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.
EEPROM 3 Click Board
Frequently Asked Questions
Have a Question?
Be the first to ask a question about this.