AT24C02 EEPROM Interfacing with ATmega16 and LED Display
EEPROM stands for electrically erasable programmable read only memory. It is a secondary storage device that once written (programmed) can hold data even when the power is removed. The EEPROM is a class of read only memory that can be electrically erased and reprogrammed. Compare this with a CD R disks they can be recorded only once. A small amount of EEPROM is also available internally on the AVR Microcontrollers. So if the volume of data you want to store is small (say few user names and password) then you can use it. The internal eeprom makes design small and simple.
But if the amount of data you want to store is large, say in order of few tens of kilobytes then you have to interface a External EEPROM chip with your AVR Microcontroller. You can store pictures, sound and long texts in these eeproms. Their are many kinds of EEPROM chip available from many manufactures. One very common family is 24C series serial EEPROMs. They are available upto 128KB in size. They uses I2C interface with host controller (Microcontroller) which is a very popular serial communication standard.
In this project, we will learn How to interface a AT24C02 EEPROM with AVR ATmega16 microcontroller and LED Display. Here, we will write a byte of data into the AT24C02 EEPROM memory and then we will read this one byte of data from the AT24C02 EEPROM memory and we will display the read value in a 1X8 LED array. AT24C02 has a storage capacity of 2Kbit(256 bytes). The 256 byte memory is divided into pages of 8 byte each. The data communication between AVR ATmega16 microcontroller and AT24C02 EEPROM takes place through TWI communication protocol. The AVR ATmega16 microcontroller will write a byte of data(in our case 0xAA) into the 0x00 memory location of AT24C02 EEPROM memory through TWI communication. Then it will read the one byte data from the 0x00 memory location of AT24C02 EEPROM memory through TWI communication and it will display the read value in the 1X8 LED array.
Softwares Required
Hardwares Required
Name | Quantity |
AVR Trainer Board-100 with ATmega16 | 1pc |
AVR USB Programmer | 1pc |
12V, 1A DC SMPS Adaptor | 1pc |
EEPROM & RTC Board with AT24C02 | 1pc |
10 to 10 FRC Female to Female Connector | 3pc |
Post a Comment