FRAM NVRAM Board

EPROM EEPROM SRAM NVRAM Flash chips, reading/writing hardware and software
BOGSTOCK
Posts: 37
Joined: Sun Jul 05, 2015 1:03 pm
cars: supercharged v6 hilux
buick v6 hiace
ecotec hiace
LS1 hiace

Re: FRAM NVRAM Board

Post by BOGSTOCK »

How do I get my hands on one?
User avatar
antus
Site Admin
Posts: 8541
Joined: Sat Feb 28, 2009 8:34 pm
cars: TX Gemini 2L Twincam
TX Gemini SR20 18psi
Datsun 1200 Ute
Subaru Blitzen '06 EZ30 4th gen, 3.0R Spec B
Contact:

Re: FRAM NVRAM Board

Post 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.
Have you read the FAQ? For lots of information and links to significant threads see here: http://pcmhacking.net/forums/viewtopic.php?f=7&t=1396
BOGSTOCK
Posts: 37
Joined: Sun Jul 05, 2015 1:03 pm
cars: supercharged v6 hilux
buick v6 hiace
ecotec hiace
LS1 hiace

Re: FRAM NVRAM Board

Post 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
User avatar
j_ds_au
Posts: 386
Joined: Sun Jan 25, 2015 4:21 pm
Location: Sydney

Re: FRAM NVRAM Board

Post 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.
BennVenn
Posts: 503
Joined: Fri Mar 04, 2016 10:35 am
cars: R33 GTST, '60 Vw Bug, Express (4G63T), GW X200
Location: Windellama, NSW
Contact:

Re: FRAM NVRAM Board

Post 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.
User avatar
delcowizzid
Posts: 5535
Joined: Sat Feb 28, 2009 8:38 pm
Location: Wellington NZ
Contact:

Re: FRAM NVRAM Board

Post 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
If Its Got Gas Or Ass Count Me In.if it cant be fixed with a hammer you have an electrical problem
BennVenn
Posts: 503
Joined: Fri Mar 04, 2016 10:35 am
cars: R33 GTST, '60 Vw Bug, Express (4G63T), GW X200
Location: Windellama, NSW
Contact:

Re: FRAM NVRAM Board

Post 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.
User avatar
jenko
Posts: 450
Joined: Wed Jan 29, 2014 3:43 pm
cars: hilux v6
jaguar v12
mitsubishi lancer
fj cruiser
sv 21 camry wagon
Location: Pine mountain .vic
Contact:

Re: FRAM NVRAM Board

Post by jenko »

or burn an eeprom for the Mrs vehicle
User avatar
vlad01
Posts: 7959
Joined: Mon Oct 08, 2012 6:41 pm
cars: VP I S
VP I executive
VP II executive
VP II executive #2
VR II executive
Location: Kyneton, Vic

Re: FRAM NVRAM Board

Post 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.
I'm the director of VSH (Vlad's Spec Holden), because HSV were doing it ass about.
BennVenn
Posts: 503
Joined: Fri Mar 04, 2016 10:35 am
cars: R33 GTST, '60 Vw Bug, Express (4G63T), GW X200
Location: Windellama, NSW
Contact:

Re: FRAM NVRAM Board

Post by BennVenn »

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