Page 22 of 22

Re: FRAM NVRAM Board

Posted: Tue Jul 26, 2016 7:24 pm
by BOGSTOCK
How do I get my hands on one?

Re: FRAM NVRAM Board

Posted: Wed Jul 27, 2016 8:40 am
by antus
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.

Re: FRAM NVRAM Board

Posted: Thu Jul 28, 2016 10:20 am
by BOGSTOCK
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

Re: FRAM NVRAM Board

Posted: Thu Aug 16, 2018 8:42 pm
by j_ds_au
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.

Re: FRAM NVRAM Board

Posted: Wed Sep 08, 2021 1:46 pm
by BennVenn
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.

Re: FRAM NVRAM Board

Posted: Wed Sep 08, 2021 4:25 pm
by delcowizzid
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

Re: FRAM NVRAM Board

Posted: Wed Sep 08, 2021 5:53 pm
by BennVenn
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.

Re: FRAM NVRAM Board

Posted: Wed Sep 08, 2021 6:09 pm
by jenko
or burn an eeprom for the Mrs vehicle

Re: FRAM NVRAM Board

Posted: Wed Sep 08, 2021 6:30 pm
by vlad01
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.

Re: FRAM NVRAM Board

Posted: Thu Sep 09, 2021 7:36 am
by BennVenn
That's a great workaround but I'd rather address the cause of the issue