Setting the maximum counter value

The counter counts from 0 to the maximum value R.

If the maximum value is exceeded, the counter starts counting up again from zero. If the value falls below zero, it continues to count down from the maximum value.

Exceeding and falling below the counter limits is indicated via the bits "Counter overflow" and "Counter underflow", see chapter Overflow and underflow of the counter.
Setting the maximum counter value 1:

Delivery state

On delivery, the maximum value is 232-1.

Configuration

To set the maximum value R, proceed as follows:

1. Enter the desired value in the parameter 0x8000:12 "Counter reload value".
2. Set the parameter 0x8000:09 “Enable reload” to TRUE.