Using FM1808 as RAM
Using FM1808 as RAM
Hi. I have built a 6502 dev board containing a WD65C02, 6850,27C256 EPROM,HY62256 SRAM and various decoding logic. I want to replace the SRAM with Ramtron FM1808 in order to retain programs when power is off. I have tried numerous combinations of OE/CE/WE tied low, connected to R/W etc to no avail. Does anyone have an example of a 6502 using FM1808 to help me with this problem?
Kind Regards,
Paul
Kind Regards,
Paul
Re: Using FM1808 as RAM
I used an FM1808 in 2004 for this : http://www.zeridajh.org/hardware/gommc/index.htm.
You have to take special notice of this (see the datasheet) :
Chip Enable: /CE selects the device when low. Asserting /CE low causes the
address to be latched internally. Address changes that occur after /CE goes low
will be ignored until the next falling edge occurs
This is in contrast to regular SRAM, where you can basically keep changing the address as long as there is enough time from address stable to data transfer, and you have the option to tie nCE low.
You have to take special notice of this (see the datasheet) :
Chip Enable: /CE selects the device when low. Asserting /CE low causes the
address to be latched internally. Address changes that occur after /CE goes low
will be ignored until the next falling edge occurs
This is in contrast to regular SRAM, where you can basically keep changing the address as long as there is enough time from address stable to data transfer, and you have the option to tie nCE low.
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Using FM1808 as RAM
bartleph wrote:
I want to replace the SRAM with Ramtron FM1808 in order to retain programs when power is off. I have tried numerous combinations of OE/CE/WE tied low, connected to R/W etc to no avail.
To successfully battery-back SRAM, try the simple circuit at viewtopic.php?p=32004#p32004 . I designed a different way in 1986 for a project at work, and it worked fine, but had a lot more components.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Using FM1808 as RAM
Windfall wrote:
Chip Enable: /CE selects the device when low. Asserting /CE low causes the
address to be latched internally. Address changes that occur after /CE goes low
will be ignored until the next falling edge occurs
address to be latched internally. Address changes that occur after /CE goes low
will be ignored until the next falling edge occurs
Feel free to show us your glue logic if you want some suggestions on alterations to accommodate the FM1808. Alternatively, you could go back to the HY62256 and use Garth's circuit.
-- Jeff
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: Using FM1808 as RAM
Windfall wrote:
I used an FM1808 in 2004 for this : http://www.zeridajh.org/hardware/gommc/index.htm.
You have to take special notice of this (see the datasheet) :
Chip Enable: /CE selects the device when low. Asserting /CE low causes the
address to be latched internally. Address changes that occur after /CE goes low
will be ignored until the next falling edge occurs
This is in contrast to regular SRAM, where you can basically keep changing the address as long as there is enough time from address stable to data transfer, and you have the option to tie nCE low.
You have to take special notice of this (see the datasheet) :
Chip Enable: /CE selects the device when low. Asserting /CE low causes the
address to be latched internally. Address changes that occur after /CE goes low
will be ignored until the next falling edge occurs
This is in contrast to regular SRAM, where you can basically keep changing the address as long as there is enough time from address stable to data transfer, and you have the option to tie nCE low.
Re: Using FM1808 as RAM
bartleph wrote:
Hi John. I have one of your GoSDC's for my beeb. Can I use it in place of either my 32K Eprom or 32k Sram on my dev board?
Re: Using FM1808 as RAM
Dr Jefyll wrote:
Windfall wrote:
Chip Enable: /CE selects the device when low. Asserting /CE low causes the
address to be latched internally. Address changes that occur after /CE goes low
will be ignored until the next falling edge occurs
address to be latched internally. Address changes that occur after /CE goes low
will be ignored until the next falling edge occurs
Feel free to show us your glue logic if you want some suggestions on alterations to accommodate the FM1808. Alternatively, you could go back to the HY62256 and use Garth's circuit.
-- Jeff
Ok my W65C02 board has 32k ROM (27256) and 32k SRAM (62256) at present. I'm hoping to use the FM1808 instead of the SRAM.
SRAM pins:-
27(/WE) RamRW
22(/OE) RomOE
20(/CS) A15
RamRW is derived from /CPURW NANDED with Phi2
RomOE is derived from CPURW NANDED with Phi2
ROM Pins:-
20(/CE) is derived from Address decoding to allow space for ACIA
22(/OE) RomOE
All works fine with SRAM but I cannot see why FM1808 is not working.
Any help or suggestions would be very much appreciated.
TIA
Paul
Re: Using FM1808 as RAM
bartleph wrote:
SRAM pins:-
27(/WE) RamRW
22(/OE) RomOE
20(/CS) A15
RamRW is derived from /CPURW NANDED with Phi2
RomOE is derived from CPURW NANDED with Phi2
27(/WE) RamRW
22(/OE) RomOE
20(/CS) A15
RamRW is derived from /CPURW NANDED with Phi2
RomOE is derived from CPURW NANDED with Phi2
Re: Using FM1808 as RAM
Windfall wrote:
bartleph wrote:
SRAM pins:-
27(/WE) RamRW
22(/OE) RomOE
20(/CS) A15
RamRW is derived from /CPURW NANDED with Phi2
RomOE is derived from CPURW NANDED with Phi2
27(/WE) RamRW
22(/OE) RomOE
20(/CS) A15
RamRW is derived from /CPURW NANDED with Phi2
RomOE is derived from CPURW NANDED with Phi2
Thank you.
This 6502.org forum is so valuable..
Paul
Re: Using FM1808 as RAM
You're welcome! But it was Windfall who connected most of the dots.
Intriguing devives, those Ferroelectric Nonvolatile RAMs!
For anyone who's interested I'm attaching a datasheet.
-- Jeff
Intriguing devives, those Ferroelectric Nonvolatile RAMs!
-- Jeff
- Attachments
-
- FM18L08_07.PDF
- (126.34 KiB) Downloaded 83 times
In 1988 my 65C02 got six new registers and 44 new full-speed instructions!
https://laughtonelectronics.com/Arcana/ ... mmary.html
https://laughtonelectronics.com/Arcana/ ... mmary.html
Re: Using FM1808 as RAM
Dr Jefyll wrote:
Intriguing devives, those Ferroelectric Nonvolatile RAMs! 
And reading it (as well as writing) wears out its cells. When I used it back in 2004, the 'endurance' was such that I had to run tight transfer loops outside FRAM (in normal RAM, actually on the 6502 stack) for fear of it wearing out too quickly (as in : 10 years of heavy use or so). The endurance has improved a lot since then (due to several production changes), so these days, at least if you buy recently produced chips, the wearing out should not be an issue in most if not all cases.
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Using FM1808 as RAM
Windfall wrote:
And reading it (as well as writing) wears out its cells.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
Re: Using FM1808 as RAM
GARTHWILSON wrote:
Windfall wrote:
And reading it (as well as writing) wears out its cells.
The datasheet I have (Rev 2.3, May 2003) says 'High Endurance 10 Billion (10^10) Read/Writes'. I kept track of this for a while, back then, and I think the endurance increased by a factor of 10 or so in just one or two years (although I'm not quite sure if I have kept the earlier or later datasheet).
Re: Using FM1808 as RAM
Windfall wrote:
The datasheet I have (Rev 2.3, May 2003) says 'High Endurance 10 Billion (10^10) Read/Writes'. I kept track of this for a while, back then, and I think the endurance increased by a factor of 10 or so in just one or two years (although I'm not quite sure if I have kept the earlier or later datasheet).
Which part had the 10^10 spec? I bought some FM1608s from AliExpress a while back, and according to the 2007 v3.2 datasheet (attached) they have 10^12. But even that doesn't help much: 10^6 seconds is only about 278 hours, less than a fortnight if running full-time. (You might get half a year from it if running for only an hour or two per day.) I guess before buying these I should have considered the actual number, rather than just assuming "high endurance" really would be high endurance for my application! (I intended to use these as a substitute for ROM.)
However, another three orders of magnitude on to that, 10^15, would bring it up to 31 years of continuous operation at 1 MHz, which I suppose is close enough to "unlimited" for many products (though not for all!).
I did luck out in that one of the FM1608s I bought actually turns out to be an FM18L008. These all look like pulls, so who knows how much endurance these FM1608s actually have left? Though given their relatively low endurance to start with, it seems likely that they were used in an application that did not read or write them terribly often.
Is the lifetime the same for all parts of a given part number, or might the specs have changed over the years they manufactured the part? My FM1608s appear to range from early 2004 through mid-2008, if I'm reading the date codes correctly:
Code: Select all
RAMTRON
FM1608-120-PG
M101090113G3 (×2)
M082170098G22
M074670088G18
M073270087G13
M072770087G9
M053750065G
M045340058G8
M044040057G
- Attachments
-
- FM1608.pdf
- (143.67 KiB) Downloaded 65 times
Curt J. Sampson - github.com/0cjs
- GARTHWILSON
- Forum Moderator
- Posts: 8774
- Joined: 30 Aug 2002
- Location: Southern California
- Contact:
Re: Using FM1808 as RAM
The numbers probably had to do with individual bytes, such that even sitting in a loop waiting for a command, there would be multiple instructions in the loop, some with two or three bytes each, so it would last at least five or ten times that long in the worst case. Regardless, Jeff's data sheet says the number is unlimited now though, just like SRAM.
http://WilsonMinesCo.com/ lots of 6502 resources
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?
The "second front page" is http://wilsonminesco.com/links.html .
What's an additional VIA among friends, anyhow?