|
MegaSquirtPNP™
Plug-N-Play Standalone Engine Management System by DIYAutoTune.com |
MegaSquirt PNP Pro DocumentationModel/Vehicle Specific information for model MSPNPP-MM9697 on a 1996-1997 Mazda Miata 1.8 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 Mass Air Flow MeterSince the MSPNP is speed density, you don't need to have the restictive factory mass air flow sensor in place. We've found gains of 3 to 5 horsepower by replacing the sensor with a length of straight pipe. You'd think this sensor would be less restrictive than the vane air flow meter on the 1.6, but our tests have shown it's equally bad for horsepower. 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 third and fourth 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. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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.
| Menu Location | Output Channel | Function | State | Condition (Default) |
| Basic Settings -> Fan Control | PWM2 | 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 |
| 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:
J3, J4: CKP - CAS/Crank VR Select
The position of these jumpers selects the source of the crank position
signal (CKP).
![]()
Jumper
position for CAS CKP signal (default).
![]()
Jumper position for OE crankshaft VR signal.
J6: 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).
![]()
Jumper positon for internal MAP sensor siganl (default).
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 | Alternator Voltage Ref | |
| D | Analog Input 1 | MAF | |
| E | IAT | ||
| F | External MAP Sensor | ||
| G | CANL | ||
| H | +5VRef | ||
| I | CANH | ||
| J | +12V Ignition Out | 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 4 | ||
| 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 a Miata's engine to one from a newer model year. 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 improved integration of these newer engines.

| Connector 1 (Factory Wiring) | |||
| Fan 1 Relay (PWM2) | 1A | 1B | A/C Relay (Injector J Out) |
| N/C | 1C | 1D | N/C |
| CEL (via DFIN1) | 1E | 1F | N/C |
| A/C Relay (Injector J Out) | 1G | 1H | N/C |
| N/C | 1I | 1J | N/C |
| A/C Switch In | 1K | 1L | Clutch Switch (Digitial In 2) |
| VSS (DFIN2) | 1M | 1N | N/C |
| Ground | 1O | 1P | N/C |
| N/C | 1Q | 1R | N/C |
| N/C | 1S | 1T | N/C |
| Fuel Pump Relay | 1U | 1V | N/C |
| Connector 2 (Optional Wiring) | |||
| CANH | 2A | 2B | Oxygen Sensor |
| CANL | 2C | 2D | Tach Out |
| External MAP Sensor | 2E | 2F | Knock Sensor |
| Ground | 2G | 2H | CMP (Cam) Signal |
| PWM3 (Alternator Field) | 2I | 2J | CKP (Crank) Signal |
| AIN2 (Alternator Voltage Ref.) | 2K | 2L | High Current 2 (Boost) |
| Connector 3 (Factory Wiring) | |||
| N/C | 3A | 3B | N/C |
| Front O2 Sensor (via J5) | 3C | 3D | Rear O2 Sensor (via J5) |
| N/C | 3E | 3F | TPS |
| CLT Sensor | 3G | 3H | N/C |
| VRef | 3I | 3J | N/C |
| IAT Sensor | 3K | 3L | Ground |
| O2 Sensor Heater Ground | 3M | 3N | N/C |
| Sensor Ground | 3O | 3P | N/C |
| Connector 4 (Factory Wiring) | |||
| Ground | 4A | 4B | +12V Ignition |
| Ground | 4C | 4D | Ground |
| N/C | 4E | 4F | CKP (Crank) Signal |
| CMP (Cam) Signal | 4G | 4H | N/C |
| N/C | 4I | 4J | N/C |
| Condensor Fan (Injector I Out) | 4K | 4L | Tach Out |
| N/C | 4M | 4N | Cyl. 1/4 Ign. Coil (Ignition A Out) |
| N/C | 4O | 4P | N/C |
| IAC (PWM1) | 4Q | 4R | Cyl. 2/3 Ign. Coil (Ignition B Out) |
| N/C | 4S | 4T | N/C |
| Cyl. 1 Injector (Injector A Out) | 4U | 4V | Cyl. 2 Injector (Injector D Out) |
| Cyl. 3 Injector (Injector B Out) | 4W | 4X | Cyl. 4 Injector (Injector C Out) |
| N/C | 4Y | 4Z | N/C |
An error is
present on the optional jumper configurations on PCBs labeled as version 1.1 as jumper configuration
blocks J2 and J5 are incorrectly labeled. If it is necessary to open the
ECU and adjust the jumper configuration,
the correct jumper labels are highlighted within the blue box below. The shunt
located at J2 should remain in the right most position. This error was
corrected on the V1.2 PCB.

5-5-20 - 1.3
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.