View previous topic :: View next topic |
Author |
Message |
Dave H Guest
|
24FC512 HELP !! |
Posted: Wed Feb 18, 2004 7:20 am |
|
|
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!
|
|
|
PCM programmer
Joined: 06 Sep 2003 Posts: 21708
|
|
Posted: Wed Feb 18, 2004 1:53 pm |
|
|
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
|
|
Posted: Wed Feb 18, 2004 8:30 pm |
|
|
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
|
|
Posted: Wed Feb 18, 2004 8:54 pm |
|
|
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!!! |
Posted: Fri Feb 20, 2004 3:42 am |
|
|
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. |
|
|
Guest
|
|
Posted: Fri Jul 09, 2004 8:10 am |
|
|
Hi Dave, Would you post your init, read and write program for 24fc515 please! |
|
|
|