LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Counting more than 65535 count with ICTR_CONTROL.VI

I want to count pulse at a rate of 100 000 Hz, how can I do that with ICTR control? I use 8253 counter and the COUNT_EVENT.VI
0 Kudos
Message 1 of 2
(2,439 Views)
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.
0 Kudos
Message 2 of 2
(2,439 Views)