Hello:
The 8253 counter chip is a 16-bit chip which means it reaches its terminal count (max count) at 2^16 - 1 = 65535. So, if you are counting pulses at a rate of 100 kHz then it will roll over in about 0.66 seconds - I understand your problem!
We have several examples for cascading two of our 24-bit counters into a 48-bit counter. This would be the best solution for you - use two 16-bit counters as one 32-bit counter. The way this works is to output a pulse on the LSB counter when it reaches its terminal count and then that pulse (output pin) goes to the source of the MSB counter which continues to count. However, I do not believe the 8253 chip supports outputting a pulse on terminal count / rollover. This is what makes it tough for that board. I sug
gest a TIO or STC based board.