MegaSquirt-II

Al Grippo and Bruce Bowling have created on MegaSquirt-II, which is a plug-in daughter card which replaces the MC68HC908GP32 with a MC9S12 processor. MegaSquirt-II is an "intermediate" step from the original V1 and V2.2 MegaSquirt towards UltraMegaSquirt. It is basically a plug-in processor card which has the MC9S12 processor plus support hardware as well as a stepper motor chip, and an ignition module controller.

You simply remove the 68HC908GP32 processor on your existing MegaSquirt and plug in the MegaSquirt-II daughter card and their MegaSquirt is now a MegaSquirt-II - it takes less than a minute to do.

MegaSquirt-II has the following features:

The processor is from the Motorola HCS12 family. It has plenty of excess capability and is a 16 bit machine allowing as much timing resolution as anyone can practically use. Since it is in the Motorola family the MegaSquirt embedded code will port over quite easily, however the MegaSquirt-II code has been converted to the C programming language since there is a free GNU cross-compiler for this CPU. This will make it much easier for others to customize the algorithms to meet their needs.

The MegaSquirt-II daughter card plugs in to the existing MegaSquirt processor socket, replacing the MegaSquirt 68HC908 processor.

The reason for this intermediate step is that everyone with an existing MegaSquirt system can pull out their processor and plug in this board and they will have the UltraMegaSquirt code. This will allow people to test the UltraMegaSquirt code on real vehicles while we work out the details of the FPGA routing and switching and multiple I/O that will come with UltraMegaSquirt.

The main differences between MegaSquirt-II and UltraMegaSquirt are that there is:

If you compare the MegaSquirt-II code to the upcoming UltraMegaSquirt, you will see its code will be 90% the same, even if some features can't be used in MegaSquirt-II (due to limited input/output flexibility). It was easier to leave these features in and this also makes the testing more applicable for eventual migration to UltraMegaSquirt.

MegaSquirt-II Features

MegaSquirt-II adds the following enhancements over MegaSquirt:

1) Processor: When MegaSquirt was started almost three years ago, the best bang for the money was the HC08 family (also Atmel and Microchip). In three years, looking at the next step range of processors, the family that stands out is the HC12/HCS12.

Specification MC68HC908
(MegaSquirt)
MC9S12C32
(MegaSquirt-II)
CPU core 8 bit 16 bit
Speed 8 MHz 24 MHz
Flash 32 Kbytes 32 Kbytes
User RAM 512 bytes 2K bytes
Temperature
Range
-40ºC to 85ºC -40ºC to 125ºC

2) Existing software: The goal of choosing a processor is to try to keep the current established code operational. With the HC12 family, it is extremely easy to modify existing assembly code for this processor - it amounts to about a two hour effort, without taking advantage of the HC12 architecture. And, if people want to code in C, there is a good GNU GCC toolchain available for writing and modifying code, as well as Metrowerks Codewarrior.

3) 12 x 12 Tuning tables: for Volumetric Efficiency (VE) table, 12 x 12 for Air Fuel Ratio (AFR) table, and 12 x 12 for Spark Advance table. There are separate AFR and VE tables for each injector bank (similar to the dual table code),

4) Stepper motor IAC control: for most common EFI idle control motors, as well as support for MegaSquirt's FIdle valve control and the Ford PWM idle valve.

5) Ignition Control: MegaSquirt-II code has the ability to control ignition (including dwell control). It supports 1 coil/distributor configuration, and the Ford EDIS 'wasted-spark' system.

6) 3 spare I/O lines for custom controls. (This is in addition to 4 lines for Idle stepper control if you don't need this, or the Fast idle solenoid then becomes a spare if you do use a stepper motor.)

7) 115200 baud serial communications rate (vrs. 9600 of MegaSquirt).

How to Buy MegaSquirt-II Hardware

The price for MegaSquirt-II has not been determined yet, but it is expected to be about $75 (US).

The final price will depend on the cost for having the surface mount components soldered on. The printed circuit board is much smaller, but it is a 4 layer board, so that will probably be similar to the MegaSquirt board's cost in large quantities (but much more expensive in small quantities.) The parts themselves are probably cheaper.

MegaSquirt-II is an add-on option for a standard MegaSquirt. To learn more about MegaSquirt, go to the MegaSquirt FAQ and manual. The assembly, testing, and installation of MegaSquirt is covered at those sites. This site deals only with the MegaSquirt-II add-in board.

The MegaSquirt-II can be ordered as:

There may eventually be just the bare PCB sold for those who feel undaunted about surface mount soldering, but initially only the first 2 options will be sold until we have a good user base and know the system is reliable when soldered professionally.

The ordering page is at:

www.bgsoflex.com/mspo1.html - AVAILABLE SOON

If you are starting from scratch, in addition to the MegaSquirt-II partial kit, you'll need the Digi-Key BOM of parts, and a case and other small parts (the stimulator is highly recommended). If you already have a working MegaSquirt, you only need the MegaSquirt-II add-in board.

Full installation instructions are at the MegaSquirt-II installation page.

There is also a huge amount of collective experience and knowledge related to the assembly and installation of MegaSquirt/MegaSquirt-II in various vehicles available on the MegaSquirt Forums website.



© 2004, 2005 Al Grippo and Bruce Bowling - All rights reserved.