CounterValue Property

Public Property CounterValue(ByVal counter As Long) As Long

Summary

This property allows you to read or write the current value of the counters on the ETH32 device. After you have enabled the counter with the CounterState Property, the value of the counter indicates how many times the counter has been incremented by the external counter input. This property can also be written in order to set the counter value, which can be useful for initializing the counter. All counters begin with a value of zero after powerup or reset.

Parameters

  • counter - Specifies the counter number (0 or 1).

Value

This property is a Long. For counter 0 (a 16-bit counter), this may range from 0-65535. For counter 1 (an 8-bit counter), this may range from 0-255.

See Also

CounterState Property, CounterRollover Property