<!-- *** 

This 22080002 ROM definition for the EDM/JDM 1998-1999 4G93T 1.8 Liter Turbo Lancer GSR, authored by merlin.
Please report any errors or additions to merlin@three.com.au
Note 1: This ROM does not have Boost Control tables.
Note 2: This ROM does not have Lean-Spool tables.
Note 3: This ROM does not have EGR or PURGE tables.
Note 4: This ROM does not have Secondary Air Solenoid Control.
Note 5: 2-byte Spark Load is probably at: F18C & F18D.
Note 6: .
Note 7: Editing the definition from within EcuFlash will alter the layout and structure of the definition
and all the comments and spacing will be removed. Use Notepad to edit the definition file.
Last Revision:
03 July  2011

Copy the segment below to make a read template .xml file.
Name the read file:  read_4G93T_LancerGSR.xml

<rom>
	<romid>
		<xmlid>read_4G93T_LancerGSR</xmlid>
		<make>Mitsubishi</make>
		<market>EDM-JDM</market>
		<model>Lancer</model>
		<submodel>Turbo GSR with 7202 chip</submodel>
		<year>1998-1999</year>
		<flashmethod>mitsukernel</flashmethod>			
		<memmodel>H8539F</memmodel>
	</romid>
</rom>	

*** -->


<rom>
	<romid>
		<xmlid>22080002</xmlid>
		<internalidaddress>1021a</internalidaddress>
		<internalidhex>22080002</internalidhex>
		<caseid>???</caseid>
		<make>Mitsubishi</make>
		<market>JDM</market>
		<model>Lancer</model>
		<submodel>1.8 Turbo</submodel>
		<transmission>Manual</transmission>
		<year>1998/99</year>
		<flashmethod>mitsukernel</flashmethod>
		<memmodel>H8539F</memmodel>
	</romid>



<!--  SCALING  -->

<scaling name="AFR" units="AFR" toexpr="14.7*128/x" frexpr="14.7*128/x" format="%.1f" min="8" max="20" inc="0.1" storagetype="uint8" endian="big"/>
<scaling name="AFR16" units="AFR" toexpr="14.7*128/x" frexpr="14.7*128/x" format="%.1f" min="8" max="20" inc="0.1" storagetype="uint16" endian="big"/>
<scaling name="AirFlow16" units="g/S" toexpr="x*600/65536" frexpr="x*65536/600" format="%.1f" min="0" max="600" inc="1" storagetype="uint16" endian="big"/>
<scaling name="AirFlow8" units="g/S" toexpr="x*321/256" frexpr="x*256/321" format="%.1f" min="0" max="321" inc="1" storagetype="uint8" endian="big"/>
<scaling name="AltDeadZone" units="Charge Efficiancy %" toexpr="x/2.56" frexpr="x*2.56" format="%.0f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="AirTempFactor" units="Fraction" toexpr="x/64" frexpr="64/x" format="%.2f" min="0" max="2" inc="0.02" storagetype="uint8" endian="big"/>
<scaling name="AirTempBaroFactor" units="T/P" toexpr="x/64" frexpr="x*64" format="%.2f" min="0" max="2" inc="0.02" storagetype="uint16" endian="big" /> 
<scaling name="AirTempBaroCorrection" units="Multiplier" toexpr="x/128" frexpr="x*128" format="%.2f" min="0" max="2" inc="0.02" storagetype="uint8" endian="big" /> 
<scaling name="AltDeadZone" units="Charge Efficiancy %" toexpr="x/2.56" frexpr="x*2.56" format="%.0f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>

<scaling name="Ascii" storagetype="bloblist" storagebits="8">
		<data name="0" value="30"/>
		<data name="1" value="31"/>
		<data name="2" value="32"/>
		<data name="3" value="33"/>
		<data name="4" value="34"/>
		<data name="5" value="35"/>
		<data name="6" value="36"/>
		<data name="7" value="37"/>
		<data name="8" value="38"/>
		<data name="9" value="39"/>
		<data name="A" value="41"/>
		<data name="B" value="42"/>
		<data name="C" value="43"/>
		<data name="D" value="44"/>
		<data name="E" value="45"/>
		<data name="F" value="46"/>
		<data name="G" value="47"/>
		<data name="H" value="48"/>
		<data name="I" value="49"/>
		<data name="J" value="4A"/>
		<data name="K" value="4B"/>
		<data name="L" value="4C"/>
		<data name="M" value="4D"/>
		<data name="N" value="4E"/>
		<data name="O" value="4F"/>
		<data name="P" value="50"/>
		<data name="Q" value="51"/>
		<data name="R" value="52"/>
		<data name="S" value="53"/>
		<data name="T" value="54"/>
		<data name="U" value="55"/>
		<data name="V" value="56"/>
		<data name="W" value="57"/>
		<data name="X" value="58"/>
		<data name="Y" value="59"/>
		<data name="Z" value="5A"/>
	</scaling>

<scaling name="Baro16" units="bar" toexpr="x/200" frexpr="x*200" format="%.3f" min="0" max="1.100" inc="0.001" storagetype="uint16" endian="big"/>
<scaling name="BatteryVoltage" units="V" toexpr="x*75/1024" frexpr="x*1024/75" format="%.1f" min="0" max="18.75" inc="0.5" storagetype="uint16" endian="big"/>
<scaling name="BoostBar" units="bar" toexpr="x/93.7" frexpr="x*93.7" format="%.2f" min="0" max="2.7" inc="0.05" storagetype="uint8" endian="big"/>
<scaling name="BoostBar16" units="bar" toexpr="x/1372.2" frexpr="x*1372.2" format="%.2f" min="0" max="2.7" inc="0.05" storagetype="uint16" endian="big"/>
<scaling name="BoostErrorPsi" units="psi" toexpr="(x-128)/(8*5.18)" frexpr="x*8*5.18+128" format="%.1f" min="-3.1" max="3.1" inc="0.1" storagetype="uint16" endian="big"/>
<scaling name="BV_ECU" units="Battery Voltage" toexpr="x*0.0734" frexpr="x/0.0734" format="%.3f" min="0" max="18.75" inc="0.0735" storagetype="uint16" endian="big"/>

<scaling name="CaseAlphaNumeric" storagetype="bloblist" storagebits="8">
		<data name="MB" value="10"/>
		<data name="MD" value="20"/>
		<data name="MR" value="30"/>
		<data name="MN" value="60"/>
		<data name="1860" value="80"/>
	</scaling>

<scaling name="ChargeCurrent" units="Alternator Charge Current - Ampere" toexpr="x*80/256" frexpr="x*256/80" format="%.1f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="ChargeTime" units="mS" toexpr="x*0.064" frexpr="x/0.064" format="%.2f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="ChargeTimeOffset" units="mS" toexpr="x/256" frexpr="x*256" format="%.3f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="ColdStartTime" units="mS" toexpr="x*0.008" frexpr="x/0.008" format="%.1f" min="0" max="500" inc="1" storagetype="uint16" endian="big"/>
<scaling name="CrankPulseTime" units="mS" toexpr="x" frexpr="x" format="%.0f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="CF32" units="Correction Factor" toexpr="x/32" frexpr="x*32" format="%.3f" min="0" max="7.9687" inc="0.03125" storagetype="uint8" endian="big"/>
<scaling name="CF128" units="Correction Factor" toexpr="x/128" frexpr="x*128" format="%.3f" min="0" max="2" inc="0.05" storagetype="uint8" endian="big"/>
<scaling name="CF256" units="Correction Factor" toexpr="x/256" frexpr="x*256" format="%.3f" min="0" max="2" inc="0.05" storagetype="uint8" endian="big"/>

<scaling name="EGRDuty" units="%" toexpr="x/1.28" frexpr="x*1.28" format="%.1f" min="0" max="100" inc="0.1" storagetype="uint8" endian="big"/>
<scaling name="EGRDutyCTFactor" units="Fraction" toexpr="x/128" frexpr="x*128" format="%.1f" min="0" max="1" inc="0.01" storagetype="uint8" endian="big"/>
<scaling name="Enrich" units="deg" toexpr="x-128" frexpr="x+128" format="%.0f" min="-128" max="128" inc="1" storagetype="uint8" endian="big"/>
<scaling name="Enrich_Time" units="Seconds" toexpr="x*2" frexpr="x/2" format="%.0f" min="0" max="512" inc="2" storagetype="uint8" endian="big"/>
<scaling name="Enrich%" units="Enrich%" toexpr="x" frexpr="x" format="%.0f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="EnrichmentAdj" units="%" toexpr="x/128" frexpr="x*128" format="%.2f" min="0" max="2" inc="0.05" storagetype="uint8" endian="big"/>
<scaling name="EnrichmentStartTime" units="mS" toexpr="x*0.008" frexpr="x/0.008" format="%.1f" min="0" max="500" inc="1" storagetype="uint16" endian="big"/>

<scaling name="FABoostError" units="psi" toexpr="(x-168)/(8*5.18)" frexpr="x*8*5.18+168" format="%.1f" min="-3.1" max="3.1" inc="0.1" storagetype="uint16" endian="big"/>

<scaling name="Hex8" units="hex" toexpr="x" frexpr="x" format="%02X" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="Hex16" units="hex" toexpr="x" frexpr="x" format="%04X" min="0" max="65535" inc="1" storagetype="uint16" endian="big"/>

<scaling name="InjectorLatency" units="mS" toexpr="x*0.024" frexpr="x/0.024" format="%.3f" min="0" max="4" inc="0.024" storagetype="uint8" endian="big"/>
<scaling name="InjectorLatency1" units="ms" toexpr="x*0.024" frexpr="x/0.024" format="%.3f" min="0" max="4" inc="1" storagetype="uint8" endian="big"/>
<scaling name="InjectorLatency2" units="mS" toexpr="x*0.015" frexpr="x/0.015" format="%.3f" min="0" max="4" inc="1" storagetype="uint8" endian="big"/>
<scaling name="InjectorScaling1" units="cc/min" toexpr="29241/x" frexpr="29241/x" format="%.0f" min="0" max="29241" inc="10" storagetype="uint16" endian="big"/>
<scaling name="InjectorScaling2" units="cc/min" toexpr="29241/x" frexpr="29241/x" format="%.0f" min="0" max="29241" inc="30" storagetype="uint16" endian="big"/>
<scaling name="InjectorScaling_Mitsubishi" units="cc/min" toexpr="34140/x" frexpr="34140/x" format="%.0f" min="1" max="34140" inc="10" storagetype="uint16" endian="big"/>
<scaling name="ISCVSteps" units="Steps" toexpr="x" frexpr="x" format="%.0f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="ISCVSteps16" units="Steps" toexpr="x" frexpr="x" format="%.0f" min="0" max="255" inc="1" storagetype="uint16" endian="big"/>

<scaling name="Load" units="%VE" toexpr="x*10/32" frexpr="x*32/10" format="%.0f" min="0" max="300" inc="1" storagetype="uint16" endian="big"/>
<scaling name="Load16" units="%VE" toexpr="x*5/8" frexpr="x*8/5" format="%.1f" min="0" max="160" inc="1" storagetype="uint16" endian="big"/>
<scaling name="Load8" units="%VE" toexpr="x*5/8" frexpr="x*8/5" format="%.1f" min="0" max="160" inc="1" storagetype="uint8" endian="big"/>
<scaling name="LoadBoost" units="%VE" toexpr="x*5/4" frexpr="x*4/5" format="%.0f" min="0" max="319" inc="1" storagetype="uint8" endian="big"/>
<scaling name="LoadError" units="%" toexpr="x*5/32-20" frexpr="(x+20)*32/5" format="%.1f" min="-20" max="20" inc="0.5" storagetype="uint16" endian="big"/>
<scaling name="LT Trim Hz" units="Hz" toexpr="x*6.25" frexpr="x/6.25" format="%.2f" min="0" max="1593.75" inc="6.25" storagetype="uint8" endian="big"/>

<scaling name="MAFHz" units="Hz" toexpr="6.29*x/64" frexpr="64*x/6.29" format="%.0f" min="0" max="5000" inc="1" storagetype="int16" endian="big"/>
<scaling name="MAFsize" units="g/S" toexpr="39044/x" frexpr="39044/x" format="%.0f" min="1000" max="5000" inc="1" storagetype="int16" endian="big"/>

<scaling name="O2Voltage" units="V" toexpr="0.0195*x" frexpr="x/0.0195" format="%.2f" min="0" max="1" inc="0.01" storagetype="uint16" endian="big"/>
<scaling name="OffsetWGDC" units="%WGDC Change" toexpr="(x-128)/2" frexpr="x*2+128" format="%.1f" min="-64" max="63.5" inc="0.5" storagetype="uint8" endian="big"/>

<scaling name="Percent (128)" units="%" toexpr="x/1.28" frexpr="x*1.28" format="%.0f" min="0" max="100" inc="1" storagetype="uint8" endian="big"/>
<scaling name="Percent255" units="%" toexpr="100*x/255" frexpr="255*x/100" format="%.0f" min="0" max="100" inc="1" storagetype="uint8" endian="big"/>
<scaling name="Percent512" units="%" toexpr="100*x/512" frexpr="512*x/100" format="%.3f" min="0" max="100" inc="0.1953" storagetype="uint8" endian="big"/>

<scaling name="psia8" units="psia" toexpr="x/(5.18*2)" frexpr="x*(2*5.18)" format="%.1f" min="0" max="24.6" inc="0.1" storagetype="uint8" endian="big"/>
<scaling name="psia16" units="psia" toexpr="x/(5.18*2)" frexpr="x*(2*5.18)" format="%.1f" min="0" max="32" inc="0.1" storagetype="uint16" endian="big"/>

<scaling name="RetardHex8" units="MAX Retard Degrees - hex" toexpr="x" frexpr="x" format="%02X" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="Retarduint16" units="MAX Retard Degrees - dec" toexpr="61-(x*90/256)" frexpr="256*(61-x)/90" format="%.2f" min="-200" max="255" inc="0.35" storagetype="uint16" endian="big"/>
<scaling name="RPM" units="RPM" toexpr="x*1000/256" frexpr="x*256/1000" format="%.0f" min="0" max="11000" inc="50" storagetype="uint16" endian="big"/>
<scaling name="RPM8" units="RPM" toexpr="x*125/16" frexpr="x*16/125" format="%.0f" min="0" max="2000" inc="50" storagetype="uint8" endian="big"/>
<scaling name="RPMCrankLimit" units="RPM" toexpr="x*31.25" frexpr="x*31.25" format="%.0f" min="0" max="7969" inc="31.25" storagetype="uint8" endian="big"/>
<scaling name="RPMLimit" units="RPM" toexpr="7500000/x" frexpr="7500000/x" format="%.0f" min="0" max="9000" inc="60" storagetype="uint16" endian="big"/>
<scaling name="RPMPerMPH" units="RPM/MPH" toexpr="x/22.6" frexpr="22.6*x" format="%.0f" min="0" max="3000" inc="5" storagetype="uint16" endian="big"/>
<scaling name="RPMStatLimit" units="RPM" toexpr="x*31.25" frexpr="x/31.25" format="%.0f" min="0" max="9000" inc="31.25" storagetype="uint16" endian="big"/>
<scaling name="RPMStatLimit8" units="RPM" toexpr="x*31.25" frexpr="x/31.25" format="%.0f" min="0" max="9000" inc="31.25" storagetype="uint8" endian="big"/>
<scaling name="RPMTarget" units="RPM" toexpr="x*125/16" frexpr="x*16/125" format="%.0f" min="0" max="2000" inc="7.8" storagetype="uint16" endian="big"/>

<scaling name="Rpm8000" units="RPM" toexpr="x*31.25" frexpr="x/31.25" format="%.0f" min="0" max="8000" inc="31.25" storagetype="uint8" endian="big"/>
<scaling name="RPM8000" units="RPM" toexpr="x*31.25" frexpr="x/31.25" format="%.0f" min="0" max="8000" inc="31.25" storagetype="uint16" endian="big"/>
<scaling name="Rpm4000" units="RPM" toexpr="x*15.625" frexpr="x/15.625" format="%.0f" min="0" max="4000" inc="15.625" storagetype="uint8" endian="big"/>
<scaling name="RPM4000" units="RPM" toexpr="x*15.625" frexpr="x/15.625" format="%.0f" min="0" max="4000" inc="15.625" storagetype="uint16" endian="big"/>
<scaling name="Rpm2000" units="RPM" toexpr="x*7.8125" frexpr="x/7.8125" format="%.0f" min="0" max="2000" inc="7.8125" storagetype="uint8" endian="big"/>
<scaling name="RPM2000" units="RPM" toexpr="x*7.8125" frexpr="x/7.8125" format="%.0f" min="0" max="2000" inc="7.8125" storagetype="uint16" endian="big"/>
<scaling name="Rpm1000" units="RPM" toexpr="x*3.90625" frexpr="x/3.90625" format="%.0f" min="0" max="1000" inc="3.90625" storagetype="uint8" endian="big"/>
<scaling name="RPM1000" units="RPM" toexpr="x*3.90625" frexpr="x/3.90625" format="%.0f" min="0" max="1000" inc="3.90625" storagetype="uint16" endian="big"/>

<scaling name="Seconds" units="Seconds" toexpr="x" frexpr="x" format="%.0f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="Speed8" units="km/h" toexpr="x*2" frexpr="x/2" format="%.0f" min="0" max="510" inc="2" storagetype="uint8" endian="big"/>

<scaling name="TAR" units="TAR - 1 / sec ^2" toexpr="x*0.4547*4" frexpr="x/0.4547/4" format="%.1f" min="0" max="1000" inc="1" storagetype="uint8" endian="big"/>
<scaling name="Temp" units="Celsius" toexpr="x-40" frexpr="x+40" format="%.0f" min="-40" max="140" inc="1" storagetype="uint16" endian="big"/>
<scaling name="Temp8" units="Celsius" toexpr="x-40" frexpr="x+40" format="%.0f" min="-40" max="140" inc="1" storagetype="uint8" endian="big"/>
<scaling name="TempScale" units="Celsius" toexpr="x" frexpr="x" format="%.0f" min="-40" max="140" inc="1" storagetype="int8" endian="big"/>
<scaling name="TempScaleFuel" units="Celsius" toexpr="x/10" frexpr="x*10" format="%.0f" min="-40" max="200" inc="1" storagetype="int16" endian="big"/>
<scaling name="ThrottlePercentage8" units="%TPS" toexpr="x/255*100" frexpr="x*255/100" format="%.0f" min="0" max="100" inc="1" storagetype="uint8"/>
<scaling name="ThrottlePercentage" units="%TPS" toexpr="x/255*100" frexpr="x*255/100" format="%.0f" min="0" max="100" inc="1" storagetype="uint16"/>
<scaling name="ThrottleVoltage" units="V" toexpr="x*5/256" frexpr="x*256/5" format="%.2f" min="0" max="5" inc="0.05" storagetype="uint8" endian="big"/>
<scaling name="ThrottleVoltage16" units="V" toexpr="x*5/256" frexpr="x*256/5" format="%.2f" min="0" max="5" inc="0.05" storagetype="uint16" endian="big"/>
<scaling name="Time" units="mS" toexpr="x*25" frexpr="x/25" format="%.0f" min="0" max="1.63838e+06" inc="25" storagetype="uint16" endian="big"/>
<scaling name="Timing" units="degrees" toexpr="x" frexpr="x" format="%.0f" min="-128" max="128" inc="1" storagetype="int8" endian="big"/>
<scaling name="Time1" units="10mS" toexpr="x" frexpr="x" format="%.0f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="TimeSec" units="Sec" toexpr="x/10" frexpr="x*10" format="%.1f" min="0" max="25.5" inc="0.1" storagetype="uint16" endian="big"/>
<scaling name="Timesecbyte" units="s" toexpr="x/10" frexpr="x*10" format="%.1f" min="0" max="25.5" inc="0.1" storagetype="uint8" endian="big"/>
<scaling name="TimingTrim8" units="units" toexpr="x-128" frexpr="x+128" format="%.0f" min="-128" max="128" inc="1" storagetype="uint8" endian="big"/>

<scaling name="uint8" units="LOAD" toexpr="x" frexpr="x" format="%.0f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>
<scaling name="uint16" units="LOAD" toexpr="x" frexpr="x" format="%.0f" min="0" max="65535" inc="1" storagetype="uint16" endian="big"/>

<scaling name="ValveTiming" units="degrees" toexpr="72-x*0.6" frexpr="(72-x)/0.6" format="%.1f" min="0" max="30" inc="0.6" storagetype="uint8" endian="big"/>
<scaling name="ValveTiming16" units="degrees" toexpr="72-x*0.6/32" frexpr="(72-x)*32/0.6" format="%.1f" min="-1.8" max="28.8" inc="0.1" storagetype="uint16" endian="big"/>
<scaling name="VehicleSpeed" units="km/h" toexpr="x*2" frexpr="x/2" format="%.0f" min="0" max="510" inc="1" storagetype="uint16" endian="big"/>
<scaling name="VehicleSpeed8" units="km/h" toexpr="x*2" frexpr="x/2" format="%.0f" min="0" max="510" inc="2" storagetype="uint8" endian="big"/>
<scaling name="Volts16" units="Volts" toexpr="x*5/255" frexpr="x*255/5" format="%.2f" min="0" max="5" inc="0.05" storagetype="uint16" endian="big"/>
<scaling name="VoltsADCx4" units="Volts" toexpr="x*5/1023" frexpr="x*1023/5" format="%.3f" min="0" max="5" inc="0.005" storagetype="uint16" endian="big"/>

<scaling name="WGDC" units="%WGDC" toexpr="x/2" frexpr="x*2" format="%.1f" min="0" max="100" inc="0.5" storagetype="uint8" endian="big"/>
<scaling name="WGDuty" units="%" toexpr="x/2" frexpr="x*2" format="%.1f" min="0" max="100" inc="0.5" storagetype="uint8" endian="big"/>
<scaling name="WGDuty16" units="%" toexpr="x/2" frexpr="x*2" format="%.1f" min="0" max="100" inc="0.5" storagetype="uint16" endian="big"/>

<scaling name="Rpm8" units="RPM" toexpr="x*31.25" frexpr="x/31.25" format="%.0f" min="0" max="8000" inc="31.25" storagetype="uint8" endian="big"/>

<scaling name="Temp8" units="Celsius" toexpr="x-40" frexpr="x+40" format="%.0f" min="-40" max="140" inc="1" storagetype="uint8" endian="big"/>

<scaling name="Speed8" units="km/h" toexpr="x*2" frexpr="x/2" format="%.0f" min="0" max="510" inc="2" storagetype="uint8" endian="big"/>

<scaling name="Time8mSec" units="mSec" toexpr="x*25" frexpr="x/25" format="%.0f" min="0" max="6375" inc="25" storagetype="uint8" endian="big"/>

<scaling name="Time16mSec" units="mSec" toexpr="x*25" frexpr="x/25" format="%.0f" min="0" max="6375" inc="25" storagetype="uint16" endian="big"/>

<scaling name="TimeSec" units="Sec" toexpr="x/10" frexpr="x*10" format="%.1f" min="0" max="25.5" inc="0.1" storagetype="uint16" endian="big"/>

<scaling name="TimeSecAir" units="ALS AirInjectionTime - mS" toexpr="x/0.064" frexpr="x*0.064" format="%.0f" min="0" max="3985" inc="15" storagetype="uint8" endian="big"/>

<scaling name="Timex4_8" units="uSec" toexpr="x*4" frexpr="x/4" format="%.0f" min="0" max="1028" inc="4" storagetype="uint8" endian="big"/>

<scaling name="Time_uSec1" units="uSec" toexpr="x*4" frexpr="x/4" format="%.0f" min="0" max="1024" inc="4" storagetype="uint8" endian="big"/>

<scaling name="Time_uSec2" units="uSec" toexpr="x" frexpr="x" format="%.0f" min="0" max="255" inc="1" storagetype="uint8" endian="big"/>

<scaling name="Time_mSec1" units="mS" toexpr="x*0.256" frexpr="x/0.256" format="%.3f" min="0" max="1000" inc="0.256" storagetype="uint8" endian="big"/>





<!--  *** Injectors ***  

Injector Latency scaling equation is a function of the Injector Dead-Band Coefficient,
if Dead-Band Coeff = 24uS use InjectorLatency1
if Dead-Band Coeff = 15uS use InjectorLatency2
-->


<table name="Injector Dead-Band Coeff" category="Injectors" address="10801" type="1D" scaling="Time_uSec2"/>


<table name="Injector IPW Min" category="Injectors" address="10803" type="1D" scaling="Time_mSec1"/>


<table name="Injector Size Scaling - EcuFlash" category="Injectors" address="10806" type="1D" scaling="InjectorScaling1"/>
<table name="Injector Size Scaling - Mitsubishi" category="Injectors" address="10806" type="1D" scaling="InjectorScaling_Mitsubishi"/>


<table name="Injector Latency v Battery Voltage" category="Injectors" address="11b7c" type="2D" scaling="InjectorLatency2">
<table name="Battery Voltage" type="Y Axis" address="2cbe6" elements="7" scaling="BatteryVoltage"/>
</table>





<!--  *** Fuel  ***  -->

<table name="MAF Size" category="Fuel" address="1080c" type="1D" scaling="AirFlow16"/>


<table name="MAF Scaling" category="Fuel" address="11804" type="2D" scaling="uint8">
<table name="Airflow Hz" address="2CB9E" type="Y Axis" elements="21" scaling="MAFHz"/>
</table>


<table name="MAF Air_Fuel Matching Coefficient" category="Fuel" address="1181e" type="2D" scaling="CF128">
<table name="Airflow Hz" address="2CB9E" type="Y Axis" elements="21" scaling="MAFHz"/>
</table>


<table name="MAF Kinematic Viscosity Coefficient V Air Temp" address="11838" category="Fuel" type="2D" scaling="AirTempFactor">
<table name="Air Temp" address="2cdf8" type="Y Axis" elements="7" scaling="Temp"/>
</table>


<table name="MAF Air Temp/Density/Baro Compensation" category="Fuel" address="11847" type="3D" swapxy="true" scaling="AirTempBaroCorrection">
<table name="AirTempBaroFactor" address="2d058" type="X Axis" elements="4" scaling="AirTempBaroFactor"/>
<table name="MAF Hz" address="2d098" type="Y Axis" elements="9" scaling="MAFHz"/>
</table>


<table name="MAF Pulse Freq Limit v RPM" category="Fuel" address="11870" type="2D" scaling="AirFlow8">
<table name="RPM"  address="2d130" type="Y Axis" scaling="RPM" elements="16"/>
</table>


<table name="MAF Water Temp Compensation" address="11884" category="Fuel" type="2D" scaling="CF128">
<table name="Water Temp" address="2cD64" type="Y Axis" elements="8" scaling="Temp"/>
</table>

<table name="MAF Air Temp Compensation" address="11890" category="Fuel" type="2D" scaling="CF128">
<table name="Air Temp" address="2cdf8" type="Y Axis" elements="7" scaling="Temp"/>
</table>


<table name="Fuel - Alcohol Composition" category="Fuel" address="11897" type="2D" scaling="CF128">
<table name="Grade" type="Static X Axis" elements="8">
<data>00</data>
<data>01</data>
<data>02</data>
<data>03</data>
<data>04</data>
<data>05</data>
<data>06</data>
<data>07</data>
</table>
</table>


<table name="HI-OCTANE FUEL MAP" category="Fuel" address="118a7" type="3D" swapxy="true" scaling="AFR">
<table name="Load" address="2cc88" type="X Axis" elements="14" scaling="Load"/>
<table name="RPM" address="2cc66" type="Y Axis" elements="14" scaling="RPM"/>
</table>


<table name="LO-OCTANE FUEL MAP" category="Fuel" address="11973" type="3D" swapxy="true" scaling="AFR">
<table name="Load" address="2cc88" type="X Axis" elements="14" scaling="Load"/>
<table name="RPM" address="2cc66" type="Y Axis" elements="14" scaling="RPM"/>
</table>


<table name="Closed-Loop, AirFlow Fuel Trim Learning Zones" category="Fuel" address="11a37" type="2D" scaling="LT Trim Hz">
<table name="Conditions" type="Static Y Axis" elements="4">
<data>Low -> Mid</data>
<data>Mid -> Low</data>
<data>Mid -> High</data>
<data>High -> Mid</data>
</table>
</table>


<table name="Closed-Loop, Idle RPM Learning Zones" category="Fuel" address="11a39" type="2D" scaling="Rpm8">
<table name="Conditions" type="Static Y Axis" elements="4">
<data>N Hi</data>
<data>N Lo</data>
<data>D Hi</data>
<data>D Lo</data>
</table>
</table>



<table name="Fuel-Cut, Resume RPM v Temp" category="Fuel" address="11a44" type="2D" scaling="Rpm8">
<table name="Engine Temp" address="2cD64" type="Y Axis" elements="8" scaling="Temp"/>
</table>


  <table name="Fuel-Cut, Conditional Table" address="11a4c" category="Fuel" type="3D" scaling="Rpm8">
    <table name="Operation" type="Static X Axis" elements="6">
      <data>N-CUT</data>
      <data>N-MID</data>
      <data>N-INJ</data>
      <data>D-CUT</data>
      <data>D-MID</data>
      <data>D-INJ</data>
    </table>
    <table name="Conditions" type="Static Y Axis" elements="3">
      <data>AC  Off</data>
      <data>AC  on </data>
      <data>Unknown</data>
    </table>
  </table>


<table name="Fuel-Cut, Load Limit v RPM" category="Fuel" address="11a62" type="2D" scaling="LoadBoost">
<table name="Engine RPM" address="2cf84" type="Y Axis" elements="10" scaling="RPM"/>
</table>


<table name="Closed-Loop, Load 1 Hi-Gear" category="Fuel" address="11a70" type="2D" scaling="Load8">
<table name="RPM"  address="2Ca76" type="Y Axis" scaling="RPM" elements="16"/>
</table>


<table name="Closed-Loop, Load 2 Lo-Gear" category="Fuel" address="11a84" type="2D" scaling="Load8">
<table name="RPM"  address="2Ca76" type="Y Axis" scaling="RPM" elements="16"/>
</table>



<table name="Closed-Loop, Throttle 1 Hi-Gear" address="11a9c" category="Fuel" type="2D" scaling="ThrottlePercentage8">
<table name="RPM" address="2Ca76" type="Y Axis" scaling="RPM" elements="16"/>
</table>


<table name="Closed-Loop, Throttle 2 Lo-Gear" address="11ab0" category="Fuel" type="2D" scaling="ThrottlePercentage8">
<table name="RPM" address="2Ca76" type="Y Axis" scaling="RPM" elements="16"/>
</table>


<table name="Closed-Loop, Minimum Load v Temp" category="Fuel" address="11ac4" type="2D" scaling="Load8">
<table name="Engine Temp" address="2cD64" type="Y Axis" elements="8" scaling="Temp"/>
</table>


<scaling name="IPW_Alpha-N" units="IPW mS" toexpr="x/13.885" frexpr="x*13.885" format="%.2f" min="0" max="19" inc="0.072" storagetype="uint8" endian="big"/>

<table name="Fuel IPW for MAF Fault - Alpha-N Mode Map" category="Fuel" address="11b55" type="3D" swapxy="true" scaling="IPW_Alpha-N">
<table name="TPS" address="2cd50" type="X Axis" elements="7" scaling="ThrottlePercentage"/>
<table name="Engine Speed" address="2cd40" type="Y Axis" elements="5" scaling="RPM"/>
</table>


<table name="Injector Latency" category="Fuel" address="11b7c" type="2D" scaling="InjectorLatency">
<table name="Battery Voltage" address="2cbe6" type="Y Axis" elements="7" scaling="BatteryVoltage"/>
</table>


<table name="Injector Learning Table" address="11b83" category="Fuel" type="3D" scaling="Time_uSec1">
    <table name="uSec" type="Static X Axis" elements="6">
      <data>000</data>
      <data>032</data>
      <data>064</data>
      <data>096</data>
      <data>128</data>
      <data>160</data>
    </table>
    <table name="Time uSec" type="Static Y Axis" elements="11">
      <data>   0uSec</data>
      <data> 192uSec</data>
      <data> 384uSec</data>
      <data> 576uSec</data>
      <data> 768uSec</data>
      <data> 960uSec</data>
      <data>1152uSec</data>
      <data>1344uSec</data>
      <data>1536uSec</data>
      <data>1728uSec</data>
      <data>1920uSec</data>
    </table>
  </table>





<!--  *** Timing ***  -->

<table name="High Octane Ignition Map" category="Timing" address="11d07" type="3D" swapxy="true" scaling="Timing">
<table name="Load" address="2ccd4" type="X Axis" elements="16" scaling="Load"/>
<table name="RPM" address="2ccaa" type="Y Axis" elements="18" scaling="RPM"/>
</table>


<table name="Low Octane Ignition Map" category="Timing" address="11e2f" type="3D" swapxy="true" scaling="Timing">
<table name="Load" address="2ccd4" type="X Axis" elements="16" scaling="Load"/>
<table name="RPM" address="2ccaa" type="Y Axis" elements="18" scaling="RPM"/>
</table>


<table name="WarmUp Retard Map" category="Timing" address="11f57" type="3D" swapxy="true" scaling="TimingTrim8">
<table name="Load" address="2ccd4" type="X Axis" elements="16" scaling="Load"/>
<table name="RPM" address="2ccaa" type="Y Axis" elements="18" scaling="RPM"/>
</table>


<table name="Spark Accel Compensation" category="Timing" address="11f4c" type="2D" scaling="CF128">
<table name="RPM" address="2CF84" type="Y Axis" elements="10" scaling="RPM"/>
</table>


<table name="DeltaThrottleLoad Spark Accel Compensation" category="Timing" address="11f5c" type="2D" scaling="CF256">
<table name="RPM" address="2CF84" type="Y Axis" elements="10" scaling="RPM"/>
</table>


<table name="Timing Trim v Engine Temp" category="Timing" address="120a0" type="2D" scaling="TimingTrim8">
<table name="Engine Temp" address="2cDAE" type="Y Axis" elements="8" scaling="Temp"/>
</table>

<table name="Timing Trim v Air Temp" category="Timing" address="120ac" type="2D" scaling="TimingTrim8">
<table name="Air Temp" address="2CDF8" type="Y Axis" elements="7" scaling="Temp"/>
</table>


<table name="Ignition Trim v BARO" category="Timing" address="120B8" type="2D" scaling="CF128">
<table name="BARO Pressure" address="2cc12" type="X Axis" elements="5" scaling="Baro16"/>
</table>


<table name="DeltaLoad Spark Accel Compensation" category="Timing" address="120c2" type="2D" scaling="CF256">
<table name="RPM" address="2CF84" type="Y Axis" elements="10" scaling="RPM"/>
</table>


<table name="Warmup Retard Control" category="Timing" address="120d0" type="2D" scaling="Percent255">
<table name="Engine Temp" address="2cDAE" type="Y Axis" elements="8" scaling="Temp"/>
</table>


<table name="Ignition Coil Dwell Time" address="120dc" category="Timing" type="2D" scaling="ChargeTime">
<table name="Battery" address="2CBFA" type="Y Axis" elements="9" scaling="BatteryVoltage"/>
</table>


<table name="Ignition Coil Dwell Time Correction" address="120ea" category="Timing" type="2D" scaling="CF256">
<table name="Battery" address="2CBFA" type="Y Axis" elements="9" scaling="BatteryVoltage"/>
</table>


<table name="Ignition Coil Dwell Time Correction 2" address="120f8" category="Timing" type="2D" scaling="Percent (128)">
<table name="Battery" address="2CBFA" type="Y Axis" elements="9" scaling="BatteryVoltage"/>
</table>





<!--  *** IDLE ***  -->

<table name="Target Idle RPM - Stationary" category="Idle" address="1213A" type="2D" scaling="RPM8">
<table name="Engine Temp" address="2cE0C" type="Y Axis" elements="8" scaling="Temp"/>
</table>


<table name="Target Idle RPM - above 3kph" category="Idle" address="12146" type="2D" scaling="RPM8">
<table name="Engine Temp" address="2cE0C" type="Y Axis" elements="8" scaling="Temp"/>
</table>


<table name="ISCV Position - AC OFF, NEUTRAL" category="Idle" address="12152" type="2D" scaling="ISCVSteps">
<table name="Engine Temp" address="2cE0C" type="Y Axis" elements="8" scaling="Temp"/>
</table>


<table name="ISCV Position - AC OFF, DRIVE" category="Idle" address="1215e" type="2D" scaling="ISCVSteps">
<table name="Engine Temp" address="2cE0C" type="Y Axis" elements="8" scaling="Temp"/>
</table>


<table name="ISCV Position - AC ON, NEUTRAL" category="Idle" address="1216a" type="2D" scaling="ISCVSteps">
<table name="Engine Temp" address="2cE0C" type="Y Axis" elements="8" scaling="Temp"/>
</table>


<table name="ISCV Position - AC ON, DRIVE" category="Idle" address="12176" type="2D" scaling="ISCVSteps">
<table name="Engine Temp" address="2cE0C" type="Y Axis" elements="8" scaling="Temp"/>
</table>


<table name="ISCV Position - Cranking1" category="Idle" address="12182" type="2D" scaling="ISCVSteps">
<table name="Engine Temp" address="2cE0C" type="Y Axis" elements="8" scaling="Temp"/>
</table>


<table name="ISCV Stepper Composit Load Map" category="Idle" address="1223f" type="3D" scaling="ISCVSteps">
<table name="Engine Temp" address="2ce0c" type="X Axis" elements="8" scaling="Temp"/>
<table name="ISCV Combined Demand" address="2ce22" type="Y Axis" elements="27" scaling="ISCVSteps16"/>
</table>





<!--  *** Fan Control ***  -->

<table name="Thermo Fan Vehicle Speed Zone, AC OFF" category="Thermo Fan" address="12360" type="2D" scaling="VehicleSpeed8">
<table name="Condition" type="Static Y Axis" elements="4">
<data>MID to LO</data>
<data>LO to MID</data>
<data>HI to MID</data>
<data>MID to HI</data>
</table>
</table>


<table name="Thermo Fan Vehicle Speed Zone, AC ON" category="Thermo Fan" address="12364" type="2D" scaling="VehicleSpeed8">
<table name="Condition" type="Static Y Axis" elements="4">
<data>MID to LO</data>
<data>LO to MID</data>
<data>HI to MID</data>
<data>MID to HI</data>
</table>
</table>


<table name="Thermo Fan Temp Control, AC OFF" category="Thermo Fan" address="12368" type="3D" scaling="Temp8">
		<table name="FanSpeedSwitching - DeActivate v Temp" type="Static X Axis" elements="6">
			<data>LO-OFF</data>
			<data>OFF-LO</data>
			<data>MID-LO</data>
			<data>LO-MID</data>
			<data>HI-MID</data>
			<data>MID-HI</data>
		</table>
		<table name="km/h" type="Static Y Axis" elements="3">
			<data>Low kph</data>
			<data>Mid kph</data>
			<data>Hi  kph</data>
		</table>
	</table>


<table name="Thermo Fan Temp Control, AC ON" category="Thermo Fan" address="1237a" type="3D" scaling="Temp8">
		<table name="FanSpeedSwitching - DeActivate v Temp" type="Static X Axis" elements="6">
			<data>LO-OFF</data>
			<data>OFF-LO</data>
			<data>MID-LO</data>
			<data>LO-MID</data>
			<data>HI-MID</data>
			<data>MID-HI</data>
		</table>
		<table name="km/h" type="Static Y Axis" elements="3">
			<data>Low kph</data>
			<data>Mid kph</data>
			<data>Hi  kph</data>
		</table>
	</table>





<!--  *** Alternator  -->

<scaling name="RPM1000" units="RPM" toexpr="x*3.90625" frexpr="x/3.90625" format="%.0f" min="0" max="1000" inc="3.90625" storagetype="uint16" endian="big"/>

<scaling name="LoadAlternator" units="%" toexpr="x/2.56" frexpr="x*2.56" format="%.1f" min="0" max="100" inc="1" storagetype="uint16" endian="big"/>


<table name="Alternator Charge Current" category="Alternator" address="12397" type="3D" swapxy="true" scaling="ChargeCurrent">
<table name="Load" address="2cd14" type="X Axis" elements="9" scaling="LoadAlternator"/>
<table name="RPM" address="2ccfa" type="Y Axis" elements="10" scaling="RPM1000"/>
</table>


<table name="Alternator G Terminal Dead Zone" category="Alternator" address="123F6" type="2D" scaling="AltDeadZone">
<table name="RPM" address="2Ca06" type="X Axis" elements="10" scaling="RPM"/>
</table>





<!--  *** Fuel-Cut LIMITS ***  -->

<table name="Fuel-Cut, Rev Limit" category="Fuel-Cut Limits" address="1087a" type="1D" scaling="RPMLimit"/>


<table name="Fuel-Cut, Speed Limit" category="Fuel-Cut Limits" address="1087c" type="2D" scaling="VehicleSpeed">
<table name="Condition" type="Static Y Axis" elements="2">
<data>Limit  ON</data>
<data>Limit OFF</data>
</table>
</table>


<table name="Fuel-Cut, Rapid Fuel-Cut on Decel RPM decision" category="Fuel-Cut Limits" address="10881" type="1D" scaling="Rpm8000"/>


<table name="Fuel-Cut, Load Limit v RPM" category="Fuel-Cut Limits" address="11a62" type="2D" scaling="LoadBoost">
<table name="Engine RPM" address="2cf84" type="Y Axis" elements="10" scaling="RPM"/>
</table>





<!--  *** ECU Options ***  -->

<scaling name="blobbits" storagetype="bloblist" storagebits="1">
 <data name="0" value="00"/>
 <data name="1" value="01"/>
</scaling>


<table name="ECU Options Set 2 (272)" category="ECU Options" address="10272" type="2D" scaling="blobbits">
		<table name="Periphery Bit Number" type="Static Y Axis" flipy="true" elements="16">
			<data>bit.15                                               .</data>
			<data>bit.14, 0=Disable All O2 Heaters                     .</data>
			<data>bit.13                                               .</data>
			<data>bit.12, 0=Disable Purge                              .</data>
			<data>bit.11, 1=Disable EGR function                       .</data>
			<data>bit.10, 0=Disable Timing Knock Down on Light Accel   .</data>
			<data>bit.09, 0=Disable WarmUp Ignition Retard function    .</data>
			<data>bit.08                                               .</data>
			<data>bit.07, 1=Enable High Oct Ign Map Lookup             .</data>
			<data>bit.06, 1=Enable Speed Limit Test                    .</data>
			<data>bit.05                                               .</data>
			<data>bit.04, 0=Disable Closed Loop function               .</data>
			<data>bit.03, 0=Disable IMMOBILIZER    (Not Used on Evo5/6).</data>
			<data>bit.02                                               .</data>
			<data>bit.01                                               .</data>
			<data>bit.00                                               .</data>
		</table>
	</table>

<table name="ECU Options Set 3 (282)" category="ECU Options" address="10282" type="2D" scaling="blobbits">
		<table name="Periphery Bit Number" type="Static Y Axis" flipy="true" elements="16">
			<data>bit.15                                               .</data>
			<data>bit.14                                               .</data>
			<data>bit.13                                               .</data>
			<data>bit.12                                               .</data>
			<data>bit.11                                               .</data>
			<data>bit.10                                               .</data>
			<data>bit.09                                               .</data>
			<data>bit.08                                               .</data>
			<data>bit.07                                               .</data>
			<data>bit.06                                               .</data>
			<data>bit.05                                               .</data>
			<data>bit.04                                               .</data>
			<data>bit.03                                               .</data>
			<data>bit.02                                               .</data>
			<data>bit.01                                               .</data>
			<data>bit.00, 1=Enable Lean Spool                          .</data>
		</table>
	</table>





<!--  *** Identification ***  -->

<table name="ECU ID Hex Revision" category="Identification" address="1021a" type="2D" scaling="Hex8">
		<table name="Byte Position" type="Static X Axis" elements="4">
			<data>b1</data>
			<data>b2</data>
			<data>b3</data>
			<data>b4</data>
		</table>
	</table>

<table name="ECU ID ASCII" category="Identification" address="2fefa" type="2D" scaling="Ascii">
		<table name="Byte Position" type="Static Y Axis" elements="6">
			<data>b1</data>
			<data>b2</data>
			<data>b3</data>
			<data>b4</data>
			<data>b5</data>
			<data>b6</data>
		</table>
	</table>

<table name="ECU ID Logger" category="Identification" address="10252" type="2D" scaling="Hex8">
		<table name="Byte Position" type="Static X Axis" elements="2">
			<data>b1</data>
			<data>b2</data>
		</table>
	</table>

<table name="ECU ID Case Part Number" category="Identification" address="10233" type="3D" scaling="Hex8">
		<table name="Part Number" type="Static X Axis" elements="3">
			<data>PN2 .</data>
			<data>PN3 .</data>
			<data>PN4 .</data>
		</table>
		<table name="PN1" address="10232" type="Y Axis" elements="1" scaling="CaseAlphaNumeric"/>
	</table>





<!--  *** MUT3 Diagnostics Table ***  -->

<table name="MUT3 Table" category="Diagnostics" address="2fad0" type="3D" scaling="Hex16">
		<table name="X" type="Static X Axis" elements="16">
			<data>0</data>
			<data>1</data>
			<data>2</data>
			<data>3</data>
			<data>4</data>
			<data>5</data>
			<data>6</data>
			<data>7</data>
			<data>8</data>
			<data>9</data>
			<data>A</data>
			<data>B</data>
			<data>C</data>
			<data>D</data>
			<data>E</data>
			<data>F</data>
		</table>
		<table name="Y" type="Static Y Axis" elements="16">
			<data>. MUT00X .</data>
			<data>MUT01X</data>
			<data>MUT02X</data>
			<data>MUT03X</data>
			<data>MUT04X</data>
			<data>MUT05X</data>
			<data>MUT06X</data>
			<data>MUT07X</data>
			<data>MUT08X</data>
			<data>MUT09X</data>
			<data>MUT0AX</data>
			<data>MUT0BX</data>
			<data>MUT0CX</data>
			<data>MUT0DX</data>
			<data>MUT0EX</data>
			<data>MUT0FX</data>
			<data>MUT10X</data>
			<data>MUT11X</data>
			<data>MUT12X</data>
			<data>MUT13X</data>
			<data>MUT14X</data>
			<data>MUT15X</data>
			<data>MUT16X</data>
			<data>MUT17X</data>
			<data>MUT18X</data>
			<data>MUT19X</data>
			<data>MUT1AX</data>
			<data>MUT1BX</data>
			<data>MUT1CX</data>
			<data>MUT1DX</data>
			<data>MUT1EX</data>
			<data>MUT1FX</data>
		</table>
	</table>


</rom>
