{"product_id":"mikroe-1909-eeprom-2-click-board-uk","title":"EEPROM 2 Click Board™","description":"\n\n\u003cp\u003eThe\u003cstrong\u003e EEPROM2 Click Board™ \u003c\/strong\u003e provides 2 Mbit (2,097,152 bits) of Electrically Erasable and Programmable Read Only Memory, organized in bytes. In other words, this Click board™ is an EEPROM memory medium with the capacity of 256 KB. The used EEPROM module has an impressive endurance of 4,000,000 write cycles and data retention period of over 200 years. EEPROM module on this click features an ESD protection. It also contains a memory page of 256 bytes, which can be permanently locked, once it is written. The Error Correction Code logic section ensures a reliable data output from the device.\u003c\/p\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eEEPROM2 Click Board™\u003c\/strong\u003e is aimed towards industrial and commercial applications, which require secure and reliable data storage. It can be used for any kind of temporary or permanent data storage for various embedded electronic devices, simple data logging, storing various working parameters of a module or device, sensitive data retention in case of a power cycle, and other similar applications where reliable EEPROM memory is needed.\u003c\/p\u003e\n\n\u003ch3\u003eHow Does The EEPROM2 Click Board™ Work?\u003c\/h3\u003e\n\n\u003cp\u003eThe EEPROM module used on the \u003cstrong\u003eEEPROM2 Click Board™\u003c\/strong\u003e is the M95M02, an SPI serial EEPROM from STMicroelectronics, with the memory cell density of 2 megabits (Mbit). The EEPROM density is expressed in bits, so exactly 2,097,152 bits are organized in units or words of 8 bits, which gives 262,144 bytes of data memory. Furthermore, the EEPROM is organized in memory pages. One page holds 256 bytes and there are 1024 pages (1024 pages x 256 bytes = 262,144 bytes total). Having insight into how the memory cells are organized, is important for Write and Erase operations. The SPI pins are routed to the mikroBUS™ so the communication is easy and straightforward. The M95M02 IC supports clock frequency up to 5MHz.\u003cbr\u003e\n\u003cimg alt=\"\" data-entity-type=\"\" data-entity-uuid=\"\" data-mce-src=\"https:\/\/www.mikroe.com\/img\/cms\/eeprom-2-click-inside-image.jpg\" src=\"https:\/\/www.mikroe.com\/img\/cms\/eeprom-2-click-inside-image.jpg\"\u003e\u003c\/p\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eEEPROM2 Click Board™\u003c\/strong\u003e uses the  \u003cstrong\u003eSPI communication protocol \u003c\/strong\u003e. To ensure reliable data transaction and to avoid accidental write to the memory array, the device employs certain protection mechanisms. When the M95M02 IC is powered up and when the power supply voltage reaches a certain threshold, the device will reset itself, setting up the internal logic in a known state. In addition, before writing any data to the IC which modifies registers or the array itself, the WEL bit must be set. This bit is cleared after or during every memory modification instruction. Therefore every memory modification instruction must be prefixed with the Write Enable instruction that sets this bit. This mechanism ensures that only the intended write instruction will be executed.\u003c\/p\u003e\n\n\u003cp\u003eCommunication with the device is initiated by the host MCU, which drives the chip select pin (#S on the schematic) to a LOW logic level. This pin is routed to the mikroBUS™ CS pin. The next byte of information can be either command or data. Usually, the first byte is the instruction (command) followed by the memory address. Depending on the command that has been sent, either the memory is written to, or read from the specific memory address. Memory address on this device is 18 bit (0x00000 to 0x3FFFF) and therefore it is sent by 3 bytes.\u003c\/p\u003e\n\n\u003cp\u003eThere are several instruction codes, which can be sent after the CS pin being driven to a LOW logic level. These include Write Enable and Disable, Write and Read from memory array, Read and Write to Status register, and so on. For a full list of commands, please refer to the datasheet of the M95M02 IC.\u003c\/p\u003e\n\n\u003cp\u003eWhen using the Write to array instruction, it is possible to write up to 256 bytes in one write cycle. The internal address pointer is increased with each received byte. If attempting to write more than 256 bytes of data, a rollover will happen, writing the data from the beginning of the page. This is due to page organization of the memory array; only one full page can be written within a single write cycle.\u003c\/p\u003e\n\n\u003cp\u003eThe  \u003cstrong\u003eM95M02 includes a write protection \u003c\/strong\u003e of the specific parts or the whole memory array. The write protection consists of two bits in the Status Register (B0, B1), and the SRWD bit. The Status Register Write instruction can be used to set or reset these bits. B0 and B1 bits control the write-protect status of the memory array (from one quarter to full memory array protection). While the SRWD bit of the Status Register is set to 1, it is not possible to change the B0 and B1 bits. These bits are non-volatile and their state is retained between the power cycles.\u003c\/p\u003e\n\n\u003cp\u003eOne of the key features of the M95M02 IC is the Error Correction Code logic (ECC), which allows error correction by utilizing six additional bits, internally assigned to a group of four bytes. This protection scheme is capable of correcting some types of bit errors, staying transparent to the end user. The bit comparison and error correction are done internally.\u003c\/p\u003e\n\n\u003cp\u003eAnother feature of the M95M02 IC is an identification memory page, 256 bytes long. This page can be used to store an ID or other sensitive data, and once written, it can be permanently locked. The IC supports a set of instructions, used to perform the write, read and lock operation over this memory page.\u003c\/p\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eEEPROM2 Click Board™\u003c\/strong\u003e offers a  \u003cstrong\u003eselection between 3.3V and 5V operation \u003c\/strong\u003e, with the onboard SMD jumper, labeled as PWR SEL. This allows both 3.3V and 5V MCUs to be interfaced with this Click board™.\u003c\/p\u003e\n\n\u003ch3\u003eSPECIFICATIONS\u003c\/h3\u003e\n\n\u003ctable\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eType\u003c\/td\u003e\n            \u003ctd\u003eEEPROM\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eApplications\u003c\/td\u003e\n            \u003ctd\u003eThe \u003cstrong\u003eEEPROM2 Click Board™\u003c\/strong\u003e is an excellent choice for storing initialization and configuration data of your device\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eOn-board modules\u003c\/td\u003e\n            \u003ctd\u003eST's M95M02-DR DIP-8 socket EEPROM chip with 256 KB of memory\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eKey Features\u003c\/td\u003e\n            \u003ctd\u003e256 KB of memory. Write speed within 10 ms (byte\/page)\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eInterface\u003c\/td\u003e\n            \u003ctd\u003eSPI\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eCompatibility\u003c\/td\u003e\n            \u003ctd\u003emikroBUS\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eClick board size\u003c\/td\u003e\n            \u003ctd\u003eS (28.6 x 25.4 mm)\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eInput Voltage\u003c\/td\u003e\n            \u003ctd\u003e3.3V or 5V\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003ePINOUT DIAGRAM\u003c\/h3\u003e\n\n\u003cp\u003eThis table shows how the pinout on the \u003cstrong\u003eEEPROM2 Click Board™\u003c\/strong\u003e corresponds to the pinout on the mikroBUS™ socket (the latter shown in the two middle columns).\u003c\/p\u003e\n\n\u003ctable width=\"549\"\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003cth\u003eNotes\u003c\/th\u003e\n            \u003cth\u003ePin\u003c\/th\u003e\n            \u003cth colspan=\"4\"\u003e\u003cimg alt=\"Mikrobus logo.png\" data-entity-type=\"\" data-entity-uuid=\"\" data-mce-src=\"https:\/\/cdn.mikroe.com\/img\/mikrobus\/mikroBUS-logo-black.png\" src=\"https:\/\/cdn.mikroe.com\/img\/mikrobus\/mikroBUS-logo-black.png\"\u003e\u003c\/th\u003e\n            \u003cth\u003ePin\u003c\/th\u003e\n            \u003cth\u003eNotes\u003c\/th\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n            \u003ctd\u003e1\u003c\/td\u003e\n            \u003ctd\u003eAN\u003c\/td\u003e\n            \u003ctd\u003ePWM\u003c\/td\u003e\n            \u003ctd\u003e16\u003c\/td\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n            \u003ctd\u003e2\u003c\/td\u003e\n            \u003ctd\u003eRST\u003c\/td\u003e\n            \u003ctd\u003eINT\u003c\/td\u003e\n            \u003ctd\u003e15\u003c\/td\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eChip Select\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eCS\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e3\u003c\/td\u003e\n            \u003ctd\u003eCS\u003c\/td\u003e\n            \u003ctd\u003eRX\u003c\/td\u003e\n            \u003ctd\u003e14\u003c\/td\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eSPI Clock\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eSCK\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e4\u003c\/td\u003e\n            \u003ctd\u003eSCK\u003c\/td\u003e\n            \u003ctd\u003eTX\u003c\/td\u003e\n            \u003ctd\u003e13\u003c\/td\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eSPI Data OUT\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eSDO\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e5\u003c\/td\u003e\n            \u003ctd\u003eMISO\u003c\/td\u003e\n            \u003ctd\u003eSCL\u003c\/td\u003e\n            \u003ctd\u003e12\u003c\/td\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eSPI Data IN\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eSDI\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e6\u003c\/td\u003e\n            \u003ctd\u003eMOSI\u003c\/td\u003e\n            \u003ctd\u003eSDA\u003c\/td\u003e\n            \u003ctd\u003e11\u003c\/td\u003e\n            \u003ctd\u003eNC\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003ePower Supply\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003e+3V3\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e7\u003c\/td\u003e\n            \u003ctd\u003e3.3V\u003c\/td\u003e\n            \u003ctd\u003e5V\u003c\/td\u003e\n            \u003ctd\u003e10\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003e+5V\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003ePower Supply\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eGround\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003e8\u003c\/td\u003e\n            \u003ctd\u003eGND\u003c\/td\u003e\n            \u003ctd\u003eGND\u003c\/td\u003e\n            \u003ctd\u003e9\u003c\/td\u003e\n            \u003ctd\u003e\u003cstrong\u003eGND\u003c\/strong\u003e\u003c\/td\u003e\n            \u003ctd\u003eGround\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003e\n\u003cbr\u003e\nONBOARD SETTINGS AND INDICATORS\u003c\/h3\u003e\n\n\u003ctable\u003e\n    \u003ctbody\u003e\n        \u003ctr\u003e\n            \u003cth\u003eLabel\u003c\/th\u003e\n            \u003cth\u003eName\u003c\/th\u003e\n            \u003cth\u003eDefault\u003c\/th\u003e\n            \u003cth\u003eDescription\u003c\/th\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eJP1\u003c\/td\u003e\n            \u003ctd\u003ePWR.SEL.\u003c\/td\u003e\n            \u003ctd\u003eLeft\u003c\/td\u003e\n            \u003ctd\u003eLogic voltage level selection: left position 3V3, right position 5V\u003c\/td\u003e\n        \u003c\/tr\u003e\n        \u003ctr\u003e\n            \u003ctd\u003eLD1\u003c\/td\u003e\n            \u003ctd\u003ePWR\u003c\/td\u003e\n            \u003ctd\u003ePower indication LED\u003c\/td\u003e\n        \u003c\/tr\u003e\n    \u003c\/tbody\u003e\n\u003c\/table\u003e\n\n\u003ch3\u003eSoftware Support\u003c\/h3\u003e\n\n\u003cp\u003eWe provide a library for the \u003cstrong\u003eEEPROM2 Click Board™\u003c\/strong\u003e 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.\u003c\/p\u003e\n\n\u003cp\u003e\u003cstrong\u003eLibrary Description\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp\u003eThis library provides generic functions enough to have complete control over the \u003cstrong\u003eEEPROM2 Click Board™\u003c\/strong\u003e.\u003c\/p\u003e\n\n\u003cp\u003eKey functions:\u003c\/p\u003e\n\n\u003cul\u003e\n    \u003cli\u003e\n\u003ccode\u003evoid eeprom2_writeBytes(uint32_t memoryAddress, uint8_t *value, uint8_t count) \u003c\/code\u003e - Writes the function to EEPROM.\u003c\/li\u003e\n    \u003cli\u003e\n\u003ccode\u003evoid eeprom2_readBytes(uint32_t memoryAddress, uint8_t *value, uint8_t count) \u003c\/code\u003e - Reads the function from EEPROM.\u003c\/li\u003e\n    \u003cli\u003e\n\u003ccode\u003evoid eeprom2_memoryEnable() \u003c\/code\u003e - Enables the write function.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eExample Description\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp\u003eThe application is composed of three sections:\u003c\/p\u003e\n\n\u003cul\u003e\n    \u003cli\u003eSystem Initialization - CS GPIO as the output pin, initializes SPI and UART for logging.\u003c\/li\u003e\n    \u003cli\u003eApplication Initialization - Initializes EEPROM 2 driver.\u003c\/li\u003e\n    \u003cli\u003eApplication Task - writing data to EEPROM, reading that data and displaying it via UART.\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cpre\u003e\nvoid applicationTask()\n{\n\n eeprom2_memoryEnable();\n eeprom2_writeBytes(0x01, \u0026amp;text[0], 6);\n mikrobus_logWrite(\"Writing Mikroe to EEPROM 2 click\", _LOG_LINE);\n Delay_ms(1000);\n eeprom2_readBytes(0x01,\u0026amp;memValue[0],6);\n mikrobus_logWrite(\"Data read:\", _LOG_LINE);\n mikrobus_logWrite(memValue, _LOG_LINE);\n Delay_ms(1000);\n}\u003c\/pre\u003e\n\n\u003cp\u003eThe full application code, and ready to use projects can be found on our Libstock page.\u003c\/p\u003e\n\n\u003cp\u003eOther mikroE Libraries used in the example:\u003c\/p\u003e\n\n\u003cul\u003e\n    \u003cli\u003eI2C\u003c\/li\u003e\n    \u003cli\u003eUART\u003c\/li\u003e\n\u003c\/ul\u003e\n\n\u003cp\u003e\u003cstrong\u003eAdditional Notes and Information\u003c\/strong\u003e\u003c\/p\u003e\n\n\u003cp\u003eDepending on the development board you are using, you may need a 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.\u003c\/p\u003e\n\n\u003ch3\u003eMIKROSDK\u003c\/h3\u003e\n\n\u003cp\u003eThe \u003cstrong\u003eEEPROM2 Click Board™\u003c\/strong\u003e 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.\u003c\/p\u003e","brand":"Mikroelektronika d.o.o.","offers":[{"title":"Default Title","offer_id":37768346861757,"sku":"MIKROE-1909","price":22.0,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0522\/6931\/8333\/products\/mikroelektronika-d-o-o-click-board-eeprom-2-click-board-30253136314557.jpg?v=1685005854","url":"https:\/\/thedebugstore.com\/it\/products\/mikroe-1909-eeprom-2-click-board-uk","provider":"Debug Store","version":"1.0","type":"link"}