|
MegaSquirtPNP™
Plug-N-Play Standalone Engine Management System by DIYAutoTune.com |
MegaSquirt PNP Pro DocumentationModel/Vehicle Specific information for model MSPNPP-MM9093 on a 1990-1993 Mazda Miata 1.6L Please read all documentation before installing your MegaSquirtPNP EMS, and verify you've followed all steps before starting your engine for the first time. Physical Installation
At this point, it is safe to power the ECU
up, but please make sure you load the appropriate startup map
for your specific engine before attempting to start the vehicle.
Using the wrong startup map may result in a no-start condition,
or even engine damage if the engine is driven hard before the correct
map is loaded. Verifying and Adjusting Base TimingBecause the factory ECU is no longer in control of ignition timing, it will be necessary to make checks to ensure the MSPNP is accurately delivering the proper timing. Improper ignition advance can cause engine damage if improperly set or is left unchecked. The MSPNP will have a base ignition map loaded and ready to use. However, it is necessary to ensure that the timing advance being commanded by the MegaSquirt is in sync with what the engine is actually receiving. These steps will require the use of a timing light and a laptop with a copy of TunerStudio running.
Removing the Vane Air Flow MeterSince the MSPNP is speed density, you don't need to have the restrictive factory air flow meter in place. We've found gains of 3 to 5 horsepower by replacing the air flow meter with a length of straight pipe. This does require one wiring change, as there's an air temperature sensor in there. You'll need to substitute a GM IAT sensor with the air flow meter gone. This sensor connects to the first and sixth pins on the IAT connector, as shown in the graphic below. IAT sensors have no polarity, so it does not matter which wire you connect to which pin. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Function | ECU connector pin | TPS connector pin | Wire color |
| TPS signal | 4L | 1 | Green / White |
| Ground | 4C | 2 | Black / Green |
| 5 volt reference voltage | 1N | 3 | Red |
If you're not sure which connection on your TPS goes to which wire, check it with an ohmmeter/multimeter. Observe the resistance as the throttle opens and closes. Each pair of pins will behave differently:
The resistance between the 5 volt and ground pins will remain constant.
The resistance between the ground and signal pins will be low with the throttle closed and high with the throttle wide open.
The resistance between the 5 volt and signal pins will be high with the throttle closed and low with the throttle wide open.
Using these rules, you can establish which pin on the TPS goes to which wire. Note that we have not been able to find a TPS that plugs directly into the factory wiring and matches both the plug and the pinout, so you will need to do a bit of splicing to make this OPTIONAL modification.
Once you have the TPS installed, remove the top cover of the MSPNPPro. It's secured in place with 4 philips head screws. Locate the jumper labelled "VTPS Enable", also referred to as J4. Note, the silk screen printing may be somewhat obsured. Install a pull-off jumper in this location, then reinstall the top cover.
Connect to the MSPNP with the key on and the engine off. Go to the Tools menu and select Calibrate TPS. With your foot off the throttle, click the "Get Current" button next to the "Closed throttle ADC count" line. Then hold the accelerator to the floor and click the "Get Current" button next to the "Full throttle ADC count" line. The maximum reading is 1023 and the minimum reading is 0, but it's rare for a TPS to cover the entire range. It's more common to see the closed throttle reading in the 0 to 300 range and the full throttle in the 700 to 1000 range, but as long as the full throttle is more than the closed throttle by 200 counts or more, the TPS is functional. If the full throttle count is less than the closed throttle count, switch the ground and reference voltage wires. Once you have obtained adequate numbers, click the Accept button and it will save the values to the ECU.
The MSPNPP-MM9093 is capable of sequential injection. '93 California models are already set up for this; all others must have their wiring harness repinned at the ECU to use this feature. If you choose not to wire the injectors into the rear option connector, you will need to wire up the injectors using this pinout for '90-'92 and '93 Federal models.
| Cylinder | ECU pin |
| 1 | 4U |
| 2 | 4V |
| 3 | 4Y |
| 4 | 4Z |
Furthermore, the following jumpers will need to be adjusted to match the following:

To enable sequential injection, go to the Basic/Load Settings -> Engine and Sequential Settings, and set Sequential On to "On." Click Burn, and turn the MSPNPP off and back on again.
If you need to recalibrate your temperature sensors, such as after loading firmware, here are the values to use for the stock sensors. These work for both factory CLT and IAT sensors. GM IAT sensors can use the defaults in TunerStudio. The bias resistor value is 2490.
| Temperature (degrees F) | Temperature (degrees C) | Resistance (Ohms) |
| -4 | -20 | 16150 |
| 104 | 40 | 1150 |
| 176 | 80 | 330 |
Your MSPNP has the capability to use the PWM2 output for primary fan control, under Advanced Engine -> Prog. On/Off Outputs. The fan will come on whenever this output is on. Note that if the factory thermoswitch is plugged in, the thermoswitch can also activate the fan whether the MSPNP has commanded it to turn on or not, and vice versa - an "on" command from either the MSPNP or the thermoswitch will override an "off" command from the other. To allow automatic control of the fan, jumper J6 must be installed (see jumper listing below).
| Menu Location | Output Channel | Function | State | Condition (Default) |
| Basic Settings -> Fan Control | PWM2 (J6 must be set) | Primary Cooling Fan | On | CLT > 195 deg. F. |
| Startup/Idle -> Air Conditioning Idle-Up | Injector I | Secondary Cooling Fan | On | CLT > 200 deg. F. |
Below is a listing of funcitons for auxillary I/O used from the MS3Pro module:
| I/O Point | Function |
| High Current 1 (HC1) | VVT |
| PWM2 | Fan 1 (J6 Must be set) |
| PWM3 | Alternator Field Control |
| Injector I (INJI) | Fan 2 |
| Injector J (INJJ) | AC Relay |
| Digital Frequency In 1 (DFIN1) | CEL |
| Digital Frequency In 2 (DFIN2) | VSS |
| Digital In 2 (DI2) | Clutch Signal |
| Digital In 3 (DI3) | AC Request |
Several jumpers are located on the lower, black circuit board inside the MSPNP. These are accessible by removing the top cover and are indicated as depicted below:

Default settings indicated in red.
J4: Variable TPS Enable
When this jumper is installed, it allows the use of a variable TPS.
This should be installed on 90-93 Miatas with a
modified TPS that generates a variable signal.
J5:
Tach Out on Connector J3, Pin 4I (1995.5+ Miata Only)
Unused
on this model.
J6: Cooling Fan Control (1.6L Miata Only)
When
this jumper is installed, the MSPNP will control the main cooling fan.
If this jumper is left off, the thermoswitch located on the thermostat
housing will automatically cycle the cooling fan.
J9: MAP Sensor Select
When this jumper is installed
in the default location, the internal 4-bar MAP sensor will be used.
If the jumper is moved to the location labelled "EXT", an external MAP
sensor wired into the rear option connector will be used. Iif an external
sensor is used, ensure that the scaling is properly set in TunerStudio (Tools -> Calibrate MAP/Baro).
J13: 5VDC Supply on Pin 9 of Serial Connector
The MSPNP is capable of supplying 5VDC to pin 9 of the DB9 serial connector for use with external devices such as wireless Bluetooth adapters. The 5VDC supply is disabled by default. To enable the supply, you must remove the lid (4 screws) and place the jumper across the two pins labelled "J13" located near the serial connector at the corner of the PCB. Note that you will need a #1 philips or a "sharp" #2 philips to remove and replace the lid screws.

An auxilliary connector and harness is provided to allow you to add functionality to your car. Below is the pinout of the rear connector.
| Pin | Function | Default Function | Notes |
| A | Sensor Ground | ||
| B | Knock Sensor | ||
| C | Analog Input 2 | ||
| D | Analog Input 1 | MAF | |
| E | IAT | ||
| F | External MAP Sensor | ||
| G | CANL | ||
| H | +5VRef | ||
| I | CANH | ||
| J | +12V Ignition | Maximum 0.5 Amps | |
| K | Digital Freq. In 3 | ||
| L | Digital Freq. In 2 | VSS | |
| M | Digital In 1 | Flex | |
| N | Digital In 2 | Clutch Signal | |
| O | Digital In 12V (DI4) | ||
| P | High Current 1 | VVT | |
| Q | High Current 3 | Nitrous | |
| R | High Current 2 | Boost Control | |
| S | Ignition D Logic Level | ||
| T | Injector H Logic Level | High Z or GPIO Only | |
| U | Ignition C Logic Level | ||
| V | Injector G Logic Level | High Z or GPIO Only | |
| W | Ignition B Logic Level | ||
| X | Injector F Logic Level | High Z or GPIO Only | |
| Y | Ignition A Logic Level | ||
| Z | Injector E Logic Level | High Z or GPIO Only |
It has become common to upgrade Miatas' engine to those from newer model years. The MSPNPPro has provisions to control all aspects of newer Miata engines including the alternator and VVT. Below is the connector pinout to assist you to assemble your own wiring harness to allow seamless integration of these newer engines.

| Connector 1 (Factory Wiring) | |||
| N/C | 1A | 1B | +12V Ignition |
| Fuel Pump Relay (12V) | 1C | 1D | N/C |
| CEL (via DFIN1) | 1E | 1F | Tach Out |
| Cyl. 1/4 Ign. Coil (Ignition A Out) | 1G | 1H | Cyl. 2/3 Ign. Coil (Ignition B Out) |
| N/C | 1I | 1J | A/C Relay (Injector J Out) |
| N/C | 1K | 1L | Fan 1 Relay (PWM2) |
| VSS (DFIN2) | 1M | 1N | Throttle Switch 5V |
| N/C | 1O | 1P | N/C |
| A/C Switch In | 1Q | 1R | Fan 1 Relay (PWM2 via J6) |
| N/C | 1S | 1T | N/C |
| N/C | 1U | 1V | Clutch Switch (Digitial In 2) |
| Connector 2 (Optional Wiring) | |||
| CANH | 2A | 2B | Oxygen Sensor |
| CANL | 2C | 2D | Tach Out |
| External MAP Sensor | 2E | 2F | Knock Sensor |
| Ground | 2G | 2H | Digital In 1 (Flex) |
| PWM3 | 2I | 2J | Digital In 12V (DI4) |
| Analog In 2 | 2K | 2L | High Current 2 (Boost) |
| Connector 3 (Optional Wiring) | |||
| Ignition C (Cyl 4 Seq.) | 3A | 3B | Ignition D (Cyl 2 Seq.) |
| Ignition A (Cyl 1/4 WS, Cyl 1 Seq.) | 3C | 3D | Ignition B (Cyl 2/3 WS, Cyl 3 Seq.) |
| Injector C (Cyl 4 Seq.) | 3E | 3F | Injector D (Cyl 2 Seq.) |
| Injector A (Cyl 1/4 Batch, Cyl 1 Seq.) | 3G | 3H | Injector B (Cyl 2/3 Batch, Cyl 3 Seq.) |
| +12V Out (Relay Supply) | 3I | 3J | High Current 1 (VVT) |
| Sensor Ground | 3K | 3L | IAC |
| CKP (Crank) Signal | 3M | 3N | +5Vref |
| CMP (Cam) Signal | 3O | 3P | TPS |
| Connector 4 (Factory Wiring) | |||
| Ground | 4A | 4B | Ground |
| Sensor Ground | 4C | 4D | Sensor Ground |
| CKP (Crank) Signal | 4E | 4F | Sensor Ground |
| CMP (Cam) Signal | 4G | 4H | N/C |
| N/C | 4I | 4J | N/C |
| +5Vref | 4K | 4L | TPS |
| N/C | 4M | 4N | O2 Sensor |
| VAM Output (Ext MAP) | 4O | 4P | IAT Sensor |
| CLT Sensor | 4Q | 4R | N/C |
| Condensor Fan (Injector I Out) | 4S | 4T | Fuel Pump Relay (Unused on 90-93) |
| Injector A | 4U | 4V | Injector B (Injector D - 93 CA Emis) |
| IAC (PWM1) | 4W | 4X | N/C |
| N/C (Injector B - 93 CA Emis) | 4Y | 4Z | N/C (Injector C - 93 CA Emis) |
10-5-21 - 1.4
The MegaSquirtPNP, as with any programmable
engine management system, may not
be legal for use on pollution controlled vehicles and is therefore produced and sold for off road/race use only. Check federal/local laws.
MegaSquirtPNP, MSPNP, MegaSquirt PNP, and MS PNP, are trademarks of EFI Innovations, Inc d/b/a DIYAutoTune.com.