MembersPage/MichaelRichards/TriggerTutorial/SimpleTrigger (2007-03-20 23:38:31)

This tutorial is written to explain all the trigger setup variables for the 1.1.x series of firmware. There are two general types of trigger schemes, those that rely on a missing teeth to identify the wheel position and those that do not. This document deals with the latter.

The examples here are taken from a Mazda 1.8l 4 cylinder BP engine's trigger scheme. With the settings here it should be trivial to make changes and adapt the configuration to variants of this scheme.

First the Mazda distributor contains a disc with slots as follows:

Mazda_BP8_CAS.jpg

This camwheel rotates counterclockwise and is triggered via hall type sensor. This means either rising or falling edge pulses are appropriate.

Looking closely at this wheel the waveform of a running engine will look like this graphed according to degrees of rotation on the cam. Since the crank rotates at twice the speed this graph also represents two complete crank revolutions.

mazdatrigger.gif

Dissecting the data presented here a number of details can be determined. Note that unless otherwise noted all measurements are expressed in degrees of cam rotation. Here, the primary pulse occurs 4 times per engine period and the secondary trigger only once.

Since these measurements are in cam degrees they are 1/2 of the crank measurement. This engine will never require 66 crank degrees of advance so we can use the falling edge of the primary trigger. Since this signal will occur closer to the actual engine event it will be slightly more accurate when the RPM is not constant.

First the trigger types must be configured:

primary_trigger

This configuration parameter contains a number of bit flags:

Bit Position 1 0
0 Rising edge trigger Falling edge trigger
1 Simple repeating trigger type Missing tooth trigger type
2 Filtering enabled Filtering disabled
3 Advanced trigger code Disabled
4 One missing tooth (ie 60-1) Two missing teeth (ie 60-2)
5 Fiat Stilo and Subaru triggers Disabled
6 Nissan trigger Disabled

Here we wish to trigger on the falling edge, it is a simple repeating trigger type with filtering

secondary_trigger

Bit Position 1 0
0 Rising edge trigger Falling edge trigger
1 Disable this trigger Enable this trigger
3 Single tooth type Multitooth type
4 Cam Sync Alien Advance
5 reserved for future crank trigger scheme Disabled
6 FiatStilo and Subaru triggers Disabled