Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

I2C bus 24C08 and 24C64 Problem

Status
Not open for further replies.

frigo

Junior Member level 3
Joined
Jul 11, 2001
Messages
29
Helped
1
Reputation
2
Reaction score
1
Trophy points
1,283
Location
ITALY
Activity points
255
24c08

My hardware consist in
cpu 89c52
rtc ds1307
adc max147
mem st 24c08 connections pins 1,3,7 to gnd and pin 1 to vdd
address write 164 decimal and address read 165 decimal

software compiled with BASCOM 8051.
My project working good with this configuration.
Now I want to increase memory.
I have changed the 24c08 with 24c64 without software and hardware modifications but
I don’t write and read correctly data.
I read always 165 decimal data in all address.
I have the same result with 24LC65.
Please help me !
Tanks
 

bascom24c08

hi frigo,
" have changed the 24c08 with 24c64 without software and hardware modifications"
i think there is a small problem with ur S/W.
check out the data sheet o fthe 24c64, u have to send the data byte address pointer n two byte format before u can start writing the data.
similarly , before reading the same , u have to set the poiner where u want with two byte write ( but not the normal way of a single byte).

**broken link removed**

write : check page : 10, fig 4, byte write format ,
read : check page : 11, fig 7, random byte read format.
i think it is simple enough, but just with an extra byte... :)

regards
sam
 

24c08 bascom

Hardware is identical, just insert one more "Word Address" in READ and WRITE strings and you should be fine.
So (WRITE) istead of having START DEVICE ADDRESS WRITE WORD ADDRESS DATA STOP you should have START DEVICE ADDRESS WRITE 'FIRST WORD ADDRESS' 'SECOND WORD ADDRESS' DATA STOP.
 

common i2c bus problems

HI
Your 24c08 will have only one read address and write address according to the A1 & A2 of the EEPROM,
But your 24c64 will have 8 read address and 8 write address, where Each 8K block will have Each address so totally 8 Addresses
The Addresses are
Read Write
1st 8K Block --> 0xa0 0xa1
2nd 8K Block --> 0xa2 0xa3
.
.
.
.
.
upto 8 Blocks
just go thro 8 & 9th page
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top