This is the AT24C256 that provides 32 Kbyte of serial, Electrically Erasable Programmable Read-Only Memory (EEPROM) organized at 256Kbits WORDS of 8 BITS each. EEPROM can store data permanently unless you erase or write it and won’t lose the data when power off. Some of the microcontrollers have limited storage like Arduino it has only 512 bytes data space compare to AT24C256 has 256Kb EEPROM will be very suitable for a small amount of data storage or extending data storage for your microcontroller. The 24C256 is optimized for use in minimal storage applications where low-power and low-voltage operation, driven using i2C serial communication bus to help you do much more multiple series of storage.
- Maximum Writing Time: 5 mS
- Read / Write Cycle: 100000
- Data Retention: > 200 Years
- Write Current Consumption: 3mA – 5VDC
- Read Current Consumption: 400uA – 5VDC
- Power Consumption on Standby: 100nA -5VDC
- Temperature Range: -40*C to +125*C
- Arduino Microcontroller, Teensy, ESP8266, ATTINY, STM32
- AT24C256 chip / Module
- Resistors (4k7, 10k, 220 Ohms)
- Capacitor (0.1 uf)
- 3mm LED
- Solder Less Bread Board
- Jumper Wire / DuPont Wire
Wiring Guide for Module
As you can see the diagram above the pin A0, A1, A2 are connected to the ground these pins allow you to customize the device i2C bus address, below the datasheet we that we verify how it is formed the byte address. For more details please refer to the Datasheet below.
4 significant bits are present for the control code while bits A0, A1, and A2 are customizable. The least significant bit R/W is used to select a WRITE/READ operations, connected to GND PIN A0, A1, A2 files chIP SELECT BITS are 0. See the address of the device below. we get a value of 0x50
To perform WRITING / READING the 24C256 you must submit in addition to CONTROL BYTE which specifies the device address in i2C Bus, two bytes that indicate the address memory we what to write/read.
Schematics Diagram / Wiring Guide for Single and Multiple EEPROM
The Wire library allows you to pass an integer value so we could just make a bit-wise operation to device the integer variable into two bytes. There are already functions that simplify this operation HIGH BYTE and LOW BYTE. The following code allows you to write all the 32000 bytes of memory.
Source Code 1