I2C is a bus interface connection incorporated into many devices such as sensors, RTC (Real Time Clocks), and EEPROM. ![]() It is a 16K bit memory organized as 2048 word of 8 bits each (2048 Byte).Ī0, A1 and A2 pins should be left unconnected for this specific EEPROM.The below drawing shows how to connect its pins to the Atmega32 I2C pins. You must make sure that pin 7 (WP is connected to ground) as this pin is a hardware write protection which won’t allow any writing operation to the memory unless it is grounded. In this article, we will use the Atmel EEPROM AT24C16A. In this case, using an external EEPROM gives you the advantage of having a larger storage space (than the internal EEPROM inbuilt in Atmega32) in addition to keeping the user configurations safe from being lost even if the MCU fails. You will usually need an external EEPROM when your system has a certain set of user configurable settings that you need to save even when the system is powered off so that the system starts with these configurations the next time it is powered on. So let’s begin our tutorial on how to interface an EEPROM (AT24C16A) with AVR Atmega32. In this article, we will explain how to communicate to an external EEPROM from the AVR Atmega32 MCU using the I2C communication protocol.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |