SUB2 stock bin - '95 4.9L E4OD

A1C calibration can be modified and configured to operate all EFI-SD4x ECUs in 4 cylinder, 6 cylinder and 8 cylinder configurations.
wwhite
Posts: 313
Joined: 2021 Feb 16, 15:53
Location: Victoria, BC, Canada
Vehicle Information: 1994 Flarside, XLT, 351w E4OD
SD48b, Quarter Horse, Burn2

Re: SUB2 stock bin - '95 4.9L E4OD

Unread post by wwhite »

Data logging patch applied, request code review please.

Do Not Use address: 0xCCE0 for anything, it is the end of list marker with value 0xFFFF.
Data logging patch applied at 0xCD00
Data logging ops list applied at 0xCE00
SUB2 2023-03-22.xdf
(276.89 KiB) Downloaded 372 times

Code: Select all

...
a446: ef,b7,28            call  cd00             cd00 ();
a449: f0                  ret                    return;
...
cd00: 71,ef,45            an2b  R45,ef           B4_R45 = 0;
cd03: a1,00,ce,32         ldw   R32,ce00         R32 = ce00;
cd07: a2,33,36            ldw   R36,[R32++]      R36 = [R32++];
cd0a: 88,36,00            cmpw  R0,R36           
cd0d: df,0a               je    cd19             if (R36 = 0) goto cd19;
cd0f: a2,36,38            ldw   R38,[R36]        R38 = [R36];
cd12: c3,37,00,0d,38      stw   R38,[R36+d00]    [R36+d00] = R38;
cd17: 27,ee               sjmp  cd07             goto cd07;

cd19: 01,30               clrw  R30              R30 = 0;
cd1b: 01,40               clrw  R40              R40 = 0;
cd1d: b1,01,42            ldb   R42,1            R42 = 1;
cd20: a2,33,36            ldw   R36,[R32++]      R36 = [R32++];
cd23: 88,36,00            cmpw  R0,R36           
cd26: df,36               je    cd5e             if (R36 = 0) goto cd5e;
cd28: 89,fe,ff,36         cmpw  R36,fffe         
cd2c: df,24               je    cd52             if (R36 = fffe) goto cd52;
cd2e: b2,36,38            ldb   R38,[R36]        R38 = [R36];
cd31: a2,33,34            ldw   R34,[R32++]      R34 = [R32++];
cd34: 99,00,30            cmpb  R30,0            
cd37: df,0b               je    cd44             if (R30 = 0) goto cd44;
cd39: 98,35,30            cmpb  R30,R35          
cd3c: df,06               je    cd44             if (R30 = R35) goto cd44;
cd3e: 69,04,00,32         sb2w  R32,4            R32 -= 4;
cd42: 20,1a               sjmp  cd5e             goto cd5e;

cd44: b0,35,30            ldb   R30,R35          R30 = R35;
cd47: 70,34,38            an2b  R38,R34          R38 &= R34;
cd4a: 98,38,00            cmpb  R0,R38           
cd4d: df,05               je    cd54             if (R38 = 0) goto cd54;
cd4f: 90,42,40            orb   R40,R42          R40 |= R42;
cd52: 01,38               clrw  R38              R38 = 0;
cd54: 99,80,42            cmpb  R42,80           
cd57: df,05               je    cd5e             if (R42 = 80) goto cd5e;
cd59: 7d,02,42            ml2b  R42,2            wR42 *= 2;
cd5c: 27,c2               sjmp  cd20             goto cd20;

cd5e: 99,00,30            cmpb  R30,0            
cd61: df,08               je    cd6b             if (R30 = 0) goto cd6b;
cd63: b1,1f,31            ldb   R31,1f           R31 = 1f;
cd66: c6,30,40            stb   R40,[R30]        [R30] = R40;
cd69: 27,ae               sjmp  cd19             goto cd19;

cd6b: f0                  ret                    return;
Sevensecondsuv
Posts: 111
Joined: 2021 Nov 08, 22:24
Location: North Central IL
Vehicle Information: 1994 F-350 CCLB 7.5/ZF/4wd
1995 F-250 RCLB 4.9/T18/4wd
2000 Excursion 6.8/4R100/4wd
2001 Ranger RCSB 2.3/M5OD/2wd - turbocharged
2007 Town Car 4.6/4R75E
2011 Ranger SCSB 2.3/M5OD/2wd
wbo2_aem_uego

Re: SUB2 stock bin - '95 4.9L E4OD

Unread post by Sevensecondsuv »

wwhite wrote: 2023 Mar 22, 01:20 The total air mass flow into the engine (AMPEM) is computed from the basic equation:

Mass = Pressure * Volume / (Gas Law Constant * Temperature in Rankine)

Because the pressure can not be directly computed it is inferred from engine speed and manifold absolute pressure and a table of volumetric efficiency a a function of engine speed and load.
BASEMD must be calibrated to provide the engine volume for this calculation as well as the Gas Law Constant.

BASEMD = 0.0234393 * Engine Displacement in Liters (lbm - deg R/in. Hg - rev).

SARCHG = Standard Aircharge = 4.4256E-05 * CID / of cylinders.
Are those your words or a quote out of Ford's documentation? If Ford's documentation, do you mind sharing where I can find a copy? It'd be immensely helpful to have Ford's description of how it all works when trying to tune.

Also, I'll note that the equation for basemd presented above returns a far different value than the 225 number that shows up in J1X and SUB2. Maybe that's a unit conversion thing?
wwhite
Posts: 313
Joined: 2021 Feb 16, 15:53
Location: Victoria, BC, Canada
Vehicle Information: 1994 Flarside, XLT, 351w E4OD
SD48b, Quarter Horse, Burn2

Re: SUB2 stock bin - '95 4.9L E4OD

Unread post by wwhite »

The SD4x bins follow the LHBL1 strategy to a T.
So far SUB2 looks like it is missing A/C functions.
jsa
Posts: 260
Joined: 2021 Feb 16, 15:46
Location: Australia
Vehicle Information: 95 Escort RS Cosworth
2.0 YBP
CARD / QUIK / COSY / ANTI
GHAJ0
SMD-190 / SMD-490 EEC-IV

Binary Editor
ForDiag

Re: SUB2 stock bin - '95 4.9L E4OD

Unread post by jsa »

Sevensecondsuv
Posts: 111
Joined: 2021 Nov 08, 22:24
Location: North Central IL
Vehicle Information: 1994 F-350 CCLB 7.5/ZF/4wd
1995 F-250 RCLB 4.9/T18/4wd
2000 Excursion 6.8/4R100/4wd
2001 Ranger RCSB 2.3/M5OD/2wd - turbocharged
2007 Town Car 4.6/4R75E
2011 Ranger SCSB 2.3/M5OD/2wd
wbo2_aem_uego

Re: SUB2 stock bin - '95 4.9L E4OD

Unread post by Sevensecondsuv »

wwhite wrote: 2023 Mar 22, 14:26 The SD4x bins follow the LHBL1 strategy to a T.
So far SUB2 looks like it is missing A/C functions.
That would make sense, this truck wasn't optioned with a/c.
efloth
Posts: 274
Joined: 2021 Feb 15, 22:12
Location: Sacramento CA
Vehicle Information: 1991 F150 4.9L J1X 80lb Injectors E85
1995 F150 5.8L MOB1

Re: SUB2 stock bin - '95 4.9L E4OD

Unread post by efloth »

I've implemented all the other patches. Still working on extended VE though. Your code looks good to me but I haven't double checked everything yet.
wwhite
Posts: 313
Joined: 2021 Feb 16, 15:53
Location: Victoria, BC, Canada
Vehicle Information: 1994 Flarside, XLT, 351w E4OD
SD48b, Quarter Horse, Burn2

Re: SUB2 stock bin - '95 4.9L E4OD

Unread post by wwhite »

Going away for a week be offline for a bit.
efloth
Posts: 274
Joined: 2021 Feb 15, 22:12
Location: Sacramento CA
Vehicle Information: 1991 F150 4.9L J1X 80lb Injectors E85
1995 F150 5.8L MOB1

Re: SUB2 stock bin - '95 4.9L E4OD

Unread post by efloth »

Haven't had time to finish this up but it has been on my mind. I am taking a trip first two weeks of May so I am hoping to have it done before then.
Sevensecondsuv
Posts: 111
Joined: 2021 Nov 08, 22:24
Location: North Central IL
Vehicle Information: 1994 F-350 CCLB 7.5/ZF/4wd
1995 F-250 RCLB 4.9/T18/4wd
2000 Excursion 6.8/4R100/4wd
2001 Ranger RCSB 2.3/M5OD/2wd - turbocharged
2007 Town Car 4.6/4R75E
2011 Ranger SCSB 2.3/M5OD/2wd
wbo2_aem_uego

Re: SUB2 stock bin - '95 4.9L E4OD

Unread post by Sevensecondsuv »

Thanks guys.
efloth
Posts: 274
Joined: 2021 Feb 15, 22:12
Location: Sacramento CA
Vehicle Information: 1991 F150 4.9L J1X 80lb Injectors E85
1995 F150 5.8L MOB1

Re: SUB2 stock bin - '95 4.9L E4OD

Unread post by efloth »

Finally got around to finishing this up. You should be able to move your EXT VE table over from A1C now and give her a shot.
SUB2 2023-06-07.xdf
(277.27 KiB) Downloaded 352 times
Post Reply