Interfacing EEPROM AT24C04 with 8051
Introduction
In this tutorial we will interface a EEPROM chip, AT24HC04 with the 8051 micrcontroller. 8051 does not have a permanent storage memory in built, hence it makes sense to interface it, it can be used numerous applications, wherein the system keeps parameters, values in the system permanently. These parameters may remain same or be updated over a period of time while the system is functioning. The important point is data remains in this memory even after it is powered off!
The Basics of AT24HC16
AT24HC16 works on I2C. Since 8051 does not have inbuilt hardware to support the protocol, we bit bang it. If you've not covered the ground on basics of I2C, check the tutorial basics of I2C