Hi guys. I was learning how to use a 34C02 AND 24C04 memories. I sucesfully wrote and read data, but I got confused when I read the datasheet. It says 34C02 has 2K of memory and 24C04 has 4K, right? But how can I access all this 2K/4K if I can only send bytes trhough I2C, so, 256B?
First byte: MUST be $Ax, where x have my memory "code" and R/W bit
Second byte: The memory address
Third byte: more memory address or data?
Writing at all 24C02 adress
Re: Writing at all 24C02 adress
Hi Nemweb,Nemweb wrote:Hi guys. I was learning how to use a 34C02 AND 24C04 memories. I sucesfully wrote and read data, but I got confused when I read the datasheet. It says 34C02 has 2K of memory and 24C04 has 4K, right? But how can I access all this 2K/4K if I can only send bytes trhough I2C, so, 256B?
First byte: MUST be $Ax, where x have my memory "code" and R/W bit
Second byte: The memory address
Third byte: more memory address or data?
It's very important to read and understand part datasheet clearly.
Size is declared in bits not in bytes, 2Kbits and 4Kbits not 2Kbytes and 4Kbytes.
1byte is 8bits.
Divide Kbits with 8 and you will get Kbytes size.
Best regards,
Peter
Re: Writing at all 24C02 adress
oh yeah! now, reading each datasheet I understood how to control! Thanks and sorry by this idiot question!
Re: Writing at all 24C02 adress
Hi,Nemweb wrote:oh yeah! now, reading each datasheet I understood how to control! Thanks and sorry by this idiot question!
Please be free to ask everything what you want.
Best regards,
Peter
Re: Writing at all 24C02 adress
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)
Re: Writing at all 24C02 adress
ooh! Thanks! It is really helpful (better than reading datasheet)