Overview
The 24LC256 (commonly 24LC256-I/P in DIP-8 or 24LC256-I/SN in SOIC-8) is a () I2C serial non-volatile EEPROM IC manufactured by Microchip Technology. Organised as 32,768 8-bit bytes with a 64-byte page write buffer, it operates across a supply range of to DC.
Featuring Fast-Mode I2C bus compatibility, three hardware chip-address pins (), and a Hardware Write Protect pin (WP), the 24LC256 is widely used in microcontrollers (Arduino, ESP32, STM32) for persistent configuration storage, calibration parameters, and offline sensor data logging.
Quick reference
| Memory Type | 256-Kbit Serial I2C Non-Volatile EEPROM |
| Package | 8-Pin DIP (Through-Hole) / SOIC-8 / TSSOP-8 |
| Supply Voltage Range () | to DC ( for 24AA256 series) |
| Memory Capacity | ( / ) |
| Page Write Buffer | page write buffer |
| I2C Clock Speed | Fast Mode ( Standard Mode) |
| Write Cycle Time | max self-timed page write cycle |
| Endurance & Retention | 1,000,000 write cycles / data retention |
Pinout (8-Pin DIP Package)
text
┌──────────┐
A0 ─│ 1 8 │─ VCC
A1 ─│ 2 7 │─ WP
A2 ─│ 3 6 │─ SCL
VSS ─│ 4 5 │─ SDA
└──────────┘
| Pin | Name | Description |
|---|---|---|
| 1 | A0 | Hardware I2C Chip Address bit 0 input |
| 2 | A1 | Hardware I2C Chip Address bit 1 input |
| 3 | A2 | Hardware I2C Chip Address bit 2 input |
| 4 | VSS | Ground reference (0 V) |
| 5 | SDA | I2C Serial Data bidirectional line (Open-drain) |
| 6 | SCL | I2C Serial Clock input line |
| 7 | WP | Hardware Write Protect pin (High = Write Protect ON, Low/GND = Write Enable) |
| 8 | VCC | Positive power supply (+2.5V to +5.5V DC) |
Hardware I2C Address Mapping
The 7-bit I2C device address consists of a fixed 4-bit control code (1010 / 0xA) followed by the 3 hardware address pin states ():
| Pin | Pin | Pin | 7-Bit Hex Address | 8-Bit Read Address | 8-Bit Write Address |
|---|---|---|---|---|---|
GND (0) | GND (0) | GND (0) | 0x50 | 0xA1 | 0xA0 |
GND (0) | GND (0) | VCC (1) | 0x51 | 0xA3 | 0xA2 |
VCC (1) | VCC (1) | VCC (1) | 0x57 | 0xAF | 0xAE |
Specifications
| Parameter | Symbol | Min | Typ | Max | Unit | Conditions |
|---|---|---|---|---|---|---|
| Supply Voltage Range | 2.5 | 3.3 / 5.0 | 5.5 | V | Operational range | |
| Read Current | — | 400 | 1000 | |||
| Write Current | — | 1.5 | 3.0 | mA | ||
| Standby Current | — | 100 | 1000 | nA | ||
| Write Cycle Time | — | 2.0 | 5.0 | ms | Self-timed page write |
Common mistakes
- Writing across 64-byte page boundaries: The internal page write buffer holds 64 bytes. If a multi-byte write crosses a 64-byte address boundary (e.g. starting at byte address 62 for 5 bytes), the memory address wraps around to the beginning of the SAME page (byte 0), overwriting previous data!
- Not waiting for write cycle completion: Self-timed page writes take up to . Sending a new I2C read/write command immediately without delay or I2C ACK polling will result in NAKs from the chip.
Notes
- Up to 8 EEPROMs on one bus: Connecting combinations of to GND or allows operating up to 8 256Kbit chips ( total) on a single I2C bus.
Assets & downloads
- datasheetdatasheet
- product-pagereference