Spark Sequence Definition

This MotoHawk™ block sets up a sequence of spark coil drivers, starting with the given pin and working up, one for each driver required by the 'Sequence Type'.

Block ID

Spark Sequence

Library

MotoHawk_lib/Advanced Digital I/O

Description

The input ports may be scalars or vectors, but if vectors, the size must equal the number of cylinders defined by the Encoder Definition block. This number may be calibratable, in which case the vector must be as large as the 'Maximum Number of Cylinders'. When diagnostic outputs are enabled, open and short circuit detection is made available. The Open and Short outputs are one of: 0 - OK 1 - Fault 2 - Indeterminate

The end of a pulse can create a trigger using the PSP End Trigger Block.

Angle inputs are before TDC (BfTDC), in units of 1/16th of degree crank angle. Time inputs are in microseconds. Eg: 730degBfTCD == 10degBfTDC == -710degBfTDC

Angles are converted internally to Mod(angle, DegInCycle). It is therefore not possible to schedule a pulse more than one cycle into the future. When Mod(start - stop,DegInCycle) == 0, angular duration is considered to be zero. For example, this will occur on a 4-stroke when start = 720, stop = 0. To achieve a maximum angle, stop = start - DegInCycle - 1/16.

Block Parameters

Parameter Field Values Comments/Description
1st Resource Drop-down list Select from available listings, as appropriate, to assign initial pin of sequence.
Sequence Type   Select sequence type from list
  Standard Coil (Coil per Cylinder) (per cylinder)
  Banked (Fire on both phases until CAM sync) (per 2 cylinders & half duration)
  Batch (wasted spark) (per 2 cylinders & half duration & all cylinders)
  Muxed (distributed)
Stop Mode Select method for Stop
  Angle Controlled Control Stop Mode by Angle
  Duration Controlled Control Stop Mode by Time Duration
Update Mode OS/Application Select OS to have the system update for errors. Select Application to allow the application to run without updates.
Granularity Fine or Course Fine granularity (resolution) interpolates engine position between encoder teeth. Can result in reduced maximum duty cycle for MPC5xx based modules. Course granularity does not use interpolation. Angles resolve to the closest encoder tooth. Modules besides those cores that have an MPC5xx ignore this setting and utilize fine granularity irrespective of this setting.
Minimum Duration Mode Static or Dynamic Only applicable to MPC5xx based modules. Any scheduled duration smaller than this value is considered to have zero duration when scheduled. Is a member of the mask when the static Minimum Duration Mode is selected and is a signal when dynamic is selected.
Minimum Duration (ms) Numeric Enter value for duration. Only applicable if a Static Minimum Duration Mode was selected.
Output Spark Diagnostics Check Box (enable) When diagnostic outputs are enabled, open and short circuit detection is made available. The Open and Short outputs are one of these:
0 - OK
1 - Fault
2 - Indeterminate
Open-Circuit Threshold [ADC Counts] Numeric Set the numeric threshold for ADC counts.
Allow I/O pins to be calibrated from MotoTune Check Box (enable) Check to enable calibration in MotoTune, and enable below parameters. This field is only available on Classic modules, see ModuleTypes for help.
Prefix Alpha-numeric text, single-quote enclosed Assigns prefix to name. Use "|" character between folder names to delineate subfolder structure.
Read Access Level 1-4 Sets security level 1 lowest, 4 highest, for user access to read value.
Write Access Level 1-4 Sets security level 1 lowest, 4 highest, for user access to write value.
MotoTune Group String Alpha-numeric text, single-quote enclosed Determines Folder name and hierarchy as displayed in MotoTune. Use "|" character between folder names to delineate subfolder structure.