Advanced Digital I/O Blocks: Difference between revisions

From NewEagleWiki
Jump to navigation Jump to search
Line 71: Line 71:


===MotoHawk:Blocks:Fuel Injector Sequence===
===MotoHawk:Blocks:Fuel Injector Sequence===
The MotoHawk® Injector Sequence block sets up a sequence of injector drivers starting with the given pin and working up for each driver required by the sequence type. The input ports may be scalars or vectors. 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. <br />
[[Image: FuelInjectorBlock.JPG]] <br />

Revision as of 16:01, 16 June 2010

C

MotoHawk:Blocks:Constant Current Control Output


Supply the numeric parameter values via the Current, Dither Amp, and Dither Freq inputs. Current assigns the output current in uA, while Dither Amp allots a current variance in uA, and Dither Freq allots variance in frequency, in .01 Hz increments.


F

MotoHawk:Blocks:Frequency In

This MotoHawk® block determines the frequency of a digital input signal. The output signal is in units of 0.01 Hz, and is based on the last sample period from edge to edge, with a data type of uint32.

Select a unique resource name. This name can be the name of the sensor that is being read. If none is given, it will either inherit the pin name or the vardec name, depending on whether calibratable I/O is selected.

Choose the pin resource.

Perform Duty Cycle Measurement: Add extra code to perform a duty cycle measurement along with period measurement.

Provide Trigger: Provide a trigger after each N pulses.

Alias Protection: Alias protection is a characteristic that protects low frequency inputs from indicating the incorrect frequency when the frequency is very near the low threshold. It places execution burden upon the Framework because each edge results in the servicing of an interrupt. It should not be employed on inputs that consistently sit above the low frequency threshold under normal operation. The low frequency threshold is set at approximately 1.2 Hz for MPC5xx based modules.

Alias protection will provide guaranteed uniform frequency response for all frequencies between 0 Hz and 39000 Hz. Inputs without alias protection may report incorrectly when they first start up, when they stop and while their frequency is near the low frequency threshold.

The dutycycle describes the elapsed time between the occurrence of the non-synchronous edge and the synchronous edge. The synchronous edge is configured during the creation of the resource via the 'Edge Detect' attribute. 4096 represents 100%

Frequency Input Block with optional I/O
Frequency Input Block with default I/O




MotoHawk:Blocks:Frequency Input Raw 16 Bit Get

This MotoHawk® block reports the raw counts reported by the framework.

If "Get Duty Cycle" is selected, an additional port is displayed.

Choose the resource name (specified in the Frequency Input block) to specify the input channel to reference.


MotoHawk:Blocks:Frequency Input Raw Get

This MotoHawk® block reports the raw counts reported by the framework.

If "Get Duty Cycle" is selected, an additional port is displayed.

Choose the resource name (specified in the Frequency Input block) to specify the input channel to reference.


MotoHawk:Blocks:Frequency In Reference

This MotoHawk® block determines the frequency of a digital input signal. The output signal is in units of 0.01 Hz, and is based on the last sample period from edge to edge, with a data type of uint32.

If "Get Duty Cycle" is selected, then the Frequency Input block must set up the resource to read duty cycle.

Choose the resource name (specified in the Frequency Input block) to specify the input channel to reference.


MotoHawk:Blocks:Frequency Input Trigger

This MotoHawk® block is used in conjunction with the corresponding Frequency Input block. It riggers whenever the selected number of edges have been detected on the pin selected in the corresponding Frequency Input block. When using this block, do not select Alias Protection under the Frequency Input block.


MotoHawk:Blocks:Fuel Injector Sequence

The MotoHawk® Injector Sequence block sets up a sequence of injector drivers starting with the given pin and working up for each driver required by the sequence type. The input ports may be scalars or vectors. 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.