Page 1 of 1

My ecuEdit XML for A4SGD10C ROMs

PostPosted: Mon Mar 06, 2006 9:35 pm
by rewt
Here is the ecuEdit XML I've been working on for A4SGD10C ROMs. As with my XML for A4SGC00C ROMs, any named map marked with a "(?)" I don't know the proper units and/or conversion formulas... any "special" map is something that looks like a map, but I don't know to what...

Any help and/or feedback is appreciated.

Functions I use:
Code: Select all
<ecu_tools>
      <function name="toRPM" expr="[value]*50"/>
      <function name="frRPM" expr="[value]/50" dir="0"/>
      <function name="toAFR" expr="14.7/(1 + ([value] / 128))"/>
      <function name="frAFR" expr="(14.7*128)/[value]-128" dir="0"/>
      <function name="toLoad" expr="[value]/8192"/>
      <function name="frLoad" expr="[value]*8192" dir="0"/>
      <function name="toIgn" expr="([value]-57) * 360 / 1024"/>
      <function name="toIgnC" expr="[value] * 360 / 1024"/>
      <function name="toEGT" expr="([value]-40)*5"/>
      <function name="toThrt" expr="[value]*100/169"/>
      <function name="toWDuty" expr="[value]*100/246"/>
      <function name="toBoostBar" expr="[value]/93.7"/>
      <function name="toTempC" expr="([value]-64)*20/32"/>
      <function name="toAirFlow" expr="[value]*300/256"/>
      <function name="toAirFlow16" expr="[value]*300/65536"/>
      <function name="toMAFvolt" expr="[value]*0.019534"/>
      <function name="toBoostPSI" expr="([value] - 94) * .15425" dir="1"/>
      <function name="logGear5MT" expr="IF(([value]*1000/[value2])&lt;=9,1,IF(([value]*1000/[value2])&lt;=16,2,IF(([value]*1000/[value2])&lt;=22.5,3,IF(([value]*1000/[value2])&lt;=31.5,4,5))))" dir="2"/>
      <function name="toBigEndRPM" expr="[value] / 512 * 100" dir="1"/>
   </ecu_tools>

PostPosted: Thu Sep 14, 2006 12:34 pm
by thejean
Sorry, I only have more questions than answers:

1. Are you sure these formulas are correct? If so, how do you know?

2. Does this mean that the timing formula is:

timing = (ECU value-57)*360/1024 ??

3. What is IgnC ?

4. What is the formula that I would use to convert ECU AFR values real AFR values?

Thanks, JC

PostPosted: Thu Sep 14, 2006 3:47 pm
by thejean
can someone also explain to me what BigEndRPM is? :?

PostPosted: Thu Sep 14, 2006 6:31 pm
by Tea cups
That probably means "big endian".

PostPosted: Fri Sep 15, 2006 12:50 pm
by thejean
Tea cups wrote:That probably means "big endian".


And that means?? Sorry for being such a newb... :oops:

PostPosted: Fri Sep 15, 2006 5:34 pm
by rewt
thejean wrote:Sorry, I only have more questions than answers:

1. Are you sure these formulas are correct? If so, how do you know?

2. Does this mean that the timing formula is:

timing = (ECU value-57)*360/1024 ??

3. What is IgnC ?

4. What is the formula that I would use to convert ECU AFR values real AFR values?

Thanks, JC


sorry for the delay... i periodically check in, but most threads are pretty old. as far as your questions are concerned:

1.) the formulas were correct when i originally wrote the XML; they were standard formulas used by everyone.

2.) Yes, that is the timing formula.

3.) Honestly, I don't remember.

4.) toAFR()

honestly, i would recommend using Enginuity instead of ecuEdit. Enginuity actually generates definitions depending on the ROM version, and the definition is more complete than this old one i threw together.

PostPosted: Fri Sep 15, 2006 6:41 pm
by rewt
thejean wrote:can someone also explain to me what BigEndRPM is? :?


BigEndRPM is a formula for converting an ECU value to RPM when the ECU value is stored in big endian format. big endian format is a way of arranging the significant nibble in a byte.

IIRC, the significant nibble is at the end of the byte in big endian format, whereas the significant nibble is at the beginning of the byte in little endian format.

PostPosted: Sat Sep 16, 2006 10:34 am
by thejean
rewt wrote:....significant nibble in a byte.


Are we talking about the Cookie Monster now? :lol:

Thanks for the explanations.

PostPosted: Sat Sep 16, 2006 10:35 am
by thejean
So, does this mean values in the ECU rom that are divisible by 512 are probably RPM values?

PostPosted: Sat Sep 16, 2006 11:15 am
by rewt
thejean wrote:So, does this mean values in the ECU rom that are divisible by 512 are probably RPM values?


in many instances, yes, but in some instances, no. you'd have to compare the values you're seeing to other, known tables using RPM in order to make an accurate guess. most of the tables using RPM use similar RPM values.