Copyright: Created with EasyHelp (Tel: 0973 209667)


Logic/Universal Counter - RG354261

Description

Implements a counter which may be cascaded to provide for extended counting requirements.  By selecting an appropriate mode of operation, it may be adapted for use is a wide variety of applications.

Its 6 outputs consist of 2 count outputs (ordinal and value), and 4 logic outputs. At Full scale and At Zero are True when their respective conditions are satisfied, False otherwise.  The Above Preset 1 output is False when the Count is less than the Preset 1, otherwise they are True. The Above Preset 2 output is False when the Count is less than the Preset 2, otherwise they are True.

Persistent variables consist of Preset 1, Preset 2, Direction, and the Count register.  All inputs trigger the counter.

Parameters

Clock In	Clock input to the counter.  Coutns on the False to True transition.

Count	Allows setting of the count register.  Expects an ordinal in the range of 0 to 32767.

Direction	Determines count direction.  Expects False (down) or True (up).

Preset 1	Value used in a variety of counter operations.  Expects a value in the range of 0% to 100%.

Preset 2	Value used to generate an output signal.  Expects a value in the range of 0% to 100%.

Reset	Resets the count register based upon the setting of Reset Mode.  Expects False (Inactive) or True (Reset).

Reset Mode	Upon asserting Reset, determines whether 0 or the Preset 1 value is loaded into the count register.  Expects False (0) or True (Preset 1).

Rollover Mode	Determines whether the counter will roll over at full scale (32767) or upon reaching Preset 1.  Expects False (full scale rollover) or True (Preset 1 rollover).

Get Clock In	Returns the current state of the clock signal.

Get Count	Returns the current count.

Get Direction	Returns False (down), or True (up).

Get Preset 1	Returns value of Preset 1.

Get Preset 2	Returns value of Preset 2.

Get Reset	Returns current state of Reset input.

Get Reset Mode	Returns Fale (reset to 0) or True (reset to Preset 1).

Get Rollover Mode	Returns current state of Rollover Mode, as False (full scale rollover) or True (Preset 1 rollover).

Get Output (Ordinal)	Returns the output of the counter, as an ordinal ranging from 0 to 32767.

Get Output (Value)	Returns the output of the counter, as a value ranging form 0% to 100%.

Get Full Scale	False when Count is less than 32767.  True at 32767.

Get Zero	False, except when the Count register contains 0.

Get >= Preset 1	False when Count is less than Preset 1, otherwise True.

Get >= Preset 2	False when Count is less than Preset 2, otherwise True.


Description

Implements a counter which may be cascaded to provide for extended counting requirements.  By selecting an appropriate mode of operation, it may be adapted for use is a wide variety of applications.

Its 6 outputs consist of 2 count outputs (ordinal and value), and 4 logic outputs. At Full scale and At Zero are True when their respective conditions are satisfied, False otherwise.  The Above Preset 1 output is False when the Count is less than the Preset 1, otherwise they are True. The Above Preset 2 output is False when the Count is less than the Preset 2, otherwise they are True.

Persistent variables consist of Preset 1, Preset 2, Direction, and the Count register.  All inputs trigger the counter.


Parameters

Clock In	Clock input to the counter.  Coutns on the False to True transition.

Count	Allows setting of the count register.  Expects an ordinal in the range of 0 to 32767.

Direction	Determines count direction.  Expects False (down) or True (up).

Preset 1	Value used in a variety of counter operations.  Expects a value in the range of 0% to 100%.

Preset 2	Value used to generate an output signal.  Expects a value in the range of 0% to 100%.

Reset	Resets the count register based upon the setting of Reset Mode.  Expects False (Inactive) or True (Reset).

Reset Mode	Upon asserting Reset, determines whether 0 or the Preset 1 value is loaded into the count register.  Expects False (0) or True (Preset 1).

Rollover Mode	Determines whether the counter will roll over at full scale (32767) or upon reaching Preset 1.  Expects False (full scale rollover) or True (Preset 1 rollover).

Get Clock In	Returns the current state of the clock signal.

Get Count	Returns the current count.

Get Direction	Returns False (down), or True (up).

Get Preset 1	Returns value of Preset 1.

Get Preset 2	Returns value of Preset 2.

Get Reset	Returns current state of Reset input.

Get Reset Mode	Returns Fale (reset to 0) or True (reset to Preset 1).

Get Rollover Mode	Returns current state of Rollover Mode, as False (full scale rollover) or True (Preset 1 rollover).

Get Output (Ordinal)	Returns the output of the counter, as an ordinal ranging from 0 to 32767.

Get Output (Value)	Returns the output of the counter, as a value ranging form 0% to 100%.

Get Full Scale	False when Count is less than 32767.  True at 32767.

Get Zero	False, except when the Count register contains 0.

Get >= Preset 1	False when Count is less than Preset 1, otherwise True.

Get >= Preset 2	False when Count is less than Preset 2, otherwise True.