|
|
|
Bean
PulseAccumulator
|
Pulse Accumulator
Parameters of the bean.
|
Properties:
-
Bean name - Bean name
-
Counter - Counter register of the pulse accumulator.
-
Settings not supported for 56800 derivatives.
-
Timer - Pulse accumulator clock source.
-
Interrupt service/event - Bean uses the interrupt service.
-
Settings supported for HCS12 derivatives only.
-
Initialize input - If the input of this channel is initialized by Capture bean then disable this property group.
-
Input pin - Input pin.
-
Input pin signal - Signal name of input pin.
-
Pull resistor - Setting of pull resistor.
There are 6 options:
- no pull resistor: Input without pull resistor is required
- pull up: Input with pull-up resistor is required
- pull down: Input with pull-down resistor is required
- pull up or no pull: Input with pull-up resistor is preferred, but no-pull is acceptable
- pull down or no pull: Input with pull-down resistor is preferred, but no-pull is acceptable
- autoselected pull: There are no special requirements for pull resistors
-
Edge - Type of signal edges that can invoke the OnEdge events.
There are 4 options:
- rising or falling edge: One of the following edge type will be selected: rising or falling
- rising edge: Rising edge required
- falling edge: Falling edge required
- both edges: Both edges (rising and falling) required
-
Settings supported for HCS12(X) derivatives only.
-
Overwrite - The contents of the related capture or holding registers can be overwritten when a new input capture or latch occurs.
-
Mode - Pulse accumulator mode.
In the event counter mode, the pulse accumulator counts the number of active edges on the input pin.
In gated time accumulation mode, a pulse accumulator counts the internal timer clock gated by the input pin.
Note: This setting has no meaning for any countres.
-
Count level - The select input pin level that enables the clock for the pulse accumulator. Note: property 'Edge' (in 'Initialize input' group) has no meaning for this mode.
-
Pulse period - Period of the pulse accumulator counting.
-
Initialization - Initial settings (after power-on or reset).
-
The following items are visible only if integration of Processor Expert with Simulink supported.
-
Bean name - Bean name
-
Mode - Select a counter mode from these options: Count, Gated, Quadrature, Signed and Triggered.
-
Edge - Polarity – selects an edge of the primary clock source
There are 4 options:
- rising or falling edge: One of the following edge type will be selected: rising or falling
- rising edge: Rising edge required
- falling edge: Falling edge required
- both edges: Both edges (rising and falling) required
-
Count level - Polarity - selects an active level of the secondary input
-
Count direction - Select count direction.
-
Count direction - Select a secondary input active level / count direction.
'Normal': If the secondary input signal is set for the low level (0), then counter counts up. If secondary input signal is set for the high level (1), then counter counts down. Counter counts rising edges on the primary input pin. 'Invert': If secondary input signal is set for the low level (0), then counter counts down. If secondary input signal is set for the high level (1), then counter counts up. Counter counts falling edges on the primary input pin.
-
Iterations before action - Number of pulses to invoke OnEnd event.
|
|
|
Processor ExpertTM and Embedded BeansTM are registered trademarks of UNIS, Ltd.
©1997-2005, UNIS, Ltd.
|
|
|