<!-- 
     JUST COPY THIS ENTIRE FILE INTO YOUR ECUFLASH DIRECTORY (rommetadata\mitsubishi\evo)
     YOU SHOULD NOT NEED TO EDIT OR COPY/PASTE THIS TEXT
-->
<rom>
	<romid>
		<xmlid>88590715</xmlid>
		<internalidaddress>f52</internalidaddress>
		<internalidhex>88590715</internalidhex>
		<make>Mitsubishi</make>
		<market>TDM</market>
		<model>Lancer</model>
		<submodel>Evolution IX</submodel>
		<transmission>6MT</transmission>
		<year>2007</year>
		<flashmethod>mitsukernelocp</flashmethod>
		<memmodel>SH7055</memmodel>
	</romid>

	<include>88590015</include>
	<scaling name="1bytefactor" units="units" toexpr="x/((32/10)*100)" frexpr="x*((32/10)*100)" format="%.1f" min="1" max="2" inc="0.1" storagetype="uint16" endian="big"/>
	<scaling name="ECUTime" units="ms" toexpr="1000*x/102" frexpr="102*x/1000" format="%.0f" min="0" max="100000" inc="10" 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="Percent255" units="%" toexpr="100*x/255" frexpr="255*x/100" format="%.0f" min="0" max="100" inc="1" storagetype="uint8" endian="big"/>
	<scaling name="RPMPerKPH" units="RPM/KPH" toexpr="x/36.37" frexpr="36.37*x" format="%.0f" min="0" max="3000" inc="5" storagetype="uint16" endian="big"/>
	<scaling name="VoltsADC1023" 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="TimeInjCranking" units="ms" toexpr="x*0.008" frexpr="x/0.008" format="%.1f" min="0" max="500" inc="1" storagetype="uint16" endian="big"/>

	<table name="Tephra Mod Options" category="TephraMod-V7" address="4821c" type="3D" scaling="uint16">
		<table name="X" type="Static X Axis" elements="1">
			<data>Value</data>
		</table>
		<table name="Y" type="Static Y Axis" elements="16">
			<data>Enable Valet Mode                                    ?</data>
			<data>+ Enable Auto-Valet on Fresh Ignition                ?</data>
			<data>Enable Alternate Maps Master ADC0F=1,AutoICS=2,TPS=3 ?</data>
			<data>Restore ICS State on Ignition                        ?</data>
			<data>Flash ICS when on Alternate Map                      ?</data>
			<data>Flash CEL on Knock                                   ?</data>
			<data>+ Drop Boost on High-Knock                           ?</data>
			<data>Enable Manual ICS Linger                             ?</data>
			<data>Enable Spray ICS on Knock                            ?</data>
			<data>Enable No Lift to Shift                              ?</data>
			<data>Enable RearO2 Simulator                              ?</data>
			<data>Enable Manifold Absolute Pressure Averaging          ?</data>
			<data>Enable WB02 Check AFR Safety                         ?</data>
			<data>+ Drop Boost on AFR Out of Range                     ?</data>
			<data>Enable AirFlow Calcs                                 ?</data>
			<data>Enable Launch Maps                                   ?</data>
		</table>
	</table>

	<table name="KnockSum Required for Slow CEL (Low Knock)" category="TephraMod-V7" address="4823c" type="1D" scaling="uint16"/>
	<table name="KnockSum Required for Fast CEL (High Knock)" category="TephraMod-V7" address="4823e" type="1D" scaling="uint16"/>
	<table name="Load Required for CEL on Knock" category="TephraMod-V7" address="48240" type="1D" scaling="Load"/>
	<table name="High Knock Boost Drop and Knock CEL Flash time" category="TephraMod-V7" address="48242" type="1D" scaling="ECUTime"/>

	<table name="Valet Rev Limit" category="TephraMod-V7" address="48244" type="1D" scaling="RPMLimit"/>

	<table name="TPS Toggle Time to Activate" category="TephraMod-V7" address="48246" type="1D" scaling="ECUTime"/>
	<table name="TPS Toggle CEL Flash Time" category="TephraMod-V7" address="48248" type="1D" scaling="ECUTime"/>

	<table name="Manual ICS Linger Time" category="TephraMod-V7" address="4824a" type="1D" scaling="ECUTime"/>

	<table name="KnockSum Required for Spray" category="TephraMod-V7" address="4824c" type="1D" scaling="uint16"/>
	<table name="Load Required for Spray on Knock" category="TephraMod-V7" address="4824e" type="1D" scaling="Load"/>
	<table name="Spray on Knock time" category="TephraMod-V7" address="48250" type="1D" scaling="ECUTime"/>

	<table name="NLTS RPM Drop" category="TephraMod-V7" address="48252" type="1D" scaling="uint16"/>
	<table name="NLTS TPS Threshold" category="TephraMod-V7" address="48254" type="1D" scaling="ThrottlePercentage"/>
	<table name="NLTS Speed Threshold" category="TephraMod-V7" address="48256" type="1D" scaling="VehicleSpeed"/>
	<table name="NLTS Load Threshold" category="TephraMod-V7" address="48258" type="1D" scaling="Load"/>

	<table name="Alternate Map Time to Activate" category="TephraMod-V7" address="4825a" type="1D" scaling="ECUTime"/>
	<table name="Alternate Map Load Threshold" category="TephraMod-V7" address="4825c" type="1D" scaling="Load"/>
	<table name="Alternate Map ADC0F Threshold" category="TephraMod-V7" address="4825e" type="1D" scaling="Volts16"/>

	<table name="2byte to 1byte Load Factor" category="TephraMod-V7" address="48260" type="1D" scaling="1bytefactor"/>

	<table name="AFR Safety Load Threshold" category="TephraMod-V7" address="48262" type="1D" scaling="Load"/>
	<table name="AFR Safety Max AFR (Volts)" category="TephraMod-V7" address="48264" type="1D" scaling="Volts16"/>
	<table name="AFR Safety Boost Drop and CEL Flash time" category="TephraMod-V7" address="48266" type="1D" scaling="ECUTime"/>
	<table name="AFR Safety Detection Period" category="TephraMod-V7" address="48268" type="1D" scaling="ECUTime"/>

	<table name="Launch-Map TPS Threshold" category="TephraMod-V7" address="4826a" type="1D" scaling="ThrottlePercentage"/>
	<table name="Launch-Map Speed Threshold" category="TephraMod-V7" address="4826c" type="1D" scaling="VehicleSpeed"/>


	<!-- BEGIN ALTMAP DEFINITIONS -->
	<table name="Alternate Injector Scaling" category="TephraMod-V7" address="49b40" type="1D" scaling="InjectorScaling"/>
	
	<table name="Alternate Hi Octane Fuel Map" category="TephraMod-V7" address="49b4d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Alternate Hi Octane Ignition Map #123" category="TephraMod-V7" address="49e4d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>

	<table name="Alternate Base Wastegate Duty" category="TephraMod-V7" address="4a14d" type="3D" swapxy="true" scaling="WGDuty">
		<table name="Gear" address="511c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="722e" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
	<table name="Alternate Boost Desired Engine Load" category="TephraMod-V7" address="4a1cd" type="3D" swapxy="true" scaling="Load8">
		<table name="Gear" address="511c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="722e" type="Y Axis" elements="16" scaling="RPM"/>
	</table>

	<table name="Alternate Cranking Enrichment IPW Adder (Main)" category="TephraMod-V7" address="4a24c" type="2D" scaling="TimeInjCranking">
		<table name="Coolant Temperature" address="6ff8" type="Y Axis" elements="9" scaling="Temp"/>
	</table>

	<!-- END ALTMAP DEFINITIONS -->

	<table name="WGDC=100% under this Load" category="TephraMod-V7" address="512b8" type="1D" scaling="Load"/>

	<!--<table name="RPM/Speed Ratio Filter Strength" category="TephraMod-V7" address="5118c" type="1D" scaling="uint16"/>-->

	<table name="RPM/Speed to Gear" category="TephraMod-V7" address="511b0" type="2D" scaling="uint8">
		<table name="RPM/Speed" address="5119a" type="Y Axis" elements="7" scaling="RPMPerKPH"/>
	</table>

	<table name="MAF IAT WGDC Correction" category="TephraMod-V7" address="512dc" type="2D" scaling="OffsetWGDC">
		<table name="Degrees" address="512c6" type="Y Axis" elements="7" scaling="Temp"/>
	</table>

	<table name="TPS WGDC Correction" category="TephraMod-V7" address="51304" type="2D" scaling="Percent255">
		<table name="Throttle" address="512ee" type="Y Axis" elements="6" scaling="ThrottlePercentage"/>
	</table>
	
	<table name="Launch Hi Octane Fuel Map" category="TephraMod-V7" address="4b34d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Launch Hi Octane Ignition Map #123" category="TephraMod-V7" address="4b64d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>

	<table name="==== STOCK REPLACEMENT MAPS BELOW ======" category="TephraMod-V7" address="0" type="1D" />
		
	<table name="High Octane Fuel Map" category="TephraMod-V7" address="4a74d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Low Octane Fuel Map" category="TephraMod-V7" address="4aa4d" type="3D" swapxy="true" scaling="AFR">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>

	<table name="High Octane Ignition Map 1" category="TephraMod-V7" address="4ad4d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	<table name="Low Octane Ignition Map 1" category="TephraMod-V7" address="4b04d" type="3D" swapxy="true" scaling="Timing">
		<table name="Engine Load" address="4bb5a" type="X Axis" elements="30" scaling="Load"/>
		<table name="RPM" address="4bb0a" type="Y Axis" elements="25" scaling="RPM"/>
	</table>
	
	<table name="Base Wastegate Duty" category="TephraMod-V7" address="4b94d" type="3D" swapxy="true" scaling="WGDuty">
		<table name="Gear" address="511c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="722e" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
	<table name="Boost Desired Engine Load" category="TephraMod-V7" address="4b9cd" type="3D" swapxy="true" scaling="Load8">
		<table name="Gear" address="511c2" type="X Axis" elements="7" scaling="uint16"/>
		<table name="RPM" address="722e" type="Y Axis" elements="16" scaling="RPM"/>
	</table>
	
	 <!-- HIDE all the now redudant maps so users dont get confused -->
  <table name="High Octane Ignition Map 1" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	<table name="Low Octane Ignition Map 1" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	
	<table name="High Octane Ignition Map 2" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	<table name="Low Octane Ignition Map 2" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />

	<table name="High Octane Ignition Map 3" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	<table name="Low Octane Ignition Map 3" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	
	<table name="Boost Desired Engine Load (High Gear Range)" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	<table name="Boost Desired Engine Load (Low Gear Range)" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	
	<table name="Baseline WGDC (High Gear Range)" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
	<table name="Baseline WGDC (Low Gear Range)" category="REDUNDANT MAPS" type="3D" address="0" scaling="REDUNDANT" />
</rom>
