Search found 482 matches

by tvrfan
Wed Nov 07, 2018 1:41 pm
Forum: EECGeeks
Topic: Modern day potential of J3 devices beyond TwEECer and QH
Replies: 48
Views: 9865

Re: Modern day potential of J3 devices beyond TwEECer and QH

Hmm...so code doesn't care about the low-bits. Yes, I've noticed this in many bins, the code doesn't check where the AD answer comes from. The AD_complete flag stays low until the command is complete, and you can't queue therefore queue AD requests in the CPU. What's actually worse is that the CPU ...
by tvrfan
Tue Nov 06, 2018 7:33 pm
Forum: EECGeeks
Topic: Modern day potential of J3 devices beyond TwEECer and QH
Replies: 48
Views: 9865

Re: Modern day potential of J3 devices beyond TwEECer and QH

Probably redundant, but I've just realised I got the voltage wrong for that circuit The maximum voltage grounded pin 48 is 2.56 as I said, but not grounded would be 1/2.82 * 5 = 1.77+0.6 = 2.37, so it possibly would overlap.... but I think principle of the self/test shared HEGO may still work. if it...
by tvrfan
Tue Nov 06, 2018 5:38 pm
Forum: EECGeeks
Topic: Modern day potential of J3 devices beyond TwEECer and QH
Replies: 48
Views: 9865

Re: Modern day potential of J3 devices beyond TwEECer and QH

Well, so much for THAT idea..... Unless..... is it possible that the EGO (driver) will never actually reach 2.56V, and so the self test can do a check of - IF equals 2.56V THEN self test, otherwise it's WB input (ie. 0- 2.55) ? Then it would indeed be duplexed. OOPS I've just spotted - I assumed R99...
by tvrfan
Tue Nov 06, 2018 4:38 pm
Forum: EECGeeks
Topic: Modern day potential of J3 devices beyond TwEECer and QH
Replies: 48
Views: 9865

Re: Modern day potential of J3 devices beyond TwEECer and QH

Hmmmm..... Digging out my rusty electronics knowledge... Er......Isn't that the perfect example of how the wide band works? IC16.1 will adjust the current flow through pin 48 via Q1CA (?) transistor, according to voltage fed in from pin 44, and the CPU/EEC can monitor that current by voltage drop th...
by tvrfan
Tue Nov 06, 2018 1:36 pm
Forum: EECGeeks
Topic: Modern day potential of J3 devices beyond TwEECer and QH
Replies: 48
Views: 9865

Re: Modern day potential of J3 devices beyond TwEECer and QH

Ah, I see.... A quick check of Wikipedia reveals that EGOs and HEGOs actually work like batteries, so they GENERATE voltage, and therefore do not require a 5v volt feed like a throttle sensor (which is just a variable resistor). From wiki - The zirconium dioxide, or zirconia, lambda sensor is based ...
by tvrfan
Mon Nov 05, 2018 7:42 pm
Forum: EECGeeks
Topic: Modern day potential of J3 devices beyond TwEECer and QH
Replies: 48
Views: 9865

Re: Modern day potential of J3 devices beyond TwEECer and QH

That's true about Analogue inputs, as the sample schematics I've seen often have a resistor network of some type, either to change voltage or to adjust the sensor results. Anything of non-linear response is of course is easy, that's what the 1D function lookup takes care of.... but Yes, a possible g...
by tvrfan
Mon Nov 05, 2018 1:59 pm
Forum: EECGeeks
Topic: Modern day potential of J3 devices beyond TwEECer and QH
Replies: 48
Views: 9865

Re: Modern day potential of J3 devices beyond TwEECer and QH

I want to add something to this - a view from the hardware/electronics viewpoint - If you've got access to the ROM ( = program) you can actually repurpose ANY of the inputs and outputs to do something else, within reason. Each injector output is effectively a PWM driver with a decent current capabil...
by tvrfan
Sun Nov 04, 2018 6:20 pm
Forum: EECGeeks
Topic: Modern day potential of J3 devices beyond TwEECer and QH
Replies: 48
Views: 9865

Re: Why auto disassembly is tough

I can't help but think of Hondata in this case... From what I understand, the ROM chip is replaced with an interface controller, which also adds features like boost control and flex fuel. Er, unless I am misunderstanding, isn't that exactly the same as the various J3 port plug in boards ? They too ...
by tvrfan
Sun Oct 28, 2018 6:11 pm
Forum: EECGeeks
Topic: Modern day potential of J3 devices beyond TwEECer and QH
Replies: 48
Views: 9865

Re: Why auto disassembly is tough

You could do that, sure. For me, to make it as simple as possible, I would still just go with MegaSquirt (or Emerald etc) replacement, and get the right hardware sensor interface bits/options for the engine. KISS principle wins.... I see there's DIY retrofits for stuff like the old mechanical Bosch ...
by tvrfan
Fri Oct 26, 2018 1:50 pm
Forum: EECGeeks
Topic: Modern day potential of J3 devices beyond TwEECer and QH
Replies: 48
Views: 9865

Re: Why auto disassembly is tough

Honestly, if i was doing a home made tune today, I would not keep the EEC-IV or V. Even with a plug in module, it's too hard IMHO. I would simply replace it...... I totally agree with several points raised - I would use a Megasquirt (or similar type) EEC for any project. You can get at all the param...
by tvrfan
Thu Oct 25, 2018 7:49 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

Good question, I'm honestly not sure.. As far as I know..... Higher level languages ('C' and upwards to things like Java) have some pretty good compilers, and they tend to have optimisation options for each main processor family. They already have a lot of 'code shortcut' optimisation tricks built i...
by tvrfan
Thu Oct 25, 2018 2:18 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

Wouldn't be surprised if it's in a lot of binaries - if it's a compiler thing (which it could well be) then probably a whole family have it. Sort of interesting on a different level - A9L does appear to have been 'hacked' afterwards (IMHO), with jumps inserted and odd bits which are never called, an...
by tvrfan
Mon Oct 22, 2018 11:19 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

here's a great one to "do yer 'ead in" as they would say in dear old Blighty (UK slang) I found this in 22CA whilst trying to get variable arguments to work, and spent AGES looking at it for why SAD wouldn't pass on the function lookup attributes..... and then the light dawned...... SUBFunLU1: 86dbc...
by tvrfan
Fri Oct 19, 2018 6:23 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

Actually, there's quite a lot of wait loops in low level coding, everywhere. Trouble is the CPU is often faster than the hardware it's driving. On the slightly bigger machines I worked on, many of the peripherals used interrupts to communicate, but even then there often had to be a wait between read...
by tvrfan
Thu Sep 27, 2018 2:35 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

I'm sure many people do, possibly even yourself if you have an ECU with flash ROM in it. Try enabling the flashing pin................ I only ever had a couple of older actual EEC-IV boxes as part of classic car and engine swaps/kits from several years ago. Boxes were all UK/European ones, from bef...
by tvrfan
Wed Sep 26, 2018 2:35 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: SAD 3.08 released

Thank you for the new version release. Any of those oddball two code bank bins have something other than 8 and 1 for calibration pointers and _maybe_ number of tunes or something? 2020: 08 byte 8 2021: 01 byte 1 I've not seen anything other than the 8 (regs) and 1 (set) yet. Earlier bins have no fo...
by tvrfan
Wed Sep 26, 2018 2:28 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

Seriously but - I've collected quite a few bins for my test set, I've got over 100 now. About time I did that really, as I'm still discovering new code tricks in them. There are a couple where whoever did the dump had faulty hardware/connection, as it always has one of the bits set (so not useable),...
by tvrfan
Wed Sep 26, 2018 2:20 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

So that means you're not going to support any more than 4 banks? :wink: Actually, I've written the code so that it should handle ALL 16 banks, so there !! Well, yeah, OK, code does check for 0,1,8,9 in a few places, but for all addressing, it's full 20 bits, 16 banks capable. Anyone got a (8065) bi...
by tvrfan
Tue Sep 25, 2018 7:25 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: SAD 3.08 released

Er - I can see that what I wrote might be misleading.... Perhaps I should have said " 2 x bank 8" Yes, *ALL* banks in a multibank can have both code and data, but only ONE contains a true 'start' jump at the beginning of the bank, which is bank 8. A true start is the one which jumps over the interru...
by tvrfan
Mon Sep 24, 2018 6:52 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

SAD 3.08 released

Just released 3.08. Mainly, this is for sorting out bank detection, for all bins, including those with a few missing or extra bytes at the front, and empty front banks. I was doing further carry/conditional stuff (from jsa) but stumbled across the bank problem after a PM from ranga83 telling me he c...
by tvrfan
Wed Sep 19, 2018 3:59 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

Update ..... This is a bit like Whackamole.... I downloaded more bins to test, and discovered that whilst it's not too bad to write code which works for *many* bins, getting it to work for *all* bins is a lot harder..... I'm still testing, but discovered more bugs in the way that - 1) banks are dete...
by tvrfan
Mon Aug 20, 2018 5:46 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

Just a quick note - I've discovered that SAD does not work properly for single bank 8065 cpus if file size is not exactly 56 or 64K. That is, if file does not 1) start immediately, or 2) has 'standard' 0x2000 filler at the front. This might apply for some multibanks too. (the 4TAB I have is an 'odd'...
by tvrfan
Sat Aug 18, 2018 7:27 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

Got PM now on this login.... Yeah, for you (jsa) and anyone else reading - there are a few argument getters which appear pretty much standard across the binaries. There is a fixed size one, which basically is POP, one or more LDB (or STB) with autoincrement, and then a PUSH. 3697: cc,3a pop R3A R3A ...
by tvrfan
Sat Aug 18, 2018 3:30 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

Hit a big problem with variable arguments which I'll have to rethink. It's looking more and more like if I can get A9L to work, ANYTHING else will probably work.....I reckon some of the 'nasty' code in there is patches applied afterwards by engineers. So I shall go back to current prod version (3.07...
by tvrfan
Fri Aug 17, 2018 8:38 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

Oops, you are right. It don't work -- OK, I'll add that to the list of stuff....
by tvrfan
Thu Aug 16, 2018 11:23 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

How about an alternate method ? Versions 3.04 on have prototype/test code for printing an OPERAND in the comment. I haven't worked on it in a while so it might crash, but try it out with a \1 \2 or \3 in the text line. It should work....and resolve names for indexed/indirect etc. as it calls the sam...
by tvrfan
Sun Aug 12, 2018 3:02 pm
Forum: EECGeeks
Topic: Orb 0 and Xrw 0
Replies: 11
Views: 2448

Re: Orb 0 and Xrw 0

Thanks for the code example. Yes that code seems weird. So it's not my suggestion of a PSW check....OK. er ..... a mystery then. I know that some things DO appear to have time sync/delay requirements from the code. Here's one from xdt2 (8065 CPU) 8246e: 90,35,34 orb R34,R35 R34 |= R35; 82471: f2 pus...
by tvrfan
Sat Aug 11, 2018 8:49 pm
Forum: EECGeeks
Topic: Orb 0 and Xrw 0
Replies: 11
Views: 2448

Re: Orb 0 and Xrw 0

Oops - a brain fart there..... I was thinking of the bitswap trick which actually uses 3 xors.... apologies. Yes XOR requires the bits to be different to produce a '1' output. Thanks Bob. But the XOR will still set the PSW according to the result (from Ford handbook) as per the R47 orb. So I reckon ...
by tvrfan
Sat Aug 11, 2018 5:01 am
Forum: EECGeeks
Topic: Orb 0 and Xrw 0
Replies: 11
Views: 2448

Re: Orb 0 and Xrw 0

First one doesn't change R47, but does set the PSW for a subsequent conditional jump.... You may also see R30 += 0 and similar, which do the same thing. It's not stated anywhere (that I've found), but I guess it's perhaps quicker to execute than a cmp, which effectively does a subtract, and bitwise ...
by tvrfan
Fri Aug 10, 2018 3:20 pm
Forum: EECGeeks
Topic: Why auto disassembly is tough
Replies: 310
Views: 76654

Re: Why auto disassembly is tough

Yes, I feel it's now pretty much essential to sort out arguments as next thing, before going on with anything else. (unless someone find a crash or something...)