Subaru trigger converter from 6+7tooth to 4+1: Primary subaru trigger handler: sectriggercounter=0; /* Reset the secondary trigger counter every time there is a primary pulse. pritriggercounter++; if(pritriggercounter=2) Only use the second pulse (65 deg BTDC). { pritriggercounter=0: } else RETURN(); Secondary Subaru trigger handler: pritriggercounter=0; /*Reset the primary trigger counter every time there is a secondary pulse. sectriggercounter++; if(sectriggercounter=3) { sectriggercounter=0; } else RETURN();