FRAM NVRAM Board

EPROM EEPROM SRAM NVRAM Flash chips, reading/writing hardware and software
Posts: 37
Joined: Sun Jul 05, 2015 1:03 pm

Re: FRAM NVRAM Board

Postby BOGSTOCK » Tue Jul 26, 2016 7:24 pm

How do I get my hands on one?

Site Admin
User avatar
Posts: 6679
Joined: Sat Feb 28, 2009 8:34 pm

Re: FRAM NVRAM Board

Postby antus » Wed Jul 27, 2016 8:40 am

Im expecting the next batch in about a week. Ideally i'll get an online store setup but if time isnt permitting might just use the pm system until i can sort it out. I'll post details in the for sale thread soon.
Have you read the FAQ? For lots of information and links to significant threads see here: viewtopic.php?f=7&t=1396

Posts: 37
Joined: Sun Jul 05, 2015 1:03 pm

Re: FRAM NVRAM Board

Postby BOGSTOCK » Thu Jul 28, 2016 10:20 am

Sweet, been after one for a while now so 100% get one. I'll keep an eye out next week but if u get a chance pm me when they are in.
Cheers bud

User avatar
Posts: 356
Joined: Sun Jan 25, 2015 4:21 pm
Location: Sydney

Re: FRAM NVRAM Board

Postby j_ds_au » Thu Aug 16, 2018 8:42 pm

BennVenn wrote:
Read.JPG

Above is a typical read bus transaction. OE and CE are as measured on the EPROM's pins, the A15 is taken from the PCB as are the other signals.

The RW line is active much of the time because it is this signal that enables writing to other chips on the bus, not just our NVRAM. You can also see NVRAM /CS is not active during these writes. /OE is always active on the NVRAM. Also worth noting is that the NVRAM is only read when A15 is high, indicating it resides in the upper 32kbytes of addressable ROM Space (0x8000 - 0xFFFF). The 'E' signal is the CPU's enable or synchronisation signal. This is what we'll use for the FRAM.

write.JPG


In this snapshot, we can see a byte write to the NVRAM. A15 is high, indicating the NVRAM is being addressed. WR drops low to initiate a write and then /CE drops low to activate the NVRAM. The problem here is that /OE is still active.

This raises the question, How is NVRAM being written to when the waveforms are so far off the signaling spec.


Very interesting, but very strange.

The first thing that looked strange is the inconsistent E-clock timing. However, the MC68HC11F1 (which these ECU/PCM microcontrollers are based on) technical data says that the E-clock can stretch high if /CSPROG (that's the ROM chip select/enable signal) is configured for slower memories, and it can stretch low if the MCU is put in STOP mode. Nevertheless it seems implausible that the /CSPROG configuration would be continually changing or that the MCU would be STOPped for such very short periods of time.

The second thing that looked strange is that there are some cases where there are multiple E-clock cycles during an activation (low state) of /CSPROG (corresponding to access of the ROM), versus other cases where they are 1:1. There is nothing in the technical data to suggest that there can be multiple E-clock cycles within an activation of /CSPROG, such as perhaps consecutive reads from the ROM (or to put it another way, that /CSPROG can span multiple E-clock cycles). The behaviour would have to be consistent, supposing this were indeed due to consecutive reads from the ROM. Furthermore, there are (were) some EPROM's, such as National Semiconductor CMOS types, that would misbehave every few trillion cycles if their chip enable signal wasn't toggled for each and every read access.

The third thing that looked strange is the cases where /CSPROG deactivates (goes high) in the middle of the high portion of the E-clock. The technical data says that's impossible, an active /CSPROG state is maintained until just after (0-20ns) the high-to-low transition of the E-clock.

Finally, the technical data specifies, for the /CSPROG configuration settings, that the "Valid" timing is "Fixed (Address valid)". What this means is that it cannot be changed to the shorter "E-clock valid" timing. This means that the low width of /CSPROG should be much wider than just the high portion of the E clock, it should actually start about half-way through the preceding low portion of the E-clock.

So there are multiple issues with these waveform captures, based on the MC68HC11F1 technical documentation. One might think that a discrepancy may be due to this being a secret derivative of this MCU, so perhaps a bit different, but not this many.

Posts: 314
Joined: Fri Mar 04, 2016 10:35 am
Location: Windellama, NSW

Re: FRAM NVRAM Board

Postby BennVenn » Wed Sep 08, 2021 1:46 pm

5 years later!

Some of my Dallas NVRAM IC's are approaching their 10year lifespan. A quick search on replacements show they're now $60 a piece, when they're available. I think it's time to revisit the FRAM or nvSRAM idea. Tech has progressed a little since first prototyping these and there are now drop in smd replacements for the Dallas IC's that don't require batteries and are good for 20 years at a minimum between power cycles. All they need is an external charge cap. Power up/down/brown out write protect is all built in so no corruption issues like in earlier FRAM IC's. They are very cost effective compared to the Dallas IC's.

I'm going to pull the trigger on a batch of these - though I don't think it would be right for me to sell them myself. If the good people who do sell the NVRAM boards in this forum could get in touch we can work out a way we all benefit. I've got 5 of these ecu's in use and I'd rather put that $300 to better use future proofing my toys than replacing a soon obsolete IC.

User avatar
Posts: 5478
Joined: Sat Feb 28, 2009 8:38 pm
Location: Wellington NZ

Re: FRAM NVRAM Board

Postby delcowizzid » Wed Sep 08, 2021 4:25 pm

They have allways been expensive for genuine ds1245y I have 2 different batches of clones that were about $4.50 each that I bought for a laugh one lot was just crap the others are still keeping data retained and still operate years later so does my original nvram that was in the 1st nvram boards ever produced
If Its Got Gas Or Ass Count Me In.if it cant be fixed with a hammer you have an electrical problem

Posts: 314
Joined: Fri Mar 04, 2016 10:35 am
Location: Windellama, NSW

Re: FRAM NVRAM Board

Postby BennVenn » Wed Sep 08, 2021 5:53 pm

I recall paying around $30ea from farnell back in the day. Maybe I'm mistaken. And you're right, I'll probably get 15years out of the Dallas, but what if it corrupts when the Mrs is driving the 40km trip into town... If they were always ~$60 then maybe I'll just replace it - It's tried and tested. For the others it makes sense to use a more modern batteryless solution. Or even a board with discrete SRAM/Controller/Coin cell in a socket so you can swap the cell easily when the time comes.

User avatar
Posts: 450
Joined: Wed Jan 29, 2014 3:43 pm
Location: Pine mountain .vic

Re: FRAM NVRAM Board

Postby jenko » Wed Sep 08, 2021 6:09 pm

or burn an eeprom for the Mrs vehicle

User avatar
Posts: 7036
Joined: Mon Oct 08, 2012 6:41 pm
Location: Kyneton, Vic

Re: FRAM NVRAM Board

Postby vlad01 » Wed Sep 08, 2021 6:30 pm

That's what I do as soon as I am done tuning. Even before finishing I have had random corruption. Lucky I had my laptop, tools and the burner, so I was able to recover away from home.
I'm the director of VSH (Vlad's Spec Holden), because HSV were doing it ass about.

Posts: 314
Joined: Fri Mar 04, 2016 10:35 am
Location: Windellama, NSW

Re: FRAM NVRAM Board

Postby BennVenn » Thu Sep 09, 2021 7:36 am

That's a great workaround but I'd rather address the cause of the issue

Previous

Return to Chip/Memcal Reading/Writing

Who is online

Users browsing this forum: No registered users and 2 guests