CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to CCS Technical Support

24FC512 HELP !!

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
Dave H
Guest







24FC512 HELP !!
PostPosted: Wed Feb 18, 2004 7:20 am     Reply with quote

I can write anywhere 0 - 0x7FFF but if I write 0x8000 onwards it appears in the lower half of the device ie write 34 to 0x8000 then address 0x0 also reads 34 !!. I have spent hours and cannot determine if the read or write or both are giving me this error.

I tryed a version of the code on another compiler with the same results .. help!

Crying or Very sad
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Feb 18, 2004 1:53 pm     Reply with quote

Quote:
I can write anywhere 0 - 0x7FFF but if I write 0x8000 onwards it appears in the lower half of the device ie write 34 to 0x8000 then address 0x0 also reads 34 !!.

What driver are you using ? You should be using the CCS driver
file, 24256.c. It will work with the 24FC512. If you don't have
the CCS driver file, here is a driver file that is very similar to it.
Try using this:
http://mobile.act.cmis.csiro.au/scada/include/24lc256.h
Guest








PostPosted: Wed Feb 18, 2004 8:30 pm     Reply with quote

Hello , try this.

#define EEPROM_ADDR1 0xa0 for the first 32k
#define EEPROM_ADDR2 0xa8 for the other 32k

The pin a2 must be hard wired to logical 1 state(vcc).

The 24fc515 is two memory of 32k in the same packet , see the databook for more detail

[]s Pedro
PCM programmer



Joined: 06 Sep 2003
Posts: 21708

View user's profile Send private message

PostPosted: Wed Feb 18, 2004 8:54 pm     Reply with quote

Quote:
The 24fc515 is two memory of 32k in the same packet


That's true, but his post says he has the 24FC512, not the 515.
I assumed that he has the CCS Demo, and so he has no drivers
or example files. I also assumed that he found a driver on
the net, and it's for the 24LC128, and it probably does a
bitwise AND of the high address byte with 0x7F. This would
cause the problem that he is reporting. That's why I posted
a link to a driver.

But, I could be wrong. It's all an assumption, since he
didn't provide full information. He may have the 24FC515.
Dave H
Guest







24LC512 NOT!!!
PostPosted: Fri Feb 20, 2004 3:42 am     Reply with quote

Sorted the problem .. I have now installed a new brain and eyes .. the part was a 515 not a 512 !!!. With this new info the thing works fine. Laughing
Guest








PostPosted: Fri Jul 09, 2004 8:10 am     Reply with quote

Hi Dave, Would you post your init, read and write program for 24fc515 please!
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group