I2C 16KB EEPROM
The Microchip 24LC16B is a 16 Kbit Electrically Erasable PROM. We’re using a 16kbit EEPROM which is actually 16 384 bits / 8 bits in a byte = 2048 bytes. (2kb). The WP pin stands for write-protected and this allows you to control if data can be written to the eeprom or not. If this pin is low then writing is enabled but if it’s high then writing is disable; reading is always enabled. For the purpose of this tutorial we’re going to be writing to the eeprom so we can connect the WP pin to GND.
WP is LOW = Writing is enabled.
Quick Spec
- I2C Ready
- Density 16K bits (x8) or 2KB
- Operating Supply - 2.5 to 5.5V
- Max. Clock Freq. 400 kHz
- Page Size (bytes) 16
Arduino Code Example
#include
#define disk1 0x50 //Address of 24LC16 eeprom chip
void setup(void)
{
Serial.begin(9600);
Wire.begin();
unsigned int address = 0;
writeEEPROM(disk1, address, 123); //EEPROM.write(address, value)
Serial.print(readEEPROM(disk1, address), DEC);
}
void loop(){}
void writeEEPROM(int deviceaddress, unsigned int eeaddress, byte data )
{
Wire.beginTransmission(deviceaddress);
Wire.write((int)(eeaddress >> 8)); // MSB
Wire.write((int)(eeaddress & 0xFF)); // LSB
Wire.write(data);
Wire.endTransmission();
delay(5);
}
byte readEEPROM(int deviceaddress, unsigned int eeaddress )
{
byte rdata = 0xFF;
Wire.beginTransmission(deviceaddress);
Wire.write((int)(eeaddress >> 8)); // MSB
Wire.write((int)(eeaddress & 0xFF)); // LSB
Wire.endTransmission();
Wire.requestFrom(deviceaddress,1);
if (Wire.available()) rdata = Wire.read();
return rdata;
}
Shipping List
- 1 x I2C 16KB EEPROM
I2C 16KB EEPROM
- Brand: Generic
- Product Code: 24LC16B
- Product Status : Active
Stock
| Warehouse | Stock Status | Location |
|---|---|---|
| Centurion | No Stock | |
| Stellenbosch | No Stock |
We ship free of charge between branches to complete your order.
-
R12.00 (Inc Tax: R13.80)
Related Products
I2C 16KB EEPROM
I2C 16KB EEPROM The Microchip 24LC16B is a 16 Kbit Electrically Erasable PROM. We’re using a 16kbit EEPROM which is actually 16 384 bits / 8 bits in a byte = 2048 bytes. (2kb..
R12.00 (Inc Tax: R13.80)
16 Bit IO Expander I2C - Dip
16 Bit IO Expander I2C - Dip Quick Spec 16-bit remote bidirectional I/O port High-speed I2C™ interface (MCP23017) High-speed SPI interface (MCP23S17) Three hardware address ..
R25.00 (Inc Tax: R28.75)
EEPROM 16KB EEPROM I2C - SMD
EEPROM 16KB EEPROM I2C - SMD The Microchip Technology Inc. 24AA16/24LC16B (24XX16*) is a 16 Kbit Electrically Erasable PROM. The device is organized as eight blocks of 256 x 8-bit memory with a 2-wir..
R12.00 (Inc Tax: R13.80)
SparkFun Qwiic EEPROM Breakout - 512Kbit
SparkFun Qwiic EEPROM Breakout - 512Kbit The SparkFun Qwiic EEPROM Breakout is a simple and cost effective option to add some extra storage space to any project. With 512 kilo-bits (or 64 kilo-byte..
R109.00 (Inc Tax: R125.35)
MCP23017 16 Bit IO Expander I2C - SMD
MCP23017 16 Bit IO Expander I2C - SMD Add another 16 pins to your microcontroller using an MCP23017 port expander. The MCP23017 uses two i2c pins (these can be shared with other i2c devices), and i..
R16.00 (Inc Tax: R18.40)






