24C02/24C Two-Wire Serial EEPROM. Preliminary datasheet. 2K ( X 8)/ 4K ( X 8). 1/ MRD. Features. ▫. Low-voltage and Standard-voltage. Find great deals for 10pcs AT24C04 24c04 Serial EEPROM Sop-8 Atmel. Shop with confidence on eBay!. Read about ’24C04 Interfacing issue’ on elementcom. Hey there,I am trying to interface the AT24C04 4K EEPROM with Atmega
|Published (Last):||11 March 2011|
|PDF File Size:||15.37 Mb|
|ePub File Size:||17.85 Mb|
|Price:||Free* [*Free Regsitration Required]|
Even the data sheet that you linked can lead to confusion in this regard.
24C04 and Arduino
In figure 4 they refer to the address as an 8-bit quantity:. Also be aware that the A0 to A2 pins on the device package are meant to remain static in a design.
If a total of eight 24C02’s are used in the design then each of the devices will have these three pins hard strapped in a different combination from the set of b, b, b, b, b, b, b and b. When you say that you are “writing” to the pins this does not make clear exactly what you are doing. Normally there is no writing to the 24C02 pins. Instead the three bits that you supply out on the interface in the atmwl address field must match the hard strapped values on the pins in order for the device to be selected.
10pcs AT24C04 24c04 Serial EEPROM Sop-8 Atmel
On top of that I have never been sure that it is even possible to dynamically change the strapped value on the A0, A1 and A2 pins of a 24C02 after it has powered up. A2 are used for creating the address.
2c04 device will not respond to the address that is being set dynamically. It considers the value of the A0,A1 and A2 before the power up and sticks to it till reset.
Found 8 device s. Check your chips markings. You do not write the addresses; you hardwire them. TurboJ The chip says the following: Can you explain what hardwiring is? In figure 4 they refer to the address as an 8-bit quantity: In Arduino, the function that does this is digitalWrite. That’s why I said “write”. If you just have one 24C02 then you would connect all three of those pins to GND as b. Then when you want to write to the part use an address byte of atkel and when you want to read use an address byte of 0xA1.
Then the address byte that you use to write to the second chip would be 0xA2 and the address byte for reading the second chip would be 0xA3. Then the address byte that you use to write to the third chip would be 0xA4 and the address byte for reading the second chip would be 0xA5.
Can’t change the values dynamically. It will answer to address that was set up before powering up.
So for example you keep A0: MaNyYaCk 6 Can you give more information? But my suggestion would to directly connect them to ground or VCC for the addressing scheme. Maybe the issue is setting the address after power on.
10pcs At24c04 24c04 Serial EEPROM Sop-8 ATMEL
I will try in about an hour. Sign up or log in Sign up using Google.