MegaSquirt V3 with the MegaSquirt-II processor modified for dual spark as described here.
Running with code version 2.883j and configured as a microsquirt. The MSQ file can be found here here.
Currently we are trying to get reliable RPM reading using a 12-1 crank wheel. (thus not using the cam wheel/sensor)
Using the 'Crank Wheel Pulser software' the RPM is accurate and reliable in megatune.

The figure shows the measured 'VR' signal from the software and the shaped signal to the processor (measured at PIN 14 on the CPU board). The missing teeth does not look perfect, but the RPM is calculated correctly.
When connecting the real VR sensor the signal looks like this:

The missing teeth is clearly 'missing' in the signal. The signal looks perfect ??!

The figure show the signals measured at PIN2 and PIN3 on U7a. The threshold and hysteresis looks ok (and different values has been tried). But the RPM measurement in megatune are highly unreliable. From time to time, the correct RPM is shown. The fuel pump does not start either so it's not a communication problem. We have not seen any problems with the VR signal on the scope.
To simulate the noise generated by the starter / generator. The engine were cracked while feeding the EFI with the VR signal from the the Crank Wheel Pulser software. Still no problem with the RPM
We have tried different values in pmask, tmask. The alpha-beta-gamma predictor with default values did not work either.
Any ideas on what could be wrong or how to troubleshoot it ?
