Overflow and underflow of the counter

An overflow or underflow of the counter is indicated via the status bits "Counter overflow" or "Counter underflow" in the process data.

Overflow and underflow of the counter 1:

Example of resetting the status bits:

With 0x8000:12 "Counter reload value" = 212-1 = 4095: